Skip to content

fix: surface Claude session-limit errors on the review sticky - #52

Merged
Troublor merged 1 commit into
mainfrom
mega-putin/ci/claude-pr-review-quota-sticky
Oct 8, 2026
Merged

Troublor merged 1 commit into
mainfrom
mega-putin/ci/claude-pr-review-quota-sticky

Conversation

@mega-putin

@mega-putin mega-putin Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

When Claude Code hits the 5-hour session limit (HTTP 429), pr-review used to retry immediately, then fail compile as MODEL_NO_OUTPUT. Authors only saw a red check and an internal code on the sticky status.

This round:

  • Classifies the first analysis transcript for session-limit / rate-limit wording.
  • Skips review_retry when that hit is not retryable.
  • Rewrites the existing sticky status with the provider sentence (including the reset time) and a link to the workflow run.
  • Does not post a new PR conversation comment.

The job still fails. Immediate rerun will fail the same way until the quota resets.

Test plan

  • PYTHONDONTWRITEBYTECODE=1 python3 -m unittest .github/actions/claude-pr-review/test_review_pipeline.py -q
  • Regenerated claude-pr-review/README.md via action_docs.py

Classify the first analysis transcript for quota/rate-limit failures,
skip the immediate model retry, and rewrite the existing sticky status
with the provider message and workflow run URL. Do not post a new
conversation comment.
@Troublor
Troublor merged commit cf50f41 into main Oct 8, 2026
9 checks passed
@Troublor
Troublor deleted the mega-putin/ci/claude-pr-review-quota-sticky branch October 8, 2026 09:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant