{"version":"2.1.333","anchor":"sandboxpermission-explanation-now-covers-hooks-that-name-a","canonical_anchor":"sandboxpermission-explanation-now-covers-hooks-that-name-a","heading":"Checkout protection warning now covers commands that only name a file","tier":"notice","area":"Hooks","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333\/e\/sandboxpermission-explanation-now-covers-hooks-that-name-a","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.333","markdown":"### Checkout protection warning now covers commands that only name a file\n\nThe protection warning now also applies when a hook, helper or status line names a file of this checkout, not only when it runs one\n\n**What**\n\nA hook is a command you set up to run automatically at set moments while Claude Code works. Claude Code can show a warning when a hook, a helper or the status line (the information line at the bottom of the screen) uses a file inside the current checkout, which is your local copy of the project. The warning explains that these commands run past every permission mode, so the usual approval prompts do not stop them.\n\nThe warning now covers more cases. It used to say such a command \"runs a file of this checkout\". It now says the command \"runs or names a file of this checkout\". A command that only mentions a file in the checkout, without running it, now counts too.\n\n**Why**\n\nThis protection message may appear more often than before, including for commands that mention a project file without executing it.\n\n- Area: Hooks\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}