From be84621e0558184399a8d4452be795fdd72928f8 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Wed, 3 Jun 2026 23:44:03 +0000 Subject: fix: serve log content for executions in READY and BLOCKED states MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit terminalStates in logs.go only included Completed/Failed/TimedOut/Cancelled/ BudgetExceeded. Executions in READY state (task awaiting user accept/reject) fell through both branches, causing the log viewer to emit an immediate done event with no content — visually an empty log panel. BLOCKED is also added: ask_user suspends execution with the log fully written. Co-Authored-By: Claude Sonnet 4.6 --- internal/api/logs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/api/logs.go b/internal/api/logs.go index 4e63489..4876273 100644 --- a/internal/api/logs.go +++ b/internal/api/logs.go @@ -29,6 +29,8 @@ const maxTailDuration = 30 * time.Minute var terminalStates = map[string]bool{ string(task.StateCompleted): true, + string(task.StateReady): true, // execution finished, awaiting user accept/reject + string(task.StateBlocked): true, // execution suspended on ask_user string(task.StateFailed): true, string(task.StateTimedOut): true, string(task.StateCancelled): true, -- cgit v1.2.3