Unclear What the carried-over hold changes in the restarted session is not stated.
What
Bypass permissions mode lets Claude Code act without asking for approval. When Claude Code restarts itself, it can now pass the new process a marker through the internal environment variable CLAUDE_CODE_RELAUNCH_BYPASS_SWITCH. Claude Code sets this itself; it is not a setting to set by hand.
- The old process writes the marker only when bypass permissions mode is available, or is held for an automatic switch.
- The new process reads the marker at startup, clears it, and checks it against the running process.
- The result is either "held" or "seen", and a "held" result turns on a flag in the new session.
Why
It is groundwork so that a session that restarts itself keeps its bypass permissions hold instead of losing it.
Names in the bundleCLAUDE_CODE_RELAUNCH_BYPASS_SWITCH
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
What the carried-over hold changes in the restarted session is not stated.