Fix durable broker isolation and merged PR recovery#162
Conversation
|
Warning Review limit reached
Next review available in: 8 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 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 |
There was a problem hiding this comment.
Code Review
This pull request introduces support for an explicit relay state directory via the AGENT_RELAY_STATE_DIR environment variable, ensuring that the broker connection path and auto-started broker persistence use this directory. It also adds logic to the orchestrator's FactoryLoop to gracefully complete a restored babysitter session if its corresponding pull request was merged while the Factory was down. Regarding the feedback, a potential runtime issue was identified in src/orchestrator/factory.ts where 'record' could be undefined and is passed directly to #advanceMergedPrToDone without a safety check.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Factory could reuse an ancestor Relay broker even when AGENT_RELAY_STATE_DIR requested isolation. It also discarded a merged babysitter session on restart without completing the durable lifecycle, leaving capacity permanently occupied.
This change:
Verification: