[BUG] Raw CSI u escape sequence [57358u] (Caps Lock) displayed in VSCode 1.112 terminal (v2.1.83 regression)
Resolved 💬 2 comments Opened Mar 25, 2026 by ou9810 Closed Mar 25, 2026
Bug Description
Pressing Caps Lock causes the raw CSI u escape sequence [57358u] to appear in the input area. 57358 is the Caps Lock keycode in the Kitty keyboard protocol (functional key base 57344 + 14).
The context progress bar in the status line also renders with garbled Unicode characters.
Regression
- v2.1.83: Bug present
- v2.1.81: Bug NOT present — downgrading via
npm install -g @anthropic-ai/claude-code@2.1.81resolves the issue
Likely related to the terminal color/rendering changes introduced in v2.1.83.
Environment
- Claude Code: v2.1.83
- Terminal: VSCode integrated terminal (1.112.0, arm64)
- OS: macOS (Apple Silicon, Darwin 25.2.0)
- Shell: zsh
Steps to Reproduce
- Open Claude Code v2.1.83 in VSCode integrated terminal
- Press Caps Lock
- Observe
[57358u]appearing as literal text in the input area
Expected Behavior
Caps Lock keypress should be silently ignored or handled internally, not displayed as a raw escape sequence.
Workaround
Downgrade to v2.1.81:
npm install -g @anthropic-ai/claude-code@2.1.81
Screenshot
https://github.com/anthropics/claude-code/issues/38650#issuecomment-4125034827
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗