Skip to content

[Bugs] IME composition Enter key triggers form submission in freeform input #1688

Description

@polyomino24

Mood: 😔
Category: Bugs

Bug: IME composition Enter key triggers form submission in freeform input

When using the ask_user tool's freeform text input (the field below multiple-choice options), pressing Enter to confirm IME (Input Method Editor) composition (e.g., converting Japanese hiragana to kanji) inadvertently submits the form.

Steps to reproduce:

Agent presents a multiple-choice question with freeform input enabled
Click the freeform text field and begin typing in Japanese (or any CJK language)
While the IME candidate window is open, press Enter to confirm the character conversion
Expected: The Enter key confirms the IME composition without submitting the form.

Actual: The form is submitted immediately with incomplete text (only the portion typed before the composition confirmation).

Suggested fix: Check KeyboardEvent.isComposing or listen for compositionend events and suppress form submission while IME composition is active.

Environment: macOS, Japanese IME


Field Value
App version 1.0.15
OS macOS 26.5.2
Theme GitHub
Path /chat
Tenure Week 3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions