From 80d44c86c308bbe7d78e3e4825e8973620a04d62 Mon Sep 17 00:00:00 2001 From: tpkeeper Date: Thu, 19 Feb 2026 11:02:22 +0800 Subject: [PATCH] fix: ensure tool name is correctly assigned in LLM iteration --- pkg/agent/loop.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index ed69712ff..6d0a61375 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -602,6 +602,7 @@ func (al *AgentLoop) runLLMIteration(ctx context.Context, agent *AgentInstance, Name: tc.Name, Arguments: string(argumentsJSON), }, + Name: tc.Name, }) } messages = append(messages, assistantMsg)