[GH-ISSUE #197] [Issue]: Long-Term Memory imports report missing sources for scoped branch chats #100

Closed
opened 2026-10-20 17:24:23 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Promansis on GitHub.

Problem

Import Sources can show a chat summary in the preview, but importing that row returns Missing source memory / includes the source ID in missingSourceIds.

A reproducible source ID is:

Ve8JlP3qHmQIvYC3AAY3c:IYTsfn0QP08X5Qq2pHMCH

Cause

The preview resolves candidates using the selected group or multi-chat scope. During import, interop.ts also uses request.chatId as a hard chat filter. For a scoped branch/group import, chatId is still supplied for extraction/model context, so sources from the other selected branches are filtered out before source ID resolution.

Expected behavior

Every source ID returned by the current preview scope should resolve during import. chatId should remain available for chat validation, model connection, and extraction context, but must not restrict candidates when an explicit group or multi-chat scope is supplied.

Acceptance criteria

  • Importing a source from any selected branch succeeds when it appears in the matching preview.
  • missingSourceIds is empty for valid previewed source IDs.
  • Current-chat-only imports remain restricted to that chat.
  • Add a regression covering a group or multi-chat scope with chatId set to the active chat.
  • Rebuild the Long-Term Memory package and generated catalog outputs.

Related: #122

Originally created by @Promansis on GitHub (Aug 2, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/197 Originally assigned to: @Promansis on GitHub. ## Problem Import Sources can show a chat summary in the preview, but importing that row returns `Missing source memory` / includes the source ID in `missingSourceIds`. A reproducible source ID is: ```text Ve8JlP3qHmQIvYC3AAY3c:IYTsfn0QP08X5Qq2pHMCH ``` ## Cause The preview resolves candidates using the selected group or multi-chat scope. During import, `interop.ts` also uses `request.chatId` as a hard chat filter. For a scoped branch/group import, `chatId` is still supplied for extraction/model context, so sources from the other selected branches are filtered out before source ID resolution. ## Expected behavior Every source ID returned by the current preview scope should resolve during import. `chatId` should remain available for chat validation, model connection, and extraction context, but must not restrict candidates when an explicit group or multi-chat scope is supplied. ## Acceptance criteria - Importing a source from any selected branch succeeds when it appears in the matching preview. - `missingSourceIds` is empty for valid previewed source IDs. - Current-chat-only imports remain restricted to that chat. - Add a regression covering a group or multi-chat scope with `chatId` set to the active chat. - Rebuild the Long-Term Memory package and generated catalog outputs. Related: #122
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#100
No description provided.