{"version":"2.1.317","anchor":"relaunch-passes-a-sanitized-set-of-resume-hint-flags-through","canonical_anchor":"relaunch-passes-a-sanitized-set-of-resume-hint-flags-through","heading":"Relaunched Claude Code keeps your original options for the resume hint","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317\/e\/relaunch-passes-a-sanitized-set-of-resume-hint-flags-through","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.317","markdown":"### Relaunched Claude Code keeps your original options for the resume hint\n\nWhen Claude Code relaunches itself, it passes a cleaned-up copy of your original command-line options on so the resume hint can repeat them\n\n**What**\n\nWhen Claude Code relaunches itself, starting a new copy of itself without being given explicit arguments, it now sets `CLAUDE_CODE_RELAUNCH_RESUME_HINT_FLAGS` for the new copy. This environment variable holds the command-line options (flags) you originally started Claude Code with, cleaned up first:\n\n- Removed options: resume, continue, session-id, worktree, prefill and some others, plus teammate and agent options\n\n- Character check: an option is kept only if it uses a strict set of characters\n\n- System paths: anything touching \/dev\/ or \/proc\/ is dropped\n\nThe new copy reads the variable, clears it, and uses it only if cleaning it again gives exactly the same result.\n\n**Why**\n\nThe hint shown after a relaunch, telling you how to resume, can then include the options you first started with.\n\n- Area: Sessions\n- Names: `CLAUDE_CODE_RELAUNCH_RESUME_HINT_FLAGS`\n- Tier: Under the hood\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}