{"version":"2.1.326","anchor":"tui-asked-env-var-is-now-cleared-on-child-spawn","canonical_anchor":"claude-code-tui-asked-env-now-set-when-not-in-fullscreenoth","heading":"New CLAUDE_CODE_TUI_ASKED variable records the requested display mode on relaunch","tier":"internal","area":"Environment","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326\/e\/tui-asked-env-var-is-now-cleared-on-child-spawn","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.326","markdown":"### New CLAUDE_CODE_TUI_ASKED variable records the requested display mode on relaunch\n\nWhen the terminal interface relaunches, CLAUDE_CODE_TUI_ASKED now carries the requested mode and is cleared for child processes\n\n**Unclear.** What sets `CLAUDE_CODE_TUI_ASKED` and what it does for the reader is not stated.\n\n**What**\n\nClaude Code can relaunch its terminal interface, the text screen you work in, in a different display mode. It passes the mode to the relaunched session through environment variables, which are named settings handed to a program when it starts. A new variable, `CLAUDE_CODE_TUI_ASKED`, joins `CLAUDE_CODE_TUI_JUST_SWITCHED`. It was absent from the previous build.\n\n- `CLAUDE_CODE_TUI_ASKED` is set to the chosen display mode even when the relaunch is not a switch to fullscreen. Before, extra values were passed only in the fullscreen case.\n\n- When Claude Code starts a child process, a program it launches itself, it deletes `CLAUDE_CODE_TUI_ASKED` together with `CLAUDE_CODE_TUI_JUST_SWITCHED` and `CLAUDE_CODE_TUI_TRIAL`.\n\n**Why**\n\nThe relaunched session can now tell which mode you asked for, not just whether a fullscreen switch happened. Clearing the variable for child processes stops programs Claude Code starts from inheriting it.\n\n- Area: Environment\n- Names: `CLAUDE_CODE_TUI_ASKED`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}