summaryrefslogtreecommitdiff
path: root/internal/task
diff options
context:
space:
mode:
authorClaudomator Agent <agent@claudomator>2026-07-09 03:53:51 +0000
committerClaudomator Agent <agent@claudomator>2026-07-09 03:53:51 +0000
commitad00e1865c19afd40c8d159dbb55668ed6b51b12 (patch)
tree940ac37f50a48a6867472c6aaafa58976f3f3270 /internal/task
parent17027fbbd8eba2f1b6a8dad9c4749173f2533159 (diff)
fix(executor): support nested subtask decomposition (subtask-with-own-subtasks correctly blocks, cascades, and recovers)
Diffstat (limited to 'internal/task')
-rw-r--r--internal/task/task.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/task/task.go b/internal/task/task.go
index 35da9a0..a95107a 100644
--- a/internal/task/task.go
+++ b/internal/task/task.go
@@ -162,7 +162,7 @@ var validTransitions = map[State]map[State]bool{
StateTimedOut: {StateQueued: true}, // retry or resume
StateCancelled: {StateQueued: true}, // restart
StateBudgetExceeded: {StateQueued: true}, // retry
- StateBlocked: {StateQueued: true, StateReady: true, StateCancelled: true},
+ StateBlocked: {StateQueued: true, StateReady: true, StateCompleted: true, StateCancelled: true},
}
// ValidTransition returns true if moving from the current state to next is allowed.