Repository navigation
Preserve Claude failure diagnostics and usage-limit details - #591
Merged
Merged
Conversation
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.
Summary
Claude failures now carry the provider's diagnostic and supplied limit facts to the Run's terminal output and notification.
A pending root API error also supplies the diagnostic when the process exits before its final result. Parent recovery clears stale errors, and child results preserve the parent's outcome and usage.
Evidence
claude_terminal_failure_keeps_the_captured_spend_limit_message_for_either_exitfailed with onlyclaude's turn failed.After: the captured spend-limit message and HTTP status survive both zero and nonzero exits.
claude_root_api_error_is_a_fallback_when_process_exits_without_a_resultreproduction failed with onlyclaude exited 1.After: that same command passes all four combinations of exit status and earlier success; its regression test is retained.
cargo fmt --check,cargo clippy --all-targets -- -D warnings, 49 interpretation tests, and both updated Architecture review failure tests pass.cargo testpassed: 1528 passed, 1 existing ignored test, zero failures across 39 test binaries.Test seams
Interpretation::condense, then observeInterpretation::finishwith the process exit status.Unaddressed findings
Review coverage
Both axes read every changed file. Changed files left unread: none.
Merge Danger
Door: two-way
The decoder change can be reverted.
Blast Radius: Harness
Claude failure causes gain diagnostic text and supplied provider facts.
Closes #587
Built with codex · gpt-6.1-sol · xhigh