You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Question dock custom answer textarea submits on IME composition Enter #20850
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
Open OpenCode in a browser (web or desktop)
Trigger a question with a custom answer option (e.g. a tool that uses AskYourQuestion with custom: true)
Click "Type your own answer" to open the custom input textarea
Enable a CJK input method (e.g. Japanese IME)
Type characters — IME composition begins (underline appears)
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.
Activity
fix(app): skip key handlers during IME composition in question dock
github-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.