From baa98ea7c44b28bdb18dc3d29a362df7aa8a3ca1 Mon Sep 17 00:00:00 2001 From: CzBiX Date: Wed, 11 Mar 2026 14:43:34 +0800 Subject: [PATCH] fix: use the correct field name for reasoning content --- pkg/agent/loop.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index 235d42fcc..d7e4986cb 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -1093,7 +1093,7 @@ func (al *AgentLoop) runLLMIteration( go al.handleReasoning( ctx, - response.Reasoning, + response.ReasoningContent, opts.Channel, al.targetReasoningChannelID(opts.Channel), ) @@ -1104,7 +1104,7 @@ func (al *AgentLoop) runLLMIteration( "iteration": iteration, "content_chars": len(response.Content), "tool_calls": len(response.ToolCalls), - "reasoning": response.Reasoning, + "reasoning_content": response.ReasoningContent, "target_channel": al.targetReasoningChannelID(opts.Channel), "channel": opts.Channel, })