Skip to content

fix(exec): prompt on stdin TTY even with stdout piped - #1289

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-9002-exec-gate-stdin-tty
Oct 2, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-9002-exec-gate-stdin-tty

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Exec treats a stdin TTY as interactive even when stdout is piped, since permission and operator prompts read stdin and write stderr
  • A headless permission ask fails closed with an explicit stderr denial that names the action and the --dangerously-skip-permissions remedy, leaving stdout clean for piped consumers

Verification

  • bun run check passes: lint, typecheck, dead-exports, build, and the guarded suite (7884 pass, 0 fail)
  • New co-located tests prove piped-stdout plus stdin-TTY prompts and headless explicit stderr denial

Fixes CL-9002

@linear-code

linear-code Bot commented Oct 2, 2026

Copy link
Copy Markdown

CL-9002

@TheGreatAxios
TheGreatAxios force-pushed the cl-9002-exec-gate-stdin-tty branch from 5060ac4 to 96e54da Compare October 2, 2026 04:22
@TheGreatAxios
TheGreatAxios merged commit 814d06c into main Oct 2, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant