Text duplication when typing with Chinese IME (macOS)

Status Open
Reported on v2.1.148
Maintainer reply None cached
Activity 0 comments · opened Jul 31, 2026

Description

When typing in the Claude Code chat input, some characters get duplicated unexpectedly. This happens most often when using a Chinese input method (e.g., Zhuyin/Bopomofo) on macOS.

Steps to Reproduce

  1. Set input method to Chinese (Zhuyin or similar)
  2. Type a message in the Claude Code chat input field
  3. Observe that some characters or words appear duplicated in the input box

Expected Behavior

Each character should appear exactly once as typed.

Actual Behavior

Some characters are duplicated, requiring manual deletion before sending. This is particularly disruptive during fast-paced workflows.

Environment

  • OS: macOS (Darwin 25.5.0)
  • Claude Code version: 2.1.148
  • Input method: Chinese Zhuyin (注音 / Bopomofo)

Additional Context

The issue appears to be related to IME composition events not being handled correctly in the input field. It does not occur when typing in English. Workaround: type in another app and paste into Claude Code.

View original on GitHub ↗