Fix chat composer IME Enter handling#1730
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR prevents the chat composer from sending messages when text composition (IME) is active. It introduces IME-aware keydown decision helpers in ChangesIME Composition Awareness for Composer
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
# Conflicts: # app/src/pages/Conversations.tsx # app/src/pages/__tests__/Conversations.render.test.tsx
Summary
isComposing, legacykeyCode 229, and normal Enter/Shift+Enter pathsCloses #1718
Validation
pnpm --filter openhuman-app exec vitest run --config test/vitest.config.ts src/pages/conversations/composerSendDecision.test.ts src/pages/__tests__/Conversations.render.test.tsxpnpm typecheckpnpm --filter openhuman-app exec prettier --check src/pages/__tests__/Conversations.render.test.tsx src/pages/Conversations.tsx src/pages/conversations/composerSendDecision.ts src/pages/conversations/composerSendDecision.test.tspnpm --filter openhuman-app exec eslint src/pages/Conversations.tsx src/pages/conversations/composerSendDecision.ts src/pages/conversations/composerSendDecision.test.ts src/pages/__tests__/Conversations.render.test.tsx --ext .ts,.tsx(passes with existingreact-hooks/set-state-in-effectwarnings inConversations.tsx)python -m diff_cover.diff_cover_tool app/coverage/lcov.normalized.info --compare-branch=origin/main --fail-under=80 --markdown-report app/coverage/diff-coverage.md(100% diff coverage)Notes
pnpm rust:checkis blocked in this shallow clone becauseapp/src-tauri/vendor/tauri-cef/crates/tauri/Cargo.tomlis absent. This PR only changes frontend TS/TSX files.Summary by CodeRabbit