Repository navigation
Exit with an error when the changed-file list fails to load - #416
Merged
Merged
Conversation
a mistyped ref exited 0 with empty output, so agents treated a failed review as clean. Report file-list load failures on exit when no annotations exist, and keep the existing output and history behavior when notes exist.
run the real TUI under a PTY with a bad ref and assert exit 1 with the load error on stderr. The PTY harness now records the child's exit status, so dropping the load error from run() fails a test.
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.
a mistyped ref (
revdiff no-such-ref) showed "error loading files" inside the TUI, and quitting then exited 0 with nothing on stdout or stderr.launch-revdiff.shand the plugins read exit 0 with empty output as a review with no annotations, so an agent that passed a bad ref reported a clean review.the model now keeps the error of the latest file-list load, cleared by the next successful one. When it is set and there are no annotations, revdiff prints
error: load changed files: ...and exits 1 on quit or a signal, and the launcher relays the message. When annotations exist, output and history work as before, so nothing is lost.TestRun_FailedFileLoadExitsWithErrorruns the real TUI under a PTY with a bad ref and checks for exit 1 and the error text. The PTY harness now records the child's exit status.