Follow Discord
Sweep 23 Nov 2026 · 19:13Z Build v2.1.331 548 read Stable v2.1.323 Latest v2.1.330 Next v2.1.331 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.331 ·

Piped launches in untrusted folders stop instead of starting a session by mistake

In an untrusted folder with piped output, claude help, login and flags like --resume now stop with an error instead of starting a session

You'll notice Improvements
JSON All of v2.1.331
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.331,
ImprovementsSection of the release
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:

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.

See this entry in the whole of v2.1.331 →

Feedback