{"version":"2.1.331","anchor":"non-interactive-launches-now-stop-when-a-command-word-or-int","canonical_anchor":"non-interactive-launches-now-stop-when-a-command-word-or-int","heading":"Piped launches in untrusted folders stop instead of starting a session by mistake","tier":"notice","area":"Elsewhere","scope":"individual","heads_up":true,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331\/e\/non-interactive-launches-now-stop-when-a-command-word-or-int","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.331","markdown":"### Piped launches in untrusted folders stop instead of starting a session by mistake\n\nIn an untrusted folder with piped output, `claude help`, `login` and flags like `--resume` now stop with an error instead of starting a session\n\n**What**\n\nWhen 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:\n\n- a word such as `help` or `login` that is not a Claude Code command, as in `claude help`\n\n- a flag that needs an interactive session: `--resume`, `--from-pr`, `--teleport` or `--remote-control`\n\nThe 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.\n\n**Why**\n\nIt 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.\n\n- Area: Elsewhere\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: yes"}