feat: better logs page

This commit is contained in:
adamdottv
2025-05-06 14:22:37 -05:00
parent e387b1f16c
commit b638dafe5f
8 changed files with 280 additions and 36 deletions

View File

@@ -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