summaryrefslogtreecommitdiff
path: root/internal/api/projects.go
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-26 09:36:30 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-26 09:36:30 +0000
commit759396855a967a3d509498cc55faa3b4d8cadfba (patch)
tree339845073da2bb6b1dc5765932570d5716773f61 /internal/api/projects.go
parent3f9843b34d7ae9df2dd9c69427ecab45744b97e9 (diff)
fix: story stays PENDING when all subtasks complete but parent task stays QUEUEDHEADmain
When a story is approved with pre-created subtasks, parent tasks are QUEUED but never run. Their subtasks complete, but: - maybeUnblockParent only handled BLOCKED parents, not QUEUED ones - checkStoryCompletion required ALL tasks (incl. subtasks) to be done Fixes: - maybeUnblockParent now also promotes QUEUED parents to READY when all subtasks are COMPLETED - checkStoryCompletion only checks top-level tasks (parent_task_id="") - RecoverStaleBlocked now also scans QUEUED parents on startup and triggers checkStoryCompletion if it promotes them - Add QUEUED→READY to valid state transitions (subtask delegation path) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'internal/api/projects.go')
0 files changed, 0 insertions, 0 deletions