Repository navigation
fix(cli): report errors the CLI used to discard; swallowed budget 26 -> 2 - #512
Merged
Merged
Conversation
…-> 2 - upgrade: when installing the new binary fails and the previous one cannot be put back either, the error now says so and names the displaced file. Before, the restore result was dropped and the user was left with no binary and no hint where the old one went. - plain REPL: /models, /agent and /connect print why a listing failed instead of printing nothing. - session saves after a turn log a warning on failure, including when the database cannot be opened (four sites, one helper). - CI event writes and upgrade leftover cleanup log at debug. The two remaining sites are a stdout flush before the REPL prompt and the last-resort tracing init. Co-Authored-By: Claude Fable 5.2 <[email protected]>
Merged
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.
What
The CLI crate had 26 places that threw an error away. 24 of them now name it.
/models,/agentand/connectprint why a listing failed instead of printing nothing.persist_session).scripts/swallowed_error_budget.json:cli26 -> 2. The two left are a stdout flush before the REPL prompt and the last-resort tracing init.Verification
cargo check,cargo fmt --all --check,cargo clippy -p whycodes-cli --all-targets -- -D warnings, all budget scripts: green.affected_tests.py --execute: 405 passed, 4 failed. The same 4 fail on unchangedmainon this Windows machine (two lockfile PID tests,cmd_upgrade_downloads_and_replaces_target,run_shell_capture_stdout_stderr_and_empty), so CI on Linux is the real check here.replace_binarybranch that calls them on a failed rename is not exercised by a test.🤖 Generated with Claude Code