{"version":"2.1.331","anchor":"sandbox-rebuild-deferred-until-last-live-wrap-is-cleaned-up","canonical_anchor":"sandbox-rebuild-deferred-until-last-live-wrap-is-cleaned-up","heading":"Sandbox can rebuild its setup once the last running command finishes","tier":"internal","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/sandbox-rebuild-deferred-until-last-live-wrap-is-cleaned-up","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Sandbox can rebuild its setup once the last running command finishes\n\nWhen the last sandboxed command finishes, Claude Code now runs a sandbox rebuild that was put off while commands were running\n\n**Unclear.** It is not clear what marks a rebuild as owed, so it is unknown which settings changes are delayed this way.\n\n**What**\n\nThe sandbox is the restricted environment Claude Code can run shell commands in. When the last running sandboxed command is cleaned up, Claude Code now checks whether a rebuild of the sandbox is owed. If one is, it runs the rebuild then. Before, this cleanup only reset its internal tracking and did no rebuild.\n\n**Why**\n\nChanges to sandbox settings made while a command is running appear to take effect once that command finishes. They are no longer left unapplied.\n\n- Area: Sandbox\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}