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.
This commit is contained in:
viettranx committed 2026-03-20 06:32:13 +07:00
1 parent 18211154d0
commit eb39a46d57
1 file changed
+1
+1
View File
@@ -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)