From eb39a46d578fd722e12a4fe98ac626e672c68309 Mon Sep 17 00:00:00 2001 From: viettranx Date: Fri, 20 Mar 2026 06:32:13 +0700 Subject: [PATCH] fix: propagate IsError in parallel tool execution path The squash merge of #291 missed the parallel tool execution path. Tool errors running in parallel still displayed as "Done" instead of "Failed" when reloading chat history. --- internal/agent/loop.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/agent/loop.go b/internal/agent/loop.go index 69f72749..86744794 100644 --- a/internal/agent/loop.go +++ b/internal/agent/loop.go @@ -1193,6 +1193,7 @@ func (l *Loop) runLoop(ctx context.Context, req RunRequest) (*RunResult, error) Role: "tool", Content: r.result.ForLLM, ToolCallID: r.tc.ID, + IsError: r.result.IsError, } messages = append(messages, toolMsg) pendingMsgs = append(pendingMsgs, toolMsg)