mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 10:14:51 +00:00
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:
1 parent
18211154d0
commit
eb39a46d57
1 file changed
+1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user