{"version":"2.1.321","anchor":"osc-prompt-for-non-tty-stdin-fixed","canonical_anchor":"osc-prompt-for-non-tty-stdin-fixed","heading":"Confirmation prompts work when input is piped into Claude Code","tier":"notice","area":"Headless Mode","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321\/e\/osc-prompt-for-non-tty-stdin-fixed","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.321","markdown":"### Confirmation prompts work when input is piped into Claude Code\n\nPrompts that ask a question in the terminal were broken and now work, including when input is piped in rather than typed\n\n**What**\n\nThe helper that asks a question in the terminal and waits for an answer referred to things that did not exist, so it could not work. It now uses the right input connection. When standard input (what Claude Code reads from) is not an interactive terminal, such as when text is piped in, it reads the answer line. If input closes without an answer, the prompt ends with no answer instead of hanging.\n\n**Why**\n\nConfirmation prompts now behave when input is piped in.\n\n- Area: Headless Mode\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}