[PR #1929] [MERGED] feat(long-term-memory): hide imported messages from the AI (1.5.15) #2035

Closed
opened 2026-11-07 16:38:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1929
Author: @Promansis
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/hide-imported-messages


📝 Commits (4)

  • 53cfb0e feat(long-term-memory): hide imported messages from the AI (#1914)
  • ff4ad5b Merge upstream/staging into feature(long-term-memory)/hide-imported-messages; release long-term-memory 1.5.15
  • be879f9 fix(long-term-memory): keep the index rebuild when showing hidden messages fails (#1914)
  • e9758d9 Merge branch 'staging' into feature(long-term-memory)/hide-imported-messages

📊 Changes

29 files changed (+703 additions, -148 deletions)

View changed files

📝 .github/workflows/ltm-browser.yml (+1 -1)
➕ artifacts/long-term-memory-1.5.15.zip (+0 -0)
📝 catalog/catalog.json (+9 -8)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+9 -8)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+9 -8)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+21 -21)
📝 packages/long-term-memory/docs/UI.md (+8 -0)
📝 packages/long-term-memory/manifest.json (+6 -5)
📝 packages/long-term-memory/server.mjs (+64 -64)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+2 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+3 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/ko.json (+3 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx (+15 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/settings-shared.tsx (+10 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/package-runtime.ts (+2 -0)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/persistence/backup-restore.ts (+3 -0)

...and 9 more files

📄 Description

Pull request

Linked issue

Closes #1914

Why this change

A long imported chat is sent to the AI twice: once as the chat messages and again as the memories extracted from them. This adds an opt-in setting that hides the messages of an imported and extracted piece from the AI, like the chat summary's "Hide summarised messages", so the same history is not sent twice.

What changed

  • Settings → Extraction adds Hide imported messages from the AI (off by default; en + ko strings). It is unavailable when the host cannot hide messages.
  • After a Chat Messages import, the messages of pieces whose source note is active and current are hidden, except the chat's summary tail, through the optional host method setMessagesHiddenFromAI.
  • An ownership record (config/hidden-messages.json) holds only the ids the host reported changed. Turning the setting off, resetting settings, permanently deleting a source note, and backup restore / Delete all show exactly those messages again. Messages shown or hidden by hand are never touched.
  • Affected package: long-term-memory 1.5.15 (rebuilt payloads, artifact, catalog entries). Also adds chat-write to the builder's permissions so the rebuilt manifest keeps it. New regression suite hide-imported-messages runs in ltm-browser.yml.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; capabilityApi stays 1.387. The host method is optional and feature-detected, so an Engine without it hides nothing and records nothing.
  • New or changed permissions/entrypoints: adds chat-write. Package code calls only setMessagesHiddenFromAI; chat-write also grants the other chat-write methods, which the package does not use.
  • Restart, storage, update, or uninstall impact: new ownership record config/hidden-messages.json (not in backups; restored messages are shown before the swap). Branches copy hiddenFromAI; those copies are not owned, so they stay hidden until shown by hand (documented in the CHANGELOG and docs/UI.md).

Validation

  • node scripts/validate-catalog.mjs passes locally
  • git diff --check passes locally
  • Rebuilt every affected manifest, payload, artifact, and catalog entry
  • Installed or updated the affected package through Marinara Engine
  • Checked supported modes, restart behavior, and uninstall cleanup
  • Read and followed CONTRIBUTING.md

Manual verification notes

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Agents/pull/1929 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/hide-imported-messages` --- ### 📝 Commits (4) - [`53cfb0e`](https://github.com/Pasta-Devs/Marinara-Agents/commit/53cfb0e3cdf390577f3d93e0026d68026c3cfb0f) feat(long-term-memory): hide imported messages from the AI (#1914) - [`ff4ad5b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ff4ad5b790dbd09e68334e1febb68b28dfaf559d) Merge upstream/staging into feature(long-term-memory)/hide-imported-messages; release long-term-memory 1.5.15 - [`be879f9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/be879f9b23217ad2f92ca266dc9a124df2c4cff7) fix(long-term-memory): keep the index rebuild when showing hidden messages fails (#1914) - [`e9758d9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e9758d92d851d4e74403aa588abb260d2dfe79ba) Merge branch 'staging' into feature(long-term-memory)/hide-imported-messages ### 📊 Changes **29 files changed** (+703 additions, -148 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ltm-browser.yml` (+1 -1) ➕ `artifacts/long-term-memory-1.5.15.zip` (+0 -0) 📝 `catalog/catalog.json` (+9 -8) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+9 -8) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+9 -8) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+21 -21) 📝 `packages/long-term-memory/docs/UI.md` (+8 -0) 📝 `packages/long-term-memory/manifest.json` (+6 -5) 📝 `packages/long-term-memory/server.mjs` (+64 -64) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+2 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+3 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/ko.json` (+3 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx` (+15 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/settings-shared.tsx` (+10 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/package-runtime.ts` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/persistence/backup-restore.ts` (+3 -0) _...and 9 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1914 ## Why this change A long imported chat is sent to the AI twice: once as the chat messages and again as the memories extracted from them. This adds an opt-in setting that hides the messages of an imported and extracted piece from the AI, like the chat summary's "Hide summarised messages", so the same history is not sent twice. ## What changed - Settings → Extraction adds **Hide imported messages from the AI** (off by default; en + ko strings). It is unavailable when the host cannot hide messages. - After a Chat Messages import, the messages of pieces whose source note is active and current are hidden, except the chat's summary tail, through the optional host method `setMessagesHiddenFromAI`. - An ownership record (`config/hidden-messages.json`) holds only the ids the host reported changed. Turning the setting off, resetting settings, permanently deleting a source note, and backup restore / Delete all show exactly those messages again. Messages shown or hidden by hand are never touched. - Affected package: `long-term-memory` 1.5.15 (rebuilt payloads, artifact, catalog entries). Also adds `chat-write` to the builder's permissions so the rebuilt manifest keeps it. New regression suite `hide-imported-messages` runs in `ltm-browser.yml`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `capabilityApi` stays 1.387. The host method is optional and feature-detected, so an Engine without it hides nothing and records nothing. - New or changed permissions/entrypoints: adds `chat-write`. Package code calls only `setMessagesHiddenFromAI`; `chat-write` also grants the other chat-write methods, which the package does not use. - Restart, storage, update, or uninstall impact: new ownership record `config/hidden-messages.json` (not in backups; restored messages are shown before the swap). Branches copy `hiddenFromAI`; those copies are not owned, so they stay hidden until shown by hand (documented in the CHANGELOG and docs/UI.md). ## Validation - [ ] `node scripts/validate-catalog.mjs` passes locally - [ ] `git diff --check` passes locally - [ ] Rebuilt every affected manifest, payload, artifact, and catalog entry - [ ] Installed or updated the affected package through Marinara Engine - [ ] Checked supported modes, restart behavior, and uninstall cleanup - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:38:55 +07:00
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#2035
No description provided.