{"version":"2.1.328","anchor":"spare-session-claim-rolls-back-env-on-failure","canonical_anchor":"spare-session-claim-rolls-back-env-on-failure","heading":"A failed claim of a spare process undoes its environment changes","tier":"internal","area":"Sessions","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328\/e\/spare-session-claim-rolls-back-env-on-failure","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.328","markdown":"### A failed claim of a spare process undoes its environment changes\n\nIf claiming a waiting spare process fails, its environment is restored; it also moves old MCP approvals into `settings.local.json`\n\n**What**\n\nClaiming a spare process (one started early that waits for a session to take it over) changed in three ways:\n\n- Rollback: if the claim fails after the process has been moved to the session, its environment variables are put back exactly as they were.\n\n- Windows: the claim refuses when the process's Windows sandbox state does not allow it. A sandbox limits what commands can touch.\n\n- MCP approvals: old approvals for MCP servers (outside tool servers) are moved from `~\/.claude.json` into `settings.local.json`. If that move fails, the claim continues anyway.\n\n**Why**\n\nA claim that fails no longer leaves the process half set up with some of the session's settings in place.\n\n- Area: Sessions\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}