Close approvals when turns are cancelled - #292
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change adds thread-scoped peer-approval cancellation. Group and bot interruption routes close affected approvals, dismiss unanswered cards, and resolve pending approval requests. Tests cover helper behavior and room interruption through the HTTP API. ChangesApproval cancellation on interruption
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to The change closes pending approvals when turns are cancelled and preserves cleanup across interruption failures; no actionable merge-blocking risk remains, so it is merge-ready after normal checks and review. Sequence Diagram(s)sequenceDiagram
participant InterruptionRoute
participant ProviderTurn
participant closeOpenApprovals
participant cancelPeerApprovalsForThread
participant ApprovalCard
InterruptionRoute->>ProviderTurn: request interruption
InterruptionRoute->>closeOpenApprovals: close approvals for affected threads
closeOpenApprovals->>cancelPeerApprovalsForThread: cancel pending approvals
cancelPeerApprovalsForThread->>ApprovalCard: mark unanswered card dismissed and unavailable
Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
main의 milind-soni#292(취소 시 승인 종료), milind-soni#264(리액션 팔레트), milind-soni#291(Apache 라이선스) 병합 충돌을 해결했다. PATCH의 modelSelection 검증을 관대하게 바꿨다: 미확인 인스턴스도 persist되고(사전 엔진 구성·duplicate 시나리오), startTurn이 전송 시점에 409로 크게 실패한다. catalog 기반 모델 검증은 온라인 엔진에만 적용된다. 이에 따라 관련 e2e 기대치를 갱신했다. Tested: pnpm typecheck, pnpm vitest run (132 files, 1311 passed, 12 skipped) Confidence: high Scope-risk: moderate Reversability: moderate
Summary
Validation
Supersedes #290, which conflicts with current main and leaves direct cleanup vulnerable to an interrupt rejection.
Summary by CodeRabbit
Bug Fixes
Tests