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.203 Home All releases olderv2.1.202 v2.1.204newer

CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE Environment Variable

A new internal env var preserves terminal dimensions across session relaunches. When Claude Code spawns a replacement process (upgrade self-respawn, background detach), it captures the current terminal size as COLUMNSxROWS and passes it forward so the new process renders at the correct width and height even when the TTY reports wrong dimensions.

Details
  • Set automatically by Claude Code before relaunching; not intended for manual use
  • Applies terminal size from the env var only when stdout is a TTY and the OS hasn't already reported a real size
  • The env var is deleted from the process environment after being consumed
Evidence

Terminal size preservation (search for "CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE")

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.203 →