From b638dafe5fb2b6fcdd6d9b64502a7808f3e81eb5 Mon Sep 17 00:00:00 2001 From: adamdottv <2363879+adamdottv@users.noreply.github.com> Date: Tue, 6 May 2025 14:22:37 -0500 Subject: feat: better logs page --- internal/llm/agent/agent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/llm') diff --git a/internal/llm/agent/agent.go b/internal/llm/agent/agent.go index 662b19701..81b8cf1db 100644 --- a/internal/llm/agent/agent.go +++ b/internal/llm/agent/agent.go @@ -307,7 +307,7 @@ func (a *agent) streamAndHandleEvents(ctx context.Context, sessionID string, msg } // If we're approaching the context window limit, trigger auto-compaction - if (*usage + maxTokens) >= threshold { + if false && (*usage+maxTokens) >= threshold { logging.InfoPersist(fmt.Sprintf("Auto-compaction triggered for session %s. Estimated tokens: %d, Threshold: %d", sessionID, usage, threshold)) // Perform compaction with pause/resume to ensure safety -- cgit v1.2.3