LearnNewsExamplesServices
Frontmatter
id8204
titleFix Session Summary Timestamp Overwrite on Re-summarization
stateClosed
labels
bugai
assigneestobiu
createdAtDec 29, 2025, 11:37 PM
updatedAtDec 29, 2025, 11:39 PM
githubUrlhttps://github.com/neomjs/neo/issues/8204
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[]
blocking[]
closedAtDec 29, 2025, 11:39 PM

Fix Session Summary Timestamp Overwrite on Re-summarization

tobiu
tobiu commented on Dec 29, 2025, 11:37 PM

The SessionService.summarizeSession method currently uses Date.now() for the timestamp metadata whenever a session is summarized or re-summarized. This causes old sessions to jump to the top of the "recent sessions" list (which sorts by timestamp) whenever they are re-processed (e.g., due to drift detection).

Fix: Update summarizeSession to calculate the session's timestamp based on the latest memory timestamp within that session. This ensures that the summary reflects the actual time of the activity, not the time of the summarization process.