fix(dispatch): use update_todo_on_cancelled after cancelled transition (GH#3436)#4477
Conversation
…_blocked after cancelled transition After the dedup guard transitions a task to 'cancelled' via cmd_transition, the subsequent TODO.md update was calling update_todo_on_blocked, causing TODO.md to show BLOCKED while the DB recorded CANCELLED — a state mismatch. Replace with update_todo_on_cancelled (same signature: task_id, reason) so both the DB and TODO.md reflect the same terminal state. Also update the function header comment and inline comment to say 'cancelled' instead of 'blocked', removing the stale note about queued->blocked validity and replacing it with a clearer explanation referencing VALID_TRANSITIONS. Fixes #3436 (PR #2185 review feedback from CodeRabbit)
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThe dispatch.sh script's deduplication logic is corrected to transition tasks to "cancelled" state instead of "blocked" following two consecutive identical failures, and the associated TODO sync call is updated from Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
🔍 Code Quality Report�[0;35m[MONITOR]�[0m Code Review Monitoring Report �[0;34m[INFO]�[0m Latest Quality Status: �[0;34m[INFO]�[0m Recent monitoring activity: 📈 Current Quality Metrics
Generated on: Fri Mar 13 22:54:52 UTC 2026 Generated by AI DevOps Framework Code Review Monitoring |
|



Summary
check_dispatch_dedup_guard: after transitioning a task tocancelledviacmd_transition, the TODO.md update was callingupdate_todo_on_blocked, causing TODO.md to showBLOCKEDwhile the DB recordedCANCELLED.update_todo_on_cancelled(identical signature:task_id, reason) so both DB and TODO.md reflect the same terminal state.cancelledinstead ofblocked, replacing the stale note aboutqueued->blockedvalidity with a clearer explanation referencingVALID_TRANSITIONS.Changes
.agents/scripts/supervisor-archived/dispatch.sh— 1 file, 7 insertions / 6 deletionsVerification
shellcheck -S errorpasses with zero violations on the modified file.update_todo_on_cancelledexists intodo-sync.sh:1072with the same(task_id, reason)signature asupdate_todo_on_blocked.grep -n "update_todo_on_blocked" dispatch.shreturned line 1493 inside thecancelledbranch.Closes #3436
Summary by CodeRabbit
Release Notes