diff --git a/internal/agent/think.go b/internal/agent/think.go index 1b1f1a44..8c4f899d 100644 --- a/internal/agent/think.go +++ b/internal/agent/think.go @@ -358,8 +358,14 @@ func (e *AgentEngine) callLLMWithRetry( logger.Infof(ctx, "[Agent][Round-%d] LLM responded: finish=%s, content=%d chars, tools=%v", round, response.FinishReason, len(response.Content), tcNames) } else { - logger.Infof(ctx, "[Agent][Round-%d] LLM responded: finish=%s, content=%d chars", + logger.Infof(ctx, "[Agent][Round-%d] LLM responded: finish=%s, content=%d chars, tool_calls=0", round, response.FinishReason, len(response.Content)) + // Early signal for natural-stop path: this round will be analyzed as a + // likely final answer (no tool call branch). + if response.FinishReason == "stop" { + logger.Infof(ctx, "[Agent][Round-%d] Natural-stop candidate detected (finish=stop, tool_calls=0, content=%d chars)", + round, len(response.Content)) + } } if response.Content != "" { preview := response.Content