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
When using a CJK (Chinese/Japanese/Korean) IME in OpenCode, pressing Enter to confirm an IME candidate selection in the custom answer textarea inside SessionQuestionDock unintentionally commits the custom answer and exits editing mode.
The root cause is that the onKeyDown handler for the custom answer textarea in SessionQuestionDock did not check event.isComposing (or the legacy event.keyCode === 229 for Safari), so the Enter key fired during IME composition was treated as a commit action.
Plugins
No response
OpenCode version
1.4.3
Steps to reproduce
Open a session that shows a question request with a custom answer option
Click the custom answer option so the textarea opens
Description
When using a CJK (Chinese/Japanese/Korean) IME in OpenCode, pressing
Enterto confirm an IME candidate selection in the custom answer textarea insideSessionQuestionDockunintentionally commits the custom answer and exits editing mode.The root cause is that the
onKeyDownhandler for the custom answertextareainSessionQuestionDockdid not checkevent.isComposing(or the legacyevent.keyCode === 229for Safari), so the Enter key fired during IME composition was treated as a commit action.Plugins
No response
OpenCode version
1.4.3
Steps to reproduce
Screenshot and/or share link
before_fix.mov
Operating System
macOS
Terminal
No response