anomalyco / anomalyco/opencode

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

Open
#41,647 3 comments 1 reaction 1 assignee View on GitHub

@Brendonovich is already working on this.

Since Aug 11, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
Avg merge
7h 2m
Merged PRs (30d)
384

Description

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)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.