[2.1.83+] Korean IME toggle key outputs [57358u in input area (regression from 2.1.81)

Status Fixed / completed
Reported on v2.1.83
Maintainer reply ✓ Yes — ashwin-ant
Activity 6 comments · opened Mar 26, 2026 · closed Apr 18, 2026
💡 Likely answer: A maintainer (ashwin-ant, collaborator) responded on this thread — see the highlighted reply below.

Bug Description

When pressing the Korean IME toggle key (한/영 or Caps Lock configured for Korean input switching) in the Claude Code input area, the raw escape sequence [57358u is printed instead of switching the input method silently.

Environment

  • OS: macOS
  • Terminal: VSCode integrated terminal
  • Claude Code version with bug: 2.1.83, 2.1.84
  • Claude Code version without bug: 2.1.81 (confirmed working)

Steps to Reproduce

  1. Open Claude Code in VSCode integrated terminal
  2. Press the Korean IME toggle key (한/영 key or Caps Lock remapped for Korean input)
  3. Observe [57358u being printed in the input area

Expected Behavior

The IME toggle key should switch the input method without printing any characters.

Actual Behavior

[57358u is printed in the input field every time the key is pressed.

Additional Context

  • The issue started appearing after Claude Code auto-updated from 2.1.81 → 2.1.83
  • Existing sessions that were opened before the update (running 2.1.81) work correctly
  • New sessions (running 2.1.83+) reproduce the issue consistently
  • Other users on the same version may not have encountered it yet (haven't opened new sessions)
  • 57358 decimal = 0xDFEE — this is a Kitty Keyboard Protocol encoding for a key without a standard Unicode codepoint

🤖 Generated with Claude Code

View original on GitHub ↗

6 Comments

github-actions[bot] · 5 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/38604
  2. https://github.com/anthropics/claude-code/issues/38967
  3. https://github.com/anthropics/claude-code/issues/38880

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

ahn8711 · 5 months ago

Same issue here. macOS + VS Code integrated terminal, Claude Code 2.1.84. Pressing the Korean IME toggle key (한/영) prints [57358u instead of switching input method. Setting "terminal.integrated.keyboard.protocol": "standard" in VS Code settings.json does not fix it. Worked fine on 2.1.81.

doo13gil · 5 months ago

Fix found for the \[57358u\ / Caps Lock escape sequence issue!

If you're experiencing this with Caps Lock (or any input source switch key), there's a VS Code keybinding workaround that takes about 1 minute:

  1. Open Command Palette: \Cmd\ + \Shift\ + \P\
  2. Search "Preferences: Open Keyboard Shortcuts (JSON)" and open it
  3. Add inside the \[ ]\ array:

\\\json
{
"key": "capslock",
"command": "workbench.action.terminal.focus",
"when": "terminalFocus"
}
\
\\

  1. Save (\Cmd\ + \S\) — no restart needed.

This intercepts the Caps Lock key in the terminal so xterm.js doesn't forward the raw kitty protocol escape sequence into input. OS-level input source switching still works normally.

Full explanation in: anthropics/claude-code#39231

yurukusa · 5 months ago

/tmp/kitty-comment2.md

ashwin-ant collaborator · 4 months ago

This was fixed in v2.1.85 — The Korean IME toggle key no longer inserts [57358u into the input. If you're still seeing this in the latest version, please comment with your version and repro and we'll reopen.

github-actions[bot] · 4 months ago

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.