Skip to content

Bug: Chat rename commits unfinished IME text on candidate Enter #3590

Closed

Description

@yannickmonney

P2 · Reproduced locally against 44e0dcf254975286c0e9dea443b5cd1ca6b23347. No production testing.

The inline chat rename field commits and closes when Enter confirms an IME candidate. Japanese, Chinese and other composition input therefore saves unfinished text instead of letting the person complete the name.

Reproduction:

  1. Open a chat row's More actions → Rename.
  2. Begin an IME composition, for example Japanese にほん.
  3. Press Enter to confirm the composition candidate.

Expected: Ignore the composition-confirming Enter. Keep the input open; a subsequent ordinary Enter may save the completed title.

Observed in the actual ThreadRenameInput component: dispatching compositionStart, then keydown {key:'Enter', isComposing:true, keyCode:229} calls rename('fixture', 'にほん') and onDone(). The ordinary Enter control saves exactly once.

The handler checks only event.key; it does not guard event.nativeEvent.isComposing or the composition lifecycle. This is independent of failed-request recovery.

Proof: A fresh jsdom test of the real component fails expect(rename).not.toHaveBeenCalled() with the call above. Only the mutation hook and translation function are stubbed. This is a component-level input-event reproduction, not an OS IME/browser end-to-end claim.

Source: thread-row.tsx

Deduplication: Existing issue titles and all-state GitHub searches for rename/composition found no equivalent report.

Acceptance: Add a composition-event regression and retain ordinary Enter, Escape and blur behavior. Use the existing composition-handling conventions rather than introducing a separate input primitive.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions