[BUG] Windows IME composition text deleted on Enter — regression in v2.1.193

Resolved 💬 2 comments Opened Jun 26, 2026 by Chenbboo Closed Jun 29, 2026

@

Environment

  • OS: Windows 11 Pro 10.0.26200
  • Input method: Chinese IME (中文输入法)
  • Claude Code: v2.1.193 (CLI)

Summary

When typing Chinese characters with IME and pressing Enter to confirm the composition, the composed text gets deleted instead of being committed. This is a regression — v2.1.191 works fine.

Steps to reproduce

  1. Open Claude Code CLI in Windows Terminal on Windows 11
  2. Switch to any Chinese IME (e.g., Microsoft Pinyin, Sogou)
  3. Type a multi-character Chinese word (e.g., 2-3 characters)
  4. Press Enter to confirm the IME composition
  5. Observe: the composed text is deleted instead of being inserted

Expected behavior

Enter key confirms IME composition and the text remains in the input area.

Actual behavior

The composed Chinese characters are deleted on Enter.

Regression

  • ✅ v2.1.191: works correctly
  • ❌ v2.1.193: broken

Possible cause

v2.1.193 introduced live file path autocompletion in Bash mode (! command). This feature likely intercepts keyboard input events in a way that interferes with IME composition events on Windows, particularly the \x08 (BS) byte that Windows IME sends during composition (unlike macOS/Linux which use \x7F).

Related: #33891 documents the \x08 vs \x7F discrepancy in Windows IME handling.

Workaround

Downgrade to v2.1.191:

npm install -g @anthropic-ai/claude-code@2.1.191

@

View original on GitHub ↗

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