From 889791e9a2d9585a35e72402bfc9e6feb49fbb88 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 11 Mar 2026 08:25:23 +0000 Subject: fix: clear question_json when restarting a task via ResetTaskForRetry A BLOCKED task that fails on resume would keep its stale question_json after being restarted. The frontend then showed "waiting for your input" with the old prompt even though the task was running fresh. Co-Authored-By: Claude Sonnet 4.6 --- internal/storage/db.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/storage/db.go') diff --git a/internal/storage/db.go b/internal/storage/db.go index 5ba0786..aaf1e09 100644 --- a/internal/storage/db.go +++ b/internal/storage/db.go @@ -237,7 +237,7 @@ func (s *DB) ResetTaskForRetry(id string) (*task.Task, error) { configJSON, _ := json.Marshal(t.Agent) now := time.Now().UTC() - if _, err := tx.Exec(`UPDATE tasks SET state = ?, config_json = ?, updated_at = ? WHERE id = ?`, + if _, err := tx.Exec(`UPDATE tasks SET state = ?, config_json = ?, question_json = NULL, updated_at = ? WHERE id = ?`, string(task.StateQueued), string(configJSON), now, id); err != nil { return nil, err } -- cgit v1.2.3