Skip to content

[Bug]: Desktop macOS 15: first Chinese character cannot be typed with 微信输入法 / 豆包输入法 IME #41647

Closed as not planned

Description

@Maxthonzx

Description

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

  1. Install 微信输入法 (z.weixin.qq.com) or 豆包输入法 (shurufa.doubao.com) on macOS 15.
  2. Open the OpenCode desktop app, click into the message input field.
  3. Keep the IME in Chinese mode, type the first character (e.g. n), continue composing.
  4. Nothing appears / the first character is lost or committed literally instead of entering the composition.
  5. As a workaround: type an English letter or a digit first, then the following Chinese text inputs normally.

Screenshot and/or share link

No response

Operating System

macOS 15.7.9

Terminal

No response (Desktop app)

Activity

  1. github-actions commented on Aug 11, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. OliverLPH commented on Aug 18, 2026

    @OliverLPH

    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

  3. lamioIsNew commented on Sep 13, 2026

    @lamioIsNew

    I may also faced the same problem in 1.18.30

    The 搜狗拼音 input can not type normally.

    都是中国人,说中文
    在你的鼠标指针在它的TUI上面,但是打不出中文,按shift也没反应。
    需要你先在其他的界面上打几个中文才能打,不然这个TUI就不让你输入中文

  4. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    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/cli package, 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.

  5. AXuanCreator commented on Oct 29, 2026

    @AXuanCreator

    在Opencode v2.1.1版本中,已复现此问题

    Image
  6. opencodejr commented on Oct 29, 2026

    @opencodejr
    Contributor

    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.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions