{"version":"2.1.331","anchor":"git-dir-link-scrub-gains-a-new-ref-chain-walk-and-a-slow-scr","canonical_anchor":"git-dir-link-scrub-gains-a-new-ref-chain-walk-and-a-slow-scr","heading":"Sandbox git folder cleanup follows chains of links and can be time-limited","tier":"notice","area":"Sandbox","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/git-dir-link-scrub-gains-a-new-ref-chain-walk-and-a-slow-scr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Sandbox git folder cleanup follows chains of links and can be time-limited\n\nAfter a sandboxed command, git folder cleanup now follows ref files through chains of links and can run under a time limit\n\n**Unclear.** Whether the time limit and the chain-following are switched on depends on conditions that are not known.\n\n**What**\n\nA sandbox is a restricted space Claude Code can run commands in. After such a command, Claude Code checks git folders for ref files (small files where git records which commit a branch points to) that could be misused. That check has changed:\n\n- it now follows ref files through chains of links, where one file points to another\n\n- it can run under an overall time limit, which applies only when a remote switch is on\n\n- if the check holds things up for too long, Claude Code records that it was slow\n\n- its warning now says \"ref file that git could be led to write through\"\n\nBefore, it went through ref files one by one, with no time limit.\n\n**Why**\n\nThis hardens the sandbox against planted links and ref files that could lead git to write outside where it should.\n\n- Area: Sandbox\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}