{"version":"2.1.203","anchor":"claude-code-relaunch-terminal-size-environment-variable","canonical_anchor":"claude-code-relaunch-terminal-size-environment-variable","heading":"CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE Environment Variable","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.203\/e\/claude-code-relaunch-terminal-size-environment-variable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.203","markdown":"### CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE Environment Variable\n\nA 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.\n\n**Details**\n\n- Set automatically by Claude Code before relaunching; not intended for manual use\n- Applies terminal size from the env var only when stdout is a TTY and the OS hasn't already reported a real size\n- The env var is deleted from the process environment after being consumed\n\n**Evidence**\n\nTerminal size preservation (search for `\"CLAUDE_CODE_RELAUNCH_TERMINAL_SIZE\"`)"}