No actionable comments were generated in the recent review.
External image Recent review info
-
External image Run configuration
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: fix/issue-25637
- File: .coderabbit.config.ts
- Commit: e041743
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Team
- Run ID:
60fae199-08e0-49c9-99c0-b3b1d978b4b9
External image Commits
Reviewing files that changed from the base of the PR and between 7ca09276e0eca12cce63468ab0988928bcc8a2a5 and e04174384972e4f1264bff6eb941c9ea5355f259.
External image Files selected for processing: 1
apps/server/src/orchestration-v2/DelegatedTaskQuestionReactor.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Walkthrough
The reactor cancels queued delegated-question wakes when the child task becomes terminal or its request is no longer pending. The orchestrator detects stale wakes before queue selection and message dispatch. Tests cover normal and missed terminal-event paths.
Changes: Delegated question wake lifecycle
Layer / File(s) Summary Cancel wakes from task and request updates
apps/server/src/orchestration-v2/DelegatedTaskQuestionReactor.tsThe reactor finds queued parent runs for delegated-question messages and dispatches cancellation when an app-owned subagent becomes terminal or a request is no longer pending. Cancellation failures are logged. Prune and block stale wakes
apps/server/src/orchestration-v2/Orchestrator.ts,apps/server/src/orchestration-v2/Orchestrator.control-reads.test.tsBefore selecting a queued run, the orchestrator cancels wakes whose task or matching pending child request is missing or terminal, then reloads the queue projection. It skips stale incoming messages. Tests cover missed and normal terminal-event paths. Priority: External image Normal
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix Β· Severity of issue fixed: Medium
Possibly related PRs
- pingdotgg/t3code#20928: Routes child questions and approvals to the parent and withdraws queued notices when requests end.
- pingdotgg/t3code#21676: Cancels delegated work and dismisses asynchronous questions owned by the cancelled run.
- pingdotgg/t3code#22870: Cancels abandoned pending questions and changes request status after an explicit steer aborts a live question.
Suggested reviewers:
t3dotgg
Merge Risk: External image Minimal Β· up to e0417
Stale question wakes are cancelled or skipped; no new merge-blocking risk is established.
Pre-merge checks: Passed 4
Check name Status Explanation Title check Passed The title clearly and concisely describes the primary change: removing queued question wakes after a delegated child finishes. Description check Passed The description includes all required sections. It explains the problem, implementation, scope and issue references, focused verification results, limitations, and agent details. Linked Issues check Passed Active direct issue #25639requires stale delegated-question wakes to stop when the child settles or the question is answered or closed.DelegatedTaskQuestionReactorcancels matching queued wakes foβ¦Out of Scope Changes check Passed The reactor changes manage delegated-question wake lifetime. The orchestrator changes validate and suppress stale wakes. The added tests verify the linked issue behavior, including restart or missed-eβ¦ Full details: Linked Issues check
Explanation
Active direct issue
#25639requires stale delegated-question wakes to stop when the child settles or the question is answered or closed.DelegatedTaskQuestionReactorcancels matching queued wakes for those events and logs cancellation failures.Orchestrator.startNextQueuedRunremoves stale wakes for missing or settled tasks and non-pending requests. It retains a wake when the child projection read fails.dispatchMessageaccepts a stale wake as a no-op. The added control-read tests cover live settlement, missed terminal events, follow-up questions, and direct stale dispatch. These changes prevent a stale notification-only run from replacing the parent result while preserving valid question wakes.
Full details: Out of Scope Changes check
Explanation
The reactor changes manage delegated-question wake lifetime. The orchestrator changes validate and suppress stale wakes. The added tests verify the linked issue behavior, including restart or missed-event recovery and valid follow-up questions. No unrelated feature, configuration change, or unrelated refactor is identified.
Finishing Touches
π Generate docstrings
- Commit to this branch
- Create a new PR
π§ͺ Generate unit tests (beta)
- Commit to this branch
- Create a new PR
- Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.