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]: Desktop macOS 15: first Chinese character cannot be typed with 微信输入法 / 豆包输入法 IME #41647
On macOS 15, in the OpenCode desktop app, the first character cannot be entered when the input field is in Chinese input-method state. Reproduced with two third-party IMEs: 微信输入法 (WeChat / WeType) and 豆包输入法 (Doubao). If the first character is English or a digit, everything works fine afterwards — the failure only affects the very first Chinese keystroke of a message.
This looks related to existing IME composition issues (#39632, #37911, #38674) but occurs specifically in the desktop app's first-keystroke path with these IMEs on macOS 15 (not the v2 web prompt, not Esc handling).
Plugins
None
OpenCode version
1.18.16 (Desktop)
Steps to reproduce
Install 微信输入法 (z.weixin.qq.com) or 豆包输入法 (shurufa.doubao.com) on macOS 15.
Open the OpenCode desktop app, click into the message input field.
Keep the IME in Chinese mode, type the first character (e.g. n), continue composing.
Nothing appears / the first character is lost or committed literally instead of entering the composition.
As a workaround: type an English letter or a digit first, then the following Chinese text inputs normally.
OpenCode Desktop 1.18.16 is part of OpenCode v1. v1 now only gets fixes for critical bugs (data loss, security problems, crashes or breakage with no workaround). Losing the first keystroke is annoying, but you have a workaround (type an English letter or a digit first), so this is unlikely to be fixed in v1.
We recommend upgrading to OpenCode v2 (the @opencode/cli package, versions 2.x). Related IME issues, most relevant first:
Closing this as not planned. It affects OpenCode Desktop 1.18.16 (v1), which only gets critical fixes, and you can work around it by typing an English letter or a digit first. We didn't hear back that it also happens on v2.
If the first Chinese keystroke is still lost with 微信输入法 or 豆包输入法 after you upgrade to v2, please reply here with your v2 version and we'll take another look. You may also want to follow #39632, an open issue about the same first-keystroke IME problem in v2's prompt input.
Activity
github-actions commentedon Aug 11, 2026
This issue might be a duplicate of existing issues. Please check:
OliverLPH commentedon Aug 18, 2026
I may have reproduced the same class of issue with Apple's built-in Simplified Chinese Pinyin IME.
Environment: OpenCode Desktop 1.18.18, Electron 42.3.3, macOS 26.2 on Apple Silicon.
Here is a reproduced screenshot
https://github.com/user-attachments/assets/df3f46d0-4085-4816-921a-1982138704d7
lamioIsNew commentedon Sep 13, 2026
I may also faced the same problem in 1.18.30
The 搜狗拼音 input can not type normally.
都是中国人,说中文
在你的鼠标指针在它的TUI上面,但是打不出中文,按shift也没反应。
需要你先在其他的界面上打几个中文才能打,不然这个TUI就不让你输入中文
opencodejr commentedon Oct 28, 2026
Thanks for the detailed report and the IME links.
OpenCode Desktop 1.18.16 is part of OpenCode v1. v1 now only gets fixes for critical bugs (data loss, security problems, crashes or breakage with no workaround). Losing the first keystroke is annoying, but you have a workaround (type an English letter or a digit first), so this is unlikely to be fixed in v1.
We recommend upgrading to OpenCode v2 (the
@opencode/clipackage, versions 2.x). Related IME issues, most relevant first:If you see the same problem with 微信输入法 or 豆包输入法 on v2, or you think this is critical, please reply here and include your v2 version.
AXuanCreator commentedon Oct 29, 2026
在Opencode v2.1.1版本中,已复现此问题
opencodejr commentedon Oct 29, 2026
Closing this as not planned. It affects OpenCode Desktop 1.18.16 (v1), which only gets critical fixes, and you can work around it by typing an English letter or a digit first. We didn't hear back that it also happens on v2.
If the first Chinese keystroke is still lost with 微信输入法 or 豆包输入法 after you upgrade to v2, please reply here with your v2 version and we'll take another look. You may also want to follow #39632, an open issue about the same first-keystroke IME problem in v2's prompt input.