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
macOS native Chinese IME composition is not cancelled correctly when pressing Esc #37911
When using the built-in macOS Chinese Pinyin input method, pressing Esc to cancel an unfinished pinyin composition does not behave correctly in opencode.
In some applications, pressing Esc during IME composition correctly clears the unfinished pinyin. However, in opencode, the unfinished pinyin text remains in the input field.
Expected behavior
The unfinished pinyin composition should be cancelled and removed, leaving the input field empty.
Actual behavior
The unfinished pinyin remains in the input field as plain text:
nihao
Additional context
This appears to be related to macOS IME composition handling. The application may not be correctly handling the cancellation of marked text / composition events from the native input method.
Other native macOS applications (such as Notes/TextEdit) correctly clear the composition when pressing Esc, so this may be an issue with opencode's text input handling rather than the input method itself.
Activity
github-actions commentedon Jul 20, 2026
This issue might be a duplicate of existing issues. Please check:
github-actions commentedon Sep 20, 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.