Chinese IME input not passed to input box correctly

Resolved 💬 3 comments Opened Apr 20, 2026 by xiaodream551-a11y Closed Apr 24, 2026

Bug Description

When using a Chinese Input Method Editor (IME), typing text (e.g., /clear) does not get written into the Claude Code input box. The characters seem to be swallowed by the IME composition layer and never committed to the input field.

Environment

  • OS 1: macOS 15.x, native Chinese (Simplified) input method, iTerm2
  • OS 2: Windows, Chinese IME, WezTerm
  • Claude Code version: latest

Steps to Reproduce

  1. Enable Chinese input method (in Chinese mode, not switched to English)
  2. Open Claude Code in terminal (iTerm2 on Mac / WezTerm on Windows)
  3. Try to type /clear or any text into the Claude Code input box
  4. Characters are not entered into the input box

Expected Behavior

Text should be committed to the input box after IME composition completes (e.g., pressing Enter or Space to confirm the candidate, or typing pure ASCII characters).

Actual Behavior

The input is lost / not passed to the input field. The input box remains empty or partial.

Notes

  • This happens on both macOS (iTerm2 + native IME) and Windows (WezTerm + Chinese IME), suggesting it may be a general IME composition event handling issue in the TUI input layer.
  • Workaround: switch to English input mode before typing commands.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗