Repository navigation
ci: surface Claude Code error in review summary when no verdict is produced - #340
Merged
Merged
Conversation
…oduced The action hides Claude's output (show_full_output: false), so API errors such as an empty credit balance only showed up as "did not return structured_output". Read the final result message from the action's execution_file and show its error text in the step summary and as a warning annotation. Tool results are not printed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Code Coverage Report
|
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
When the Claude review produces no verdict, the "Evaluate review verdict" step now reads the error from the action's
execution_fileand shows it in the step summary and as a warning annotation.Motivation
The review gate on #339 passed (fail-open) while every review run failed after ~250 ms without calling the model. The real cause (no API credit balance) was invisible: with
show_full_output: falsethe action only logs--json-schema was provided but Claude did not return structured_output, and debug reruns don't change that. The authentication history in the Claude Console showed every WIF token exchange as successful, so the error came from the first API call.Type of Change
Changes
steps.review.outputs.execution_fileto the evaluate step viaenv(not interpolated into the script).resultmessage whenis_erroris true (subtype,num_turns, andresultorerrors), flatten it to one line and cap it at 1000 characters. Tool results are never printed, soshow_full_outputstays off.::warning. The gate stays fail-open.Testing
Not run. The jq filter could not be executed locally (no jq/Docker on the dev machine), and the action skips itself on this PR because the workflow differs from
main. It can only be verified after merge, when a review run fails.How to test & review
type: "result"entry).Checklist
Related Issues
Follow-up to #338 (Claude Code review gate).
🤖 Generated with Claude Code