[BUG] Windows IME composition text deleted on Enter — regression in v2.1.193
@
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
- Open Claude Code CLI in Windows Terminal on Windows 11
- Switch to any Chinese IME (e.g., Microsoft Pinyin, Sogou)
- Type a multi-character Chinese word (e.g., 2-3 characters)
- Press Enter to confirm the IME composition
- 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
@
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗