Repository navigation
End the CLI quietly when the reader closes its standard output - #191
Merged
Merged
Conversation
dominion525
force-pushed
the
fix/cli-broken-pipe
branch
from
October 26, 2026 18:19
ff40b88 to
2864993
Compare
- When the reader closed stdout, most subcommands panicked and exited with 101, and export and form dump printed a Broken pipe error and exited with 1 - Write all output through functions that return io::Result, and treat BrokenPipe once in exit_code, which ends with exit code 0 and no message - Give CliError, which tells a closed output from other errors, from the subcommands that gave string errors - Test every subcommand and --help-skill with a standard output whose reader has closed Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
dominion525
force-pushed
the
fix/cli-broken-pipe
branch
from
October 26, 2026 18:30
2864993 to
91fd26c
Compare
CoverageFor 91fd26c. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
jetdb schema ... | head -1, most subcommands panicked and exited with 101, and export and form dump printedjetdb: ... Broken pipeand exited with 1.io::Result, and BrokenPipe is treated once, inexit_code: every subcommand, and--help-skill, ends with exit code 0 and no message when its output is closed. Subcommands that gave string errors giveCliError, which tells a closed output from other errors.std::io::pipe, stable since Rust 1.87, so this needs the pull request that raises the minimum supported Rust version to 1.87 to be merged first.🤖 Generated with Claude Code