[GH-ISSUE #614] [Fix]: scope global Sources previews independently from active chat #321

Closed
opened 2026-10-20 17:26:28 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

Summary

Sources preview currently applies the active chat/branch scope to every source type. Characters and lorebooks are global source collections, so opening Sources from a chat can hide importable records that exist outside that chat.

Affected package

Long-Term Memory (long-term-memory)

Expected behavior

Chat-summary previews use the selected source scope, including the active chat/branch on initial load. Character and lorebook previews omit scope and show all importable records. Existing mode filtering remains unchanged.

Scope

Change the client preview request construction and matching React Query keys in SourcesWorkspace.tsx. Add lifecycle request-body regression coverage for chat, character, and lorebook previews. Keep the existing import contract unchanged; do not add destination-scope UI or redesign the server scope API.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Aug 26, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/614 Originally assigned to: @Promansis on GitHub. ## Summary Sources preview currently applies the active chat/branch scope to every source type. Characters and lorebooks are global source collections, so opening Sources from a chat can hide importable records that exist outside that chat. ## Affected package Long-Term Memory (`long-term-memory`) ## Expected behavior Chat-summary previews use the selected source scope, including the active chat/branch on initial load. Character and lorebook previews omit scope and show all importable records. Existing mode filtering remains unchanged. ## Scope Change the client preview request construction and matching React Query keys in `SourcesWorkspace.tsx`. Add lifecycle request-body regression coverage for chat, character, and lorebook previews. Keep the existing import contract unchanged; do not add destination-scope UI or redesign the server scope API. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@Promansis commented on GitHub (Sep 10, 2026):

Regression confirmed on current staging after later Sources scope changes. Character previews remain global, but lorebook previews and direct source imports/details can still apply the selected chat/branch scope. The fix will make both character and lorebook source collections scope-independent while preserving chat-summary filtering and destination scope behavior.

<!-- gh-comment-id:5610631034 --> @Promansis commented on GitHub (Sep 10, 2026): Regression confirmed on current staging after later Sources scope changes. Character previews remain global, but lorebook previews and direct source imports/details can still apply the selected chat/branch scope. The fix will make both character and lorebook source collections scope-independent while preserving chat-summary filtering and destination scope behavior.
Author
Owner

@Promansis commented on GitHub (Sep 10, 2026):

Closing this historical issue; the current staging regression will be tracked separately.

<!-- gh-comment-id:5610655499 --> @Promansis commented on GitHub (Sep 10, 2026): Closing this historical issue; the current staging regression will be tracked separately.
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#321
No description provided.