Skip to main content

Stdin exhaustion fix

Terminal no longer hangs after first prompt.

Status: shipped | Area: policy | Published: 2026-03-20

Control impact: Fixes interactive terminal behavior.

  • terminalIO created new bufio.Scanner on every Prompt call
  • First scanner buffered all of stdin, leaving subsequent prompts reading EOF
  • Fixed by reusing single scanner for lifetime of struct