Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.223 ·

Command-display sanitizer rewritten to handle bidi controls and lone surrogates

Commands shown in approval prompts are cleaned harder, so text can't be visually spoofed into looking harmless.

You'll notice Improvements
JSON All of v2.1.223
You'll noticeTier: how much it should matter to you
3Useful: my rating, 1 to 5
0Signal: worth watching, 1 to 5
PermissionsArea: what it touches
ImprovementsKind: in v2.1.223,
ImprovementsSection of the release
What

The sanitizer behind command rendering in the approval path now defends against bidi spoofing and malformed text, not just control characters.

Details
  • the old char-by-char helper that replaced C0/C1 controls with U+FFFD was removed
  • the replacement iterates code points, drops emoji variation selectors entirely, and replaces control characters, bidi/isolate format controls and lone surrogates with U+FFFD
  • a final normalization step runs afterwards, with an optional extra pass
Evidence

\uFFFD

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.223 →

Feedback