What
When Claude Code's output is not going to a terminal, for example when it is piped into another program, and the folder has not been trusted, it now stops with an error in two cases:
- a word such as
helporloginthat is not a Claude Code command, as inclaude help - a flag that needs an interactive session:
--resume,--from-pr,--teleportor--remote-control
The error says the word isn't a Claude Code command, so this would have started a session, and gives a hint. Nothing from the folder runs. This sits behind switches controlled from Anthropic's servers.
Why
It stops a mistyped or piped launch from quietly starting a session in a folder you have not trusted, where hooks (commands the folder's settings run automatically) could otherwise run.