A launch with inherited open stdin hangs silently with zero output #1486
jasoncarreira
started this conversation in
Bug reports
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
If the process that launches
prime-agentleaves stdin open as a pipe that never reaches EOF, the launch hangsand writes zero bytes to stdout, stderr and the log. There is no message, so it is indistinguishable from a
crash or a hung daemon. Redirecting
< /dev/nullfixes it completely.Environment. prime-agent 0.7.2, daemon protocol 7 (
protocol-7-schema-16-1bcb9e7f1a49), build83a0f9f-dirty, Node 24.11.1, macOS 15 (darwin 25.5.0).Reproduction
Both were run back to back on the same machine and daemon.
Expected
Either do not block on stdin when a prompt was supplied with
-p, or emit something after a short wait — evenwaiting for piped input on stdinwould be enough to make this self-diagnosing.Why it matters to us
Supervisors, CI steps and process managers routinely hand a child an inherited pipe. Because the symptom is
total silence, it is easy to misattribute: we spent an afternoon blaming flags and then daemon health before
finding that closing stdin fixed it. It also masks unrelated failures that produce the same silence.
All reactions