Skip to content

fix: waza serve crashes when stdin is not a terminal#224

Merged
github-actions[bot] merged 1 commit into
mainfrom
squad/fix-serve-stdin
Apr 28, 2026
Merged

fix: waza serve crashes when stdin is not a terminal#224
github-actions[bot] merged 1 commit into
mainfrom
squad/fix-serve-stdin

Conversation

@spboyer

@spboyer spboyer commented Apr 24, 2026

Copy link
Copy Markdown
Member

The MCP stdio server crashed when stdin wasn't a terminal (background mode, piped input), killing the HTTP dashboard server. Now only starts MCP stdio when term.IsTerminal() is true.

Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com

The MCP stdio server starts unconditionally alongside the HTTP
dashboard server. When waza serve runs in the background or with
piped/closed stdin, the MCP reader hits EOF and crashes the entire
process — killing the HTTP server.

Fix: only start MCP stdio when stdin is a terminal (term.IsTerminal).
The HTTP dashboard works independently without MCP.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot enabled auto-merge (squash) April 24, 2026 19:55
@github-actions github-actions Bot merged commit c79eea1 into main Apr 28, 2026
7 checks passed
@spboyer spboyer mentioned this pull request Apr 28, 2026
5 tasks
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.

2 participants