From c263cd207f8a17a543016c2b560dd2f4cf2ceac7 Mon Sep 17 00:00:00 2001 From: mosir Date: Thu, 5 Mar 2026 10:13:34 +0800 Subject: [PATCH] chore(agent): fix gci formatting in loop --- pkg/agent/loop.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/agent/loop.go b/pkg/agent/loop.go index a4a56b2f6..70ae91c12 100644 --- a/pkg/agent/loop.go +++ b/pkg/agent/loop.go @@ -1155,6 +1155,7 @@ func areAllToolCallsMessage(calls []providers.ToolCall) bool { } return true } + // maybeSummarize triggers summarization if the session history exceeds thresholds. func (al *AgentLoop) maybeSummarize(agent *AgentInstance, sessionKey, channel, chatID string) { newHistory := agent.Sessions.GetHistory(sessionKey)