LearnNewsExamplesServices
Frontmatter
id7862
titleAdd capability to force summarize all sessions (ignoring 30-day limit)
stateClosed
labels
enhancementai
assigneestobiu
createdAtNov 22, 2025, 7:36 PM
updatedAtNov 22, 2025, 7:53 PM
githubUrlhttps://github.com/neomjs/neo/issues/7862
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtNov 22, 2025, 7:53 PM

Add capability to force summarize all sessions (ignoring 30-day limit)

Closed v11.9.0 enhancementai
tobiu
tobiu commented on Nov 22, 2025, 7:36 PM

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:

  1. 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.
  2. 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).
  3. Update Documentation:

    • Update JSDoc for summarizeSessions and findSessionsToSummarize to document the new parameter and behavior.
tobiu assigned to @tobiu on Nov 22, 2025, 7:37 PM
tobiu added the enhancement label on Nov 22, 2025, 7:37 PM
tobiu added the ai label on Nov 22, 2025, 7:37 PM
tobiu referenced in commit bc4595e - "Add capability to force summarize all sessions (ignoring 30-day limit) #7862" on Nov 22, 2025, 7:53 PM
tobiu closed this issue on Nov 22, 2025, 7:53 PM
tobiu cross-referenced by #7876 on Nov 23, 2025, 12:34 PM