fix: skip preflight during account blocks - #65
Conversation
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (14)
📜 Recent review details🧰 Additional context used📓 Path-based instructions (1)internal/{engine,state,crq}/**/*.go📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (3)📚 Learning: 2026-07-27T01:11:18.244ZApplied to files:
📚 Learning: 2026-07-27T01:11:20.071ZApplied to files:
📚 Learning: 2026-07-28T06:12:02.107ZApplied to files:
🔇 Additional comments (17)
📝 WalkthroughWalkthrough
ChangesBlocked preflight handling
Estimated code review effort: 4 (Complex) | ~45 minutes Merge Risk:⚪ Minimal · up to The change skips local preflight only when a shared account block is active and otherwise preserves the normal path; no actionable merge-blocking risk remains after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant PreflightCommand
participant CodeRabbitBinary
participant GitHub
participant SkipBlockedPreflight
participant CodeRabbitCLI
PreflightCommand->>CodeRabbitBinary: resolve selected binary
PreflightCommand->>GitHub: authenticate with bounded timeout
PreflightCommand->>SkipBlockedPreflight: inspect shared account-block state
SkipBlockedPreflight-->>PreflightCommand: return skipped report or continue
PreflightCommand->>CodeRabbitCLI: run local review when not skipped
Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
kristofferR
commented
Aug 14, 2026
@codex review |
kristofferR
commented
Aug 14, 2026
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:f63e29c9ac
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kristofferR
commented
Aug 14, 2026
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:48c656f0d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
kristofferR
commented
Aug 14, 2026
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:ff86df158d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
kristofferR
commented
Aug 14, 2026
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:dd398ec528
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
kristofferR
commented
Aug 15, 2026
@codex review |
Codex Review: Didn't find any major issues. Swish! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
kristofferR
commented
Aug 15, 2026
@coderabbitai review |
✅ Action performedReview finished.
|
Required local preflight currently calls CodeRabbit even when crq already knows the shared account quota is blocked. The guaranteed rate-limit response exits 2 and prevents agents from continuing otherwise-ready PR workflows.
Read shared quota state before invoking the local CLI. A live block now returns a successful structured skip with its reason and expiry; expired, unreadable, explicitly re-authenticated, or
CRQ_PREFLIGHT_SKIP_BLOCKED=0runs still use the normal preflight path. The toggle is available with the other fleet review settings and defaults on.Validation:
go test ./...,go vet ./..., and a live blocked-state preflight check.Summary by CodeRabbit
crq preflightnow skips local review requests when an active shared account block is detected.CRQ_PREFLIGHT_SKIP_BLOCKED, enabled by default; set it to0to force requests.