Skip to content

[BUG] Question dock custom answer textarea submits on IME composition Enter #20850

Closed as not planned

Description

@yykamei

Description

In the web version, the "Type your own answer" textarea in the question dock (SessionQuestionDock) submits the custom answer when pressing Enter to confirm an IME composition (e.g. Japanese, Chinese, Korean).

The onKeyDown handler on the textarea does not check event.isComposing or event.keyCode === 229, so Enter during IME composition triggers commitCustom() instead of just committing the composed character.

This is the same class of bug as #16360 (LineCommentEditor), which was fixed in #16361. The question dock textarea was not covered by that fix.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Open OpenCode in a browser (web or desktop)
  2. Trigger a question with a custom answer option (e.g. a tool that uses AskYourQuestion with custom: true)
  3. Click "Type your own answer" to open the custom input textarea
  4. Enable a CJK input method (e.g. Japanese IME)
  5. Type characters — IME composition begins (underline appears)
  6. Press Enter to confirm the IME candidate

Expected: The composed character is committed to the textarea; composition ends.
Actual: The custom answer is submitted immediately with incomplete text.

Screenshot and/or share link

Screen.Recording.2026-04-03.at.18.25.09.mov

same visual behavior as #16360

Operating System

macOS

Terminal

No response

Activity

  1. added a commit that references this issue on Apr 3, 2026
    ceca0e2
  2. removed
    webRelates to opencode on web / desktop
    on May 3, 2026
  3. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions