From fab59cf8e669fe9ec34b30586f07b7478e897c31 Mon Sep 17 00:00:00 2001 From: Claudomator Agent Date: Sun, 8 Mar 2026 22:11:53 +0000 Subject: task: add BLOCKED→READY to ValidTransition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/task/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/task/task.go') diff --git a/internal/task/task.go b/internal/task/task.go index 6b240dd..8bb3214 100644 --- a/internal/task/task.go +++ b/internal/task/task.go @@ -123,7 +123,7 @@ func ValidTransition(from, to State) bool { StateFailed: {StateQueued}, // retry StateTimedOut: {StateQueued}, // retry StateCancelled: {StateQueued}, // restart - StateBlocked: {StateQueued}, // answer received → re-queue as resume execution + StateBlocked: {StateQueued, StateReady}, // answer received → re-queue as resume execution } for _, allowed := range transitions[from] { if allowed == to { -- cgit v1.2.3