[PR #1859] [MERGED] feat(long-term-memory): offer to turn on Slurp's memory switch after sharing is turned on (1.5.9) #2001

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/slurp-memory-offer


📝 Commits (2)

  • c539ecb feat(long-term-memory): offer to turn on Slurp's memory switch after sharing is turned on (#1854)
  • c69d06f chore(long-term-memory): release 1.5.9 (#1854)

📊 Changes

20 files changed (+189 additions, -69 deletions)

View changed files

➕ artifacts/long-term-memory-1.5.9.zip (+0 -0)
📝 catalog/catalog.json (+6 -6)
📝 catalog/notes.json (+6 -6)
📝 catalog/v2/catalog.json (+6 -6)
📝 catalog/v2/notes.json (+6 -6)
📝 catalog/v3/catalog.json (+6 -6)
📝 catalog/v3/notes.json (+6 -6)
📝 packages/long-term-memory/CHANGELOG.md (+4 -0)
📝 packages/long-term-memory/client.js (+28 -28)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+7 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+5 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/ko.json (+5 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx (+25 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/settings-shared.tsx (+2 -0)
➕ packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/slurp-memory-offer.ts (+23 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/types.ts (+1 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-debug-activity.regression.ts (+39 -0)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+10 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1854

Why this change

Slurp's Creators use Long-Term Memory's memories only when two switches are on: Long-Term Memory's "Other Agents can read memories" and Slurp's "What your other Agents know". A player who turns Long-Term Memory sharing on while Slurp's switch is off sees nothing happen and has to know to open Slurp → Backstage → Engine link. Memory Settings now asks, once, after a Save that turns sharing on. This is the Long-Term Memory side of the pair; the Slurp side shipped in #1855.

What changed

  • settings/slurp-memory-offer.ts (new): offerSlurpMemories({ read, confirm, save }) with injected dependencies, the same contract as Slurp's offerLtmSharing. It skips when Slurp's settings can't be read (Slurp not installed) or its switch is already on, otherwise asks and, on "Turn it on", saves only flavourFromAgents: true. "Not now" changes nothing.
  • MemorySettings.tsx saveSettings: the offer runs only after a successful global save that changed sharing from off to on, never on the toggle flip, so Discard can't leave Slurp changed. Reset and Import don't trigger it. A failed Slurp save shows a fixed message that still says Long-Term Memory saved.
  • api.ts requestHost: optional method and body, with the admin-secret header and, for writes, the CSRF header that request sends. Used for Slurp's existing PATCH /api/slurp2/settings.
  • settings-shared.tsx confirm() and types.ts confirmAction: optional cancelLabel, passed through to the Engine's confirm dialog so the button reads "Not now".
  • Locales (en, ko): offer title, message, button labels and the failure message.
  • Tests: the four offer cases (confirmed, declined, already on, read fails) in long-term-memory-debug-activity.regression.ts, and a source pin in long-term-memory-feedback-clarity-ui.regression.mjs that the offer runs only after the global PUT and only on an off→on change.
  • Release: long-term-memory 1.5.9 with rebuilt client.js, manifest, artifact and catalog entries. server.mjs is unchanged. The builder's version still read 1.5.7 after the 1.5.8 release (#1843), so it is set to 1.5.9 here. Merges staging at 4afbf1acf.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (engine.min unchanged at 2.5.1); no Engine change
  • New or changed permissions/entrypoints: none, no new route; the client calls Slurp's existing GET/PATCH /api/slurp2/settings only when Slurp is installed. requestHost now sends the same-origin admin-secret header on its existing GET callers too, matching request
  • Restart, storage, update, or uninstall impact: none; Long-Term Memory's settings schema is unchanged and it writes Slurp's setting only after the player clicks "Turn it on"

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/1859 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/slurp-memory-offer` --- ### 📝 Commits (2) - [`c539ecb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c539ecb0995174c6c03d901673b5c15abeb01914) feat(long-term-memory): offer to turn on Slurp's memory switch after sharing is turned on (#1854) - [`c69d06f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c69d06f7677fb94f99a61d40a9f9bd21450b94c9) chore(long-term-memory): release 1.5.9 (#1854) ### 📊 Changes **20 files changed** (+189 additions, -69 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.5.9.zip` (+0 -0) 📝 `catalog/catalog.json` (+6 -6) 📝 `catalog/notes.json` (+6 -6) 📝 `catalog/v2/catalog.json` (+6 -6) 📝 `catalog/v2/notes.json` (+6 -6) 📝 `catalog/v3/catalog.json` (+6 -6) 📝 `catalog/v3/notes.json` (+6 -6) 📝 `packages/long-term-memory/CHANGELOG.md` (+4 -0) 📝 `packages/long-term-memory/client.js` (+28 -28) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+7 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+5 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/ko.json` (+5 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx` (+25 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/settings-shared.tsx` (+2 -0) ➕ `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/slurp-memory-offer.ts` (+23 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/types.ts` (+1 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-debug-activity.regression.ts` (+39 -0) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+10 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #1854 ## Why this change Slurp's Creators use Long-Term Memory's memories only when two switches are on: Long-Term Memory's "Other Agents can read memories" and Slurp's "What your other Agents know". A player who turns Long-Term Memory sharing on while Slurp's switch is off sees nothing happen and has to know to open Slurp → Backstage → Engine link. Memory Settings now asks, once, after a Save that turns sharing on. This is the Long-Term Memory side of the pair; the Slurp side shipped in #1855. ## What changed - `settings/slurp-memory-offer.ts` (new): `offerSlurpMemories({ read, confirm, save })` with injected dependencies, the same contract as Slurp's `offerLtmSharing`. It skips when Slurp's settings can't be read (Slurp not installed) or its switch is already on, otherwise asks and, on "Turn it on", saves only `flavourFromAgents: true`. "Not now" changes nothing. - `MemorySettings.tsx` `saveSettings`: the offer runs only after a successful global save that changed sharing from off to on, never on the toggle flip, so Discard can't leave Slurp changed. Reset and Import don't trigger it. A failed Slurp save shows a fixed message that still says Long-Term Memory saved. - `api.ts` `requestHost`: optional `method` and `body`, with the admin-secret header and, for writes, the CSRF header that `request` sends. Used for Slurp's existing `PATCH /api/slurp2/settings`. - `settings-shared.tsx` `confirm()` and `types.ts` `confirmAction`: optional `cancelLabel`, passed through to the Engine's confirm dialog so the button reads "Not now". - Locales (en, ko): offer title, message, button labels and the failure message. - Tests: the four offer cases (confirmed, declined, already on, read fails) in `long-term-memory-debug-activity.regression.ts`, and a source pin in `long-term-memory-feedback-clarity-ui.regression.mjs` that the offer runs only after the global PUT and only on an off→on change. - Release: `long-term-memory` 1.5.9 with rebuilt `client.js`, manifest, artifact and catalog entries. `server.mjs` is unchanged. The builder's version still read 1.5.7 after the 1.5.8 release (#1843), so it is set to 1.5.9 here. Merges `staging` at 4afbf1acf. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (`engine.min` unchanged at 2.5.1); no Engine change - New or changed permissions/entrypoints: none, no new route; the client calls Slurp's existing `GET`/`PATCH /api/slurp2/settings` only when Slurp is installed. `requestHost` now sends the same-origin admin-secret header on its existing GET callers too, matching `request` - Restart, storage, update, or uninstall impact: none; Long-Term Memory's settings schema is unchanged and it writes Slurp's setting only after the player clicks "Turn it on" ## 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:39 +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#2001
No description provided.