Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v2.1.247 Home All releases olderv2.1.246 v2.1.248newer
Claude Code v2.1.247

Escape key sequences split across two terminal reads are no longer garbled

You'll notice
Useful3 Signal1
Terminal Input

Keypresses split across terminal reads no longer leak stray escape characters into your input.

What

When a key sequence arrives split so that only a bare Escape (or Escape-bracket) is left in the buffer, the decoder now remembers that fragment and joins it to the next chunk, emitting one key or mouse event instead of a stray Escape followed by stray literal characters.

Details
  • The remembered fragment is cleared as soon as a complete sequence arrives.
  • It is not applied inside a paste, so pasted text is unaffected.
Evidence

flushedEscapePrefix

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

Related

Other releases about the same thing. Found by shared names or similar wording; neither means one caused the other.

See this entry in the whole of v2.1.247 →