[Bug] Claude Code CLI inserts kitty protocol escape sequence [57358u when Caps Lock pressed in VS Code SSH Remote terminal

Resolved 💬 3 comments Opened Mar 25, 2026 by egaf-lucacasali Closed Mar 29, 2026

Bug Description
Bug: Pressing Caps Lock in Claude Code CLI inside VS Code integrated terminal (SSH Remote) inserts the escape sequence [57358u into the input instead of being
silently handled.

Environment:

  • VS Code 1.112.0 on Windows 11
  • Connected via SSH Remote to Linux 6.8.0-101-generic
  • Claude Code CLI (latest) running on the remote Linux host
  • NOT reproducible when connecting via PuTTY to the same Linux host

Steps to reproduce:

  1. Open VS Code on Windows 11 with SSH Remote connection to Linux
  2. Open integrated terminal (runs on remote host)
  3. Launch Claude Code CLI
  4. Press Caps Lock
  5. The sequence [57358u appears in the input text

The same issue does NOT occur when using PuTTY to SSH into the same machine and running Claude Code CLI there. This confirms the issue is specific to VS
Code's integrated terminal + SSH Remote.

This is a CSI u escape sequence from the kitty keyboard protocol (key code 57358 = Caps Lock). Claude Code should ignore/filter this key event.

VS Code settings already tried (none worked):

  • terminal.integrated.keyboard.enableKittyProtocol: false
  • terminal.integrated.shellIntegration.enabled: false
  • terminal.integrated.sendKeybindingsToShell: false
  • terminal.integrated.keyboard.enableKeyboardProtocol: false
  • terminal.integrated.keyboard.dispatch: "keyCode"
  • terminal.integrated.gpuAcceleration: "off"
  • terminal.integrated.env.linux: { "TERM": "xterm" }

Expected: Caps Lock should be silently ign…
Note: Content was truncated.

View original on GitHub ↗

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