Unclear It is unclear how a reader turns on the option that lets their own hooks run in untrusted folders, or whether it is on by default.
What
Hooks are commands Claude Code runs automatically at set moments. Outside the interactive screen, Claude Code used to skip every hook in a folder you had not marked as trusted. It now behaves like this:
- Hooks that come from the folder itself still do not run. A debug line explains that the workspace is not trusted and your own settings do not define the hook.
- Hooks defined in your own settings can run.
- A file passed with
--settingsdoes not count as your own settings for this, so it cannot approve a hook without folder trust.
Hooks are also given the folder where the untrusted session started.
Why
The hooks that run in an untrusted folder are different now. If you rely on hooks there, define them in your own settings, not in a --settings file.
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubt
It is unclear how a reader turns on the option that lets their own hooks run in untrusted folders, or whether it is on by default.