Skip to content

[BUG] Pressing Enter to confirm IME (Japanese) conversion unintentionally sends the prompt #8405

@NozNozNozNoz

Description

@NozNozNozNoz

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
    This is a single bug report (please file separate reports for different bugs)
    I am using the latest version of Claude Code

What's Wrong?

When typing in Japanese (using an IME) in the VS Code extension's chat input field, pressing the Enter key to confirm a character conversion sends the prompt prematurely. This occurs even when I am in the middle of composing a sentence, making it extremely difficult to type complex questions that require multiple text conversions.

What Should Happen?

The Enter key should not send the prompt when the Input Method Editor (IME) is active for text composition. Its only function should be to confirm the selected characters (e.g., finalizing a Kanji conversion). Sending the prompt should be a distinct action performed only after the user has finished typing.

Error Messages/Logs

No specific error messages or logs are generated. This is a UI behavioral issue.

Steps to Reproduce

  1. Open the Claude Code extension on Mac and show the chat panel in VS Code.
  2. Focus on the chat input field.
  3. Switch the PC's input method to Japanese (turn on IME).
  4. Type a Japanese phrase that requires conversion, for example, "kakuchoukinou".
  5. As the IME suggests conversion candidates (e.g., ใ€Œๆ‹กๅผตๆฉŸ่ƒฝใ€), press the Enter key to confirm the selection.
  6. The prompt is immediately sent with only the confirmed text ("ๆ‹กๅผตๆฉŸ่ƒฝ"), even though the intention was to continue typing the rest of the sentence.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.0

Platform

Other

Operating System

macOS

Terminal/Shell

Other

Additional Information

This issue occurs within the VS Code GUI (the chat input box) and is not dependent on a specific terminal or shell. This issue likely affects users of many languages that rely on an Input Method Editor (IME) where the Enter key is used for text composition, such as Chinese and Korean. This behavior significantly degrades the user experience and usability of the extension for speakers of these languages.

Activity

github-actions

github-actions commented on Sep 30, 2025

@github-actions

Found 2 possible duplicate issues:

  1. [Bug] IME Input Handling: Unintended Message Sending on Enter During Kanji Conversion #7612
  2. Insert a new line with Enter key instead of sending a message #2054

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and ๐Ÿ‘ the existing issue instead
  • To prevent auto-closure, add a comment or ๐Ÿ‘Ž this comment

๐Ÿค– Generated with Claude Code

nerikosans

nerikosans commented on Sep 30, 2025

@nerikosans

Hi, thank you for opening this issue.
Let me just elaborate on the problem a little bit for clarity:

The Japanese input process involves two distinct steps: composition and conversion.

  • Composition: The user types phonetic characters (Hiragana) using standard letter keys (a-z).
  • Conversion: The user presses the spacebar to view Kanji candidates and then presses the Enter key (here is the problem) to confirm a selection. This action finalizes the characters in the input field but is not intended to submit the form.

After the full text is composed, the user presses the Enter key a second time to submit the form.

Therefore, listening for all Enter key presses to trigger a submission will create confusing and unintended behavior for Japanese users. ๐Ÿ˜ญ

FYI: https://dninomiya.github.io/form-guide/stop-enter-submit

Current behavior

Image

Expected behavior

Image

cotton123236

cotton123236 commented on Sep 30, 2025

@cotton123236

Same issue in Traditional Chinese!
Please fix this problem ASAP ๐Ÿ˜ญ๐Ÿ˜ญ

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

    area:a11yarea:idebugSomething isn't workinghas reproHas detailed reproduction stepsplatform:macosIssue specifically occurs on macOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nerikosans@NozNozNozNoz@cotton123236

        Issue actions

          [BUG] Pressing Enter to confirm IME (Japanese) conversion unintentionally sends the prompt ยท Issue #8405 ยท anthropics/claude-code