[GH-ISSUE #817] [Feature]: paginate Long-Term Memory source previews with cursors #421

Closed
opened 2026-10-20 17:27:24 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Promansis on GitHub (Sep 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/817

Originally assigned to: @SpicyMarinara, @Promansis on GitHub.

What problem does this solve?

Long-Term Memory Sources previews currently materialize and return at most 100 source objects per request. Users with larger character, chat-summary, or lorebook collections cannot browse the complete result set without changing filters, and the server repeatedly prepares data that the client does not yet display.

Proposed package or change

Add cursor-based incremental loading to the Long-Term Memory Sources tabs (Chat Summaries, Characters, and Lorebooks). Keep the initial preview bounded, return a stable continuation cursor and hasMore, and let the client append later pages while preserving search, source scope, mode filters, selection state, and existing imported/pending status. Use a stable server ordering and opaque cursor; do not change the Memory Vault's existing 500-note pagination or the source import operation's validation limits unless implementation evidence requires it.

The change spans the LTM shared preview contract, server preview services/routes, SourcesWorkspace client state/rendering, localized loading controls, and focused route/browser regression coverage. Generated package artifacts and catalog outputs should be rebuilt only after source validation.

Why should this be optional?

This is package-owned source browsing behavior and belongs in the Long-Term Memory downloadable Agent rather than the lightweight Engine core.

Alternatives considered

  • Increasing the fixed preview limit: reduces the symptom but increases response size and rendering cost and leaves an arbitrary ceiling.
  • Offset pagination: can skip or duplicate results if source data changes while the picker is open.
  • Loading the complete result set: defeats the purpose of bounded preview loading.

Additional context

The nearest completed performance work is issue #721 / PR #723, which removed duplicate note scans but did not introduce source-preview pagination. Current preview requests are bounded by the shared schemas at 100, and the client replaces preview data rather than appending pages. Lorebook preview also has a separate hard-coded 100-book slice that must be reconciled with the cursor contract.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/817 Originally assigned to: @SpicyMarinara, @Promansis on GitHub. ## What problem does this solve? Long-Term Memory Sources previews currently materialize and return at most 100 source objects per request. Users with larger character, chat-summary, or lorebook collections cannot browse the complete result set without changing filters, and the server repeatedly prepares data that the client does not yet display. ## Proposed package or change Add cursor-based incremental loading to the Long-Term Memory Sources tabs (Chat Summaries, Characters, and Lorebooks). Keep the initial preview bounded, return a stable continuation cursor and `hasMore`, and let the client append later pages while preserving search, source scope, mode filters, selection state, and existing imported/pending status. Use a stable server ordering and opaque cursor; do not change the Memory Vault's existing 500-note pagination or the source import operation's validation limits unless implementation evidence requires it. The change spans the LTM shared preview contract, server preview services/routes, SourcesWorkspace client state/rendering, localized loading controls, and focused route/browser regression coverage. Generated package artifacts and catalog outputs should be rebuilt only after source validation. ## Why should this be optional? This is package-owned source browsing behavior and belongs in the Long-Term Memory downloadable Agent rather than the lightweight Engine core. ## Alternatives considered - Increasing the fixed preview limit: reduces the symptom but increases response size and rendering cost and leaves an arbitrary ceiling. - Offset pagination: can skip or duplicate results if source data changes while the picker is open. - Loading the complete result set: defeats the purpose of bounded preview loading. ## Additional context The nearest completed performance work is issue #721 / PR #723, which removed duplicate note scans but did not introduce source-preview pagination. Current preview requests are bounded by the shared schemas at 100, and the client replaces preview data rather than appending pages. Lorebook preview also has a separate hard-coded 100-book slice that must be reconciled with the cursor contract. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 13, 2026):

SpicyMarinara/Codex is handling this assigned issue in the release sweep, draft PR #836. We are checking the existing linked work before changing the owning package source, preserving the separate Slurp2 work in #816, and will close this issue only once its fix and validation are on staging.

<!-- gh-comment-id:5653121533 --> @SpicyMarinara commented on GitHub (Sep 13, 2026): SpicyMarinara/Codex is handling this assigned issue in the release sweep, draft PR #836. We are checking the existing linked work before changing the owning package source, preserving the separate Slurp2 work in #816, and will close this issue only once its fix and validation are on staging.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Agents#421
No description provided.