You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
Background AgentsArea: what it touches
ImprovementsKind: in v2.1.334,
ImprovementsSection of the release
What
Claude Code marks programs it starts with CLAUDE_CODE_CHILD_SESSION and CLAUDECODE, environment variables (named settings passed to programs) that show a process is running inside a Claude Code session. Background sessions are run by a background service, which now treats these markers more carefully:
--bg-pty-host, an internal option of the background service, now exits with an error when either variable is set, unless the tengu_swift_sunset gate is false. The error says it cannot be started from a Claude Code session or a process it launched, and tells you to run claude --bg instead. Before, it always started. Nothing has been read about the tengu_swift_sunset gate.
On macOS, when Claude Code re-launches itself with macDisclaimResponsibility, it now also removes CLAUDE_CODE_CHILD_SESSION and CLAUDECODE from the new process's environment. Before, it removed only CLAUDE_PTY_HOST_NO_STABLE_PATH.
Why
The background host cannot be started by accident from inside a session, and a background session re-launched on macOS is no longer treated as a nested child session, which would have hidden it from things like --resume.