Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
- Last reviewed commit: 30a593b464541d72eb55e83a14bfa07446047d6f
- Latest commit, not reviewed: 2ba35795cfada0061e2aefd653efad7600b69a9d
Use the following commands to manage reviews:
@coderabbitai resumeto resume automatic reviews.@coderabbitai reviewto trigger a single review.
Use the checkboxes below for quick actions:
- ▶️ Resume reviews
- 🔍 Trigger review
Walkthrough
-
The pull-request watch now reports when all checks finish and previously reported failures still block the required-check gate. It stops watching, preserves the finished state, and sends a final notice listing the checks.
Changes: Pull-request watch completion
Layer / File(s) Summary Track and report completed checks
packages/contracts/src/threadPullRequest.ts,apps/server/src/orchestration-v2/pullRequestWatch.ts,apps/server/src/orchestration-v2/pullRequestWatch.test.tsThe watch state gains an optional finishedflag. The evaluator resets it when the head changes or checks remain pending. When checks finish and previously reported failures still block the gate, it emitschecks-finished. Tests cover completion, reruns, advisory failures, repeated reads, and unreadable check reads.End and preserve the watch
apps/server/src/orchestration-v2/PullRequestWatchReactor.ts,apps/server/src/orchestration-v2/Orchestrator.ts,apps/server/src/orchestration-v2/runtimeLayer.test.tsThe reactor schedules reads for a final notice and ends the watch with reason checks-finished. A subsequent watch copies the savedfinishedstate. Runtime tests cover timed sweeps, comment updates, and restarted watches.Describe the stop condition
apps/server/src/mcp/toolkits/pullRequests/tools.ts,docs/user/source-control.md,apps/server/src/provider/agentContextBudget.jsonThe tool description and user documentation describe the stop condition. The MCP tool-list byte budget is updated. Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix · Severity of issue fixed: Medium
Sequence Diagram(s)
mermaid1 sequenceDiagram 2 participant PullRequestWatchReactor 3 participant evaluatePullRequestWatch 4 participant Thread 5 PullRequestWatchReactor->>evaluatePullRequestWatch: Evaluate checks and saved watch state 6 evaluatePullRequestWatch-->>PullRequestWatchReactor: Return checks-finished report 7 PullRequestWatchReactor->>Thread: Send final notice and end watch Possibly related issues
Suggested labels:
bugfixSuggested reviewers:
maria-rcks,fixfon
Merge Risk: External image Minimal · previous review 30a59
-
The watch now refreshes review data before stopping, and its final check summary correctly distinguishes successful, skipped, and neutral results.
Pre-merge checks: Passed 4
-
Check name Status Explanation Title check Passed The title clearly and concisely describes the main change: an additional pull-request watch wake followed by termination when checks finish after a failure. Description check Passed The description explains the problem, the implemented behavior, scope, linked issue, trade-offs, verification results, and unverified scenarios. It does not use the template headings, but it provides … Linked Issues check Passed Issue [ #25497] requires a wake after all checks settle when an already reported failure blocks the required-check gate. The current changes force the finishing read, emitchecks-finished, include th…Out of Scope Changes check Passed The changes stay within [ #25497]. Reactor and evaluator changes implement the final wake and watch termination. Contract, tool guidance, and documentation changes describe the resulting behavior. The …Full details: Description check
-
Explanation
The description explains the problem, the implemented behavior, scope, linked issue, trade-offs, verification results, and unverified scenarios. It does not use the template headings, but it provides the required information in complete prose.
Full details: Linked Issues check
-
Explanation
Issue [
#25497] requires a wake after all checks settle when an already reported failure blocks the required-check gate. The current changes force the finishing read, emitchecks-finished, include the finished checks and failures in the wake, end the watch, and persistfinishedacross rewatch. The changes reset this state for pending reruns and new heads. Tests cover failure ordering, reruns, advisory failures, rewatching, comment reads, pagination, and wake text.
Full details: Out of Scope Changes check
-
Explanation
The changes stay within [
#25497]. Reactor and evaluator changes implement the final wake and watch termination. Contract, tool guidance, and documentation changes describe the resulting behavior. The context-budget update supports the expanded tool description. Tests provide regression coverage. No unrelated change is demonstrated.
-
Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Create a new PR
Fix failing CI checks
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts