Skip to content

feat: hand off immediately after final review - #459

Draft
huang47 wants to merge 1 commit into
codex/cursor-preserve-roundsfrom
codex/cursor-immediate-handoff
Draft

huang47 wants to merge 1 commit into
codex/cursor-preserve-roundsfrom
codex/cursor-immediate-handoff

Conversation

@huang47

@huang47 huang47 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

A review limit should send the pull request to a person as soon as the last allowed review arrives, instead of waiting for somebody to trigger another review. This option checks the delivered review count in the same run and adds the handoff label when the count is confirmed.

Motivation

Waiting for another trigger delays the human handoff even though the review budget is already spent. Callers that need a same-run handoff can opt in; existing callers keep their current behavior.

Provenance

  • Authored by: interactive session
  • Verified: Cursor review suite passed 1,763 tests, including delivered-review, missing-count, label and workflow-step cases. Workflow documentation and pin suite passed 551 tests (43 skipped). Workflow pin, agent-instruction and repository-literal checks passed. Local actionlint reported the same 98 diagnostics as the base, with no new diagnostics.
  • Deviations: Current-head CI passed; CodeRabbit was skipped. No live caller run has verified the handoff. If the label write fails, the job reports an error but cannot ensure a later run is stopped. Concurrent and undelivered runs, deleted reviews, identity changes and other review systems are not a unified hard cap.

Reviewer context

Summary

  • Recount after the last allowed delivered review and apply the human handoff before the automatic approval step.
  • If the count cannot be confirmed, attempt the handoff label and fail visibly rather than claiming it succeeded.
  • Require a positive cap and fail-closed counting for the opt-in.

Test plan

  • Verify the third delivered review triggers handoff in an isolated caller.
  • Verify missing history or a failed label write is visible and cannot be mistaken for a confirmed handoff.

@coderabbitai

coderabbitai Bot commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

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