Skip to content

[codex] fix desktop IME composition submit handling - #38791

Closed
wbcoder0 wants to merge 1 commit into
NousResearch:mainfrom
wbcoder0:codex/fix-desktop-ime-enter
Closed

[codex] fix desktop IME composition submit handling#38791
wbcoder0 wants to merge 1 commit into
NousResearch:mainfrom
wbcoder0:codex/fix-desktop-ime-enter

Conversation

@wbcoder0

@wbcoder0 wbcoder0 commented Jun 4, 2026

Copy link
Copy Markdown

What changed

  • Add a shared desktop composer IME detection helper.
  • Prevent Enter from submitting while the main composer or edit composer is still composing IME text.
  • Sync finalized contentEditable text on compositionend.
  • Add focused tests for IME composition signals, including the process-key 229 fallback.

Why

Chinese/Japanese/Korean IMEs use Enter to confirm candidate text. The desktop composer could treat that Enter as a submit action, sending the prompt before the user had finalized the intended text.

Validation

  • npm -w apps/desktop run test:ui -- src/app/chat/composer/ime.test.ts src/app/chat/composer/slash-nav-dom-repro.test.tsx
  • npm -w apps/desktop run type-check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant