summaryrefslogtreecommitdiffhomepage
path: root/internal/llm
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-05-13 11:07:34 -0500
committeradamdottv <[email protected]>2025-05-13 11:07:34 -0500
commit674797bd48839771750ead0a160912a9bab02943 (patch)
treebb407b6fb11b0e0de953cd610af5b436c8aa7082 /internal/llm
parent1f9610e266c2c630cd39d3c5d5e62328e2eac95b (diff)
downloadopencode-674797bd48839771750ead0a160912a9bab02943.tar.gz
opencode-674797bd48839771750ead0a160912a9bab02943.zip
chore: refactoring
Diffstat (limited to 'internal/llm')
-rw-r--r--internal/llm/agent/agent.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/agent/agent.go b/internal/llm/agent/agent.go
index d1dba429f..4c838b731 100644
--- a/internal/llm/agent/agent.go
+++ b/internal/llm/agent/agent.go
@@ -670,7 +670,7 @@ func (a *agent) CompactSession(ctx context.Context, sessionID string, force bool
// Filter messages that were created after the last summarization
var newMessages []message.Message
for _, msg := range sessionMessages {
- if msg.CreatedAt > session.SummarizedAt.UnixMilli() {
+ if msg.CreatedAt.After(session.SummarizedAt) {
newMessages = append(newMessages, msg)
}
}