Current SessionService limits automatic summarization to sessions active in the last 30 days for performance. We need a manual override to summarize ALL sessions, including ancient ones (e.g. > 30 days old) that might have been missed or need a refresh.
Tasks:
Update openapi.yaml:
- Add
includeAll (boolean, default false) parameter to the summarize_sessions tool definition.
- Update description to clarify the default 30-day behavior vs. the full scan.
Update SessionService.mjs:
- Update
summarizeSessions method signature to accept includeAll.
- Update
findSessionsToSummarize to accept includeAll.
- Logic Change: If
includeAll is true, remove the where: { timestamp: { $gt: ... } } clause from both Memory and Summary queries.
- Pagination: Ensure pagination loop handles the potentially much larger dataset correctly (already implemented, but verify).
Update Documentation:
- Update JSDoc for
summarizeSessions and findSessionsToSummarize to document the new parameter and behavior.
Current
SessionServicelimits automatic summarization to sessions active in the last 30 days for performance. We need a manual override to summarize ALL sessions, including ancient ones (e.g. > 30 days old) that might have been missed or need a refresh.Tasks:
Update
openapi.yaml:includeAll(boolean, default false) parameter to thesummarize_sessionstool definition.Update
SessionService.mjs:summarizeSessionsmethod signature to acceptincludeAll.findSessionsToSummarizeto acceptincludeAll.includeAllis true, remove thewhere: { timestamp: { $gt: ... } }clause from both Memory and Summary queries.Update Documentation:
summarizeSessionsandfindSessionsToSummarizeto document the new parameter and behavior.