Skip to main content
Blue Moose logo Blue Moose Field notes
← All articles
claude code

Claude Code 2.1.329: trust dialog names the hooks

Overhead view of a developer at a dark desk with three bright monitors

Most of the Claude Code changelog is bug fixes I skim. The 2.1.329 notes, published on 19 November, are different: three small entries in that very long list change what you can know about a repository before it runs code on your machine. I read the release notes line by line, and these are the ones I would act on.

The trust dialog now says where hooks live

The notes say it plainly: "Added a trust dialog warning that says where a folder's hooks are declared." Hooks are shell commands that fire on events like a tool call or a prompt, and they can be declared in several settings files. Until now the trust prompt for a folder was a yes/no without much detail. Knowing whether a hook comes from the project's own settings or from somewhere else is the difference between a careless Enter keypress and an informed one.

I have written before about repos where opening the folder is the attack. This does not close that class of problem, but it gives you something concrete to read at the one moment you are asked to decide.

Managed hooks that fail to load are no longer silent

A second entry: "Added a warning in the conversation, in Claude Desktop and other non-interactive hosts, when hooks in managed settings fail to load." If you use managed settings to enforce a policy hook, such as blocking a destructive command, a hook that quietly fails to load is a policy that quietly does not exist. A visible warning is the minimum I want here.

Related, and easy to miss in the same release: Code Mode now behaves like normal mode when a PreToolUse hook errors. The note reads: "a PreToolUse hook that errors no longer refuses a script's tool call, as outside Code Mode; set "onFailure": "block" on a command, HTTP or MCP tool hook that must refuse." So an erroring hook does not block by default. Version 2.1.328 had just added "onFailure": "block" for mcp_tool hooks, so all three hook types now support it. If a hook is your safety control, set it explicitly.

/sandbox stops overstating Unix sockets on Linux

The last one is a one-liner: "Fixed /sandbox on Linux listing allowUnixSockets entries as allowed: they don't open those sockets there, and /sandbox now says so." The part that matters is that the settings screen used to imply access that the Linux sandbox never granted. That cuts toward safety, but it means any workflow that assumed a Docker or SSH-agent socket was reachable from inside the sandbox on Linux was relying on a display bug. I would check any config I had that lists allowUnixSockets.

What I'm changing

Three things, none of them big. I will read the hook location in the trust dialog instead of dismissing it. I will add "onFailure": "block" to every hook that is a real guardrail rather than a convenience. And I will treat the /sandbox output as the source of truth on Linux, not my own settings file.

None of this is dramatic, and that is why I wrote it up. Security in these tools tends to improve through small honesty fixes: a dialog that names its source, a warning that fires, a screen that stops claiming too much. Those are worth a skim of a very long changelog.

BM
Blue Moose
The moose behind Blue Moose. Full-stack PHP developer — Drupal by day, Symfony by night, tests always.