What
Several settings let you name your own command, which Claude Code runs to fetch credentials or headers. Examples are a command that prints an API key or refreshes cloud login details. Claude Code checks whether it is safe to run such a command. One part of that check is folder trust, which means whether you have said you trust the project folder you are working in. Each of these settings used to have its own check, which read the project settings and the local settings directly. They now all go through one shared check:
apiKeyHelpernow asks a general settings-source helper about the keyapiKeyHelper.awsCredentialExport,gcpAuthRefresh,otelHeadersHelperandproxyAuthHelperuse a shared trust helper. Its answer is one of three states: held, untrusted or trusted.awsAuthRefreshruns only if a new lookup returns a command. The lookup is eithernamedOutsideFolderorinTrustedFolderfor the session. It used to be a simple trust test.- The
awsAuthRefreshandgcpAuthRefreshvalues are now handled as a structured object in the code, not as plain text. - The helper for policy-managed settings now receives both the setting and its command, and passes the command on.
- A separate
otelHeadersHelpercheck was folded into the shared one.
What the shared check does:
- A command set in policy settings runs without waiting for folder trust. Policy settings are settings an administrator manages for the machine.
- A command that is not named in the project or local settings also runs without waiting for folder trust.
- In a folder you have not trusted, a command named in the project or local settings is held, or Claude Code raises the existing security error.
Why
These checks decide when a command from a project's settings may run before you have trusted the folder. If you or your administrator rely on one of these helper commands, it may now run, wait or be refused at a different moment than before.