[GH-ISSUE #1020] [Issue]: Duplicate chat summaries shown as ready to import in sources tab #521

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

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

Originally assigned to: @Promansis on GitHub.

Summary

Duplicate chat summaries appear as separate "ready to import" rows in the long-term-memory Sources tab when multiple branches of the same chat contain the same summaries.

Affected package

long-term-memory

Expected behavior

Equivalent chat summaries shared across branches of the same chat should not produce duplicate ready-to-import source rows.

Actual behavior

Chat-summary candidates are keyed as ${chat.id}:${entry.id}, so branches with distinct chat IDs but identical summary content/identity produce separate pending candidates. previewPackageInterop returns all rows without deduplicating them, and the Sources UI renders each pending sample as ready to import.

Steps to reproduce

  1. Have multiple branch chat records containing the same chat summary content/identity.
  2. Open long-term-memory Sources tab preview.
  3. Observe duplicate ready-to-import rows for the same summary.

Environment

  • Marinara Engine version:
  • Package version:
  • Install type: source
  • OS + version:
  • Browser or app shell:

Logs, screenshots, or video

Investigation finding only; no logs supplied.

Additional context

Related implementation path: packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (previewPackageInterop, candidate construction) and packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (ready-row rendering). Existing coverage: tests/long-term-memory-conversation-summary-import.regression.ts.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Sep 21, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1020 Originally assigned to: @Promansis on GitHub. ## Summary Duplicate chat summaries appear as separate "ready to import" rows in the long-term-memory Sources tab when multiple branches of the same chat contain the same summaries. ## Affected package long-term-memory ## Expected behavior Equivalent chat summaries shared across branches of the same chat should not produce duplicate ready-to-import source rows. ## Actual behavior Chat-summary candidates are keyed as `${chat.id}:${entry.id}`, so branches with distinct chat IDs but identical summary content/identity produce separate pending candidates. `previewPackageInterop` returns all rows without deduplicating them, and the Sources UI renders each pending sample as ready to import. ## Steps to reproduce 1. Have multiple branch chat records containing the same chat summary content/identity. 2. Open long-term-memory Sources tab preview. 3. Observe duplicate ready-to-import rows for the same summary. ## Environment - Marinara Engine version: - Package version: - Install type: source - OS + version: - Browser or app shell: ## Logs, screenshots, or video Investigation finding only; no logs supplied. ## Additional context Related implementation path: `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (`previewPackageInterop`, candidate construction) and `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (ready-row rendering). Existing coverage: `tests/long-term-memory-conversation-summary-import.regression.ts`. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:28:16 +07:00
  • closed this issue
  • added the
    bug
    label
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#521
No description provided.