Skip to content

Commit bab0435

Browse files
committed
fix: use ReasoningContent not Content for pre-tool thinking display
The pre-tool IterationCallback was passing result.Content (visible assistant text) instead of result.ReasoningContent (DeepSeek thinking tokens). This meant the 💭 reasoning messages only appeared when the model also output visible text alongside tool calls — which DeepSeek rarely does. Fixes the Telegram bot not showing deterministic progress / thinking notes.
1 parent c94dd05 commit bab0435

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/loop/loop.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ func (e *Engine) runLoop(ctx context.Context, messages []llm.Message) (string, [
602602
CachedTokens: e.TotalCachedTokens,
603603
TotalLatency: time.Since(startTime),
604604
HasFinalAnswer: false,
605-
ReasoningContent: result.Content,
605+
ReasoningContent: result.ReasoningContent,
606606
IsPreTool: true,
607607
})
608608
}

0 commit comments

Comments
 (0)