mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #817] [Feature]: paginate Long-Term Memory source previews with cursors #421
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#421
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
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
@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.