Skip to content

fix: report fatal errors in plain print mode - #135

Merged
ananthanandanan merged 2 commits into
Construct-Lab:mainfrom
Sanjays2402:fix/plain-print-fatal-error
Jul 20, 2026
Merged

fix: report fatal errors in plain print mode#135
ananthanandanan merged 2 commits into
Construct-Lab:mainfrom
Sanjays2402:fix/plain-print-fatal-error

Conversation

@Sanjays2402

Copy link
Copy Markdown
Contributor

Plain reigner chat --print discarded unrecoverable ErrorEvent messages, leaving callers with only exit code 1. This captures the fatal message and writes it to stderr while keeping --json output unchanged.

Fixes #134

Tested with pytest tests/cli/test_chat.py -q and Ruff check/format.

Sanjays2402 and others added 2 commits July 17, 2026 05:01
Capture unrecoverable ErrorEvent messages and write them to stderr when JSON output is disabled. Add a CLI regression test for the silent-error path.
@ananthanandanan
ananthanandanan merged commit ee57fa6 into Construct-Lab:main Jul 20, 2026
2 checks passed
@ananthanandanan

Copy link
Copy Markdown
Contributor

Merged, thanks, and sorry it sat. The delay was mine: main had moved on, but there were no conflicts, so I updated the branch and merged.

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.

chat --print (plain mode) swallows fatal ErrorEvents — silent exit 1

2 participants