Skip to content

Fix GitHub rate-limit handling and real-time PR refresh - #918

Merged
arul28 merged 1 commit into
mainfrom
fix/github-rate-limit-realtime
Jul 27, 2026
Merged

Fix GitHub rate-limit handling and real-time PR refresh#918
arul28 merged 1 commit into
mainfrom
fix/github-rate-limit-realtime

Conversation

@arul28

@arul28 arul28 commented Jul 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • classify GitHub rate limits, invalid credentials, network failures, and unknown validation failures without presenting false missing-scope actions
  • show quota/reset state in Settings and shared truthful banner copy
  • stop PR polling results from re-arming bounded hot-refresh windows
  • batch webhook-linked PRs into targeted one-shot reconciliation while retaining the normal safety poll and rate-limit backoff
  • update desktop/CLI runtime wiring, mobile explanatory copy, and canonical docs

Root cause

Active CI changes were feeding back into ADE's 5-second hot PR poller. Each poll could mark the same PR hot again, extending the hot window indefinitely and exhausting the shared GitHub REST quota. When /user then returned 403, Settings flattened the validation failure into missing permissions.

Validation

  • quality dual-review: 9 findings fixed; final correctness re-review clean
  • 275 focused desktop tests
  • affected desktop shards 1-5: 5,072 tests passed
  • desktop and CLI typechecks
  • CLI suite: 2,291 tests passed
  • TUI suite: 961 tests passed
  • iOS Swift syntax parse
  • git diff --check

Docs validation reported only pre-existing public changelog drift for tags v1.2.38 and v1.2.39; internal feature docs passed.

@vercel

vercel Bot commented Jul 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
ade Ignored Ignored Jul 27, 2026 8:10pm

@coderabbitai

coderabbitai Bot commented Jul 27, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@arul28, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 43 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 9c0a4932-09f2-4b8a-a2ab-9d3f8920d792

📥 Commits

Reviewing files that changed from the base of the PR and between a1032b4 and d82a139.

⛔ Files ignored due to path filters (4)
  • docs/features/automations/README.md is excluded by !docs/**
  • docs/features/automations/triggers-and-actions.md is excluded by !docs/**
  • docs/features/onboarding-and-settings/README.md is excluded by !docs/**
  • docs/features/pull-requests/README.md is excluded by !docs/**
📒 Files selected for processing (16)
  • apps/ade-cli/src/bootstrap.ts
  • apps/desktop/src/main/main.ts
  • apps/desktop/src/main/services/automations/automationIngressService.test.ts
  • apps/desktop/src/main/services/automations/automationIngressService.ts
  • apps/desktop/src/main/services/github/githubRateLimit.ts
  • apps/desktop/src/main/services/github/githubService.test.ts
  • apps/desktop/src/main/services/github/githubService.ts
  • apps/desktop/src/main/services/prs/prAsync.test.ts
  • apps/desktop/src/main/services/prs/prPollingService.ts
  • apps/desktop/src/main/services/prs/prService.test.ts
  • apps/desktop/src/main/services/prs/prService.ts
  • apps/desktop/src/renderer/components/settings/GitHubSection.tsx
  • apps/desktop/src/renderer/lib/githubIntegrationStatus.test.ts
  • apps/desktop/src/renderer/lib/githubIntegrationStatus.ts
  • apps/desktop/src/shared/types/git.ts
  • apps/ios/ADE/Views/PRs/PrDetailScreen.swift
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/github-rate-limit-realtime

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@arul28
arul28 merged commit ff10e5c into main Jul 27, 2026
33 checks passed
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