claude-code - 💡(How to fix) Fix /ultrareview consumes free run on Find-phase timeout failure for oversized diffs [1 participants]

Official PRs (…)
ON THIS PAGE

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54512Fetched 2026-04-30 06:43:36
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

/ultrareview consumes a free run from the 3-of-3 quota even when the cloud review fails before producing any findings. Specifically observed: a Find-phase timeout on an oversized diff failed the run, but the quota was still decremented from 3 to 2.

Root Cause

  • The CLI output [] looks identical to "clean review, no bugs found" — a user could legitimately mistake this for a successful clean pass and merge / ship without a real review having happened. The session UI does show the failure, but only if you click through.
  • Free runs are scarce (3 total per Pro/Max account, one-time, expiring May 5, 2026). Burning one on a no-output failure is high-friction.
RAW_BUFFERClick to expand / collapse

Summary

/ultrareview consumes a free run from the 3-of-3 quota even when the cloud review fails before producing any findings. Specifically observed: a Find-phase timeout on an oversized diff failed the run, but the quota was still decremented from 3 to 2.

Reproduction

  1. Confirm 3 free runs remaining (/extra-usage).
  2. Check out main of a project and create a branch pointing at the project's earliest commit (or any base producing a very large diff).
  3. Run /ultrareview <large-base-branch> against a diff that's far above the typical PR size — in my repro, 433 files / 241,017 insertions / ~417 commits.
  4. Confirm the launch succeeded (CLI shows "Ultrareview launched...", session URL provided).
  5. Wait for the task to complete.

Observed

  • Session UI (example layout) shows:
    • Setup: ✅ pass
    • Find: ❌ fail (timeout/heartbeat)
    • Verify: ⏳ never ran
    • Dedupe: ⏳ never ran
  • CLI returns <remote-review>[]</remote-review> (zero findings) — easily mistaken for "no bugs found" rather than "review failed before finding anything".
  • /extra-usage shows 2 of 3 remaining — the failed run was charged.

Expected

A Find-phase failure (especially a timeout for being too large to process) should either:

a. Auto-refund the free run, since the user got nothing actionable out of it. b. Pre-flight reject the diff with a clear "diff too large, narrow the scope" message before consuming a run.

Why this matters

  • The CLI output [] looks identical to "clean review, no bugs found" — a user could legitimately mistake this for a successful clean pass and merge / ship without a real review having happened. The session UI does show the failure, but only if you click through.
  • Free runs are scarce (3 total per Pro/Max account, one-time, expiring May 5, 2026). Burning one on a no-output failure is high-friction.

Suggested fix

  • Add a pre-flight diff-size check at launch time. If files-changed × insertions-added is above the cloud fleet's effective processing window, refuse with a clear "scope is too large; pass a more recent base branch or split into surface-specific reviews" message.
  • Or: don't consume the free run unless Find phase produces output (verified or not).
  • Make the CLI output for a failed Find phase distinct from a successful zero-findings result. [] should not be the only signal for both states.

Environment

  • Claude Code CLI on Linux
  • Anthropic Pro/Max subscription, extra-usage enabled
  • Private GitHub repo (org-owned)

extent analysis

TL;DR

To address the issue of consuming a free run quota on a failed cloud review, consider implementing a pre-flight diff-size check or only decrementing the quota when the Find phase produces output.

Guidance

  • Implement a pre-flight check to verify the diff size is within the cloud fleet's processing window before launching the review.
  • Modify the quota consumption logic to only decrement the count when the Find phase produces output, ensuring that failed reviews do not burn a free run.
  • Enhance the CLI output to differentiate between a failed Find phase and a successful review with zero findings, avoiding confusion.
  • Consider adding a clear error message when the diff size exceeds the processing limit, guiding users to narrow the scope or split the review.

Example

No code snippet is provided as the issue does not contain specific code references.

Notes

The suggested fixes aim to address the issue of consuming a free run quota on a failed cloud review. However, the implementation details may vary depending on the underlying system architecture and requirements.

Recommendation

Apply a workaround by modifying the quota consumption logic to only decrement the count when the Find phase produces output, as this approach directly addresses the issue of burning a free run on a failed review.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix /ultrareview consumes free run on Find-phase timeout failure for oversized diffs [1 participants]