[PR #1863] [MERGED] fix(slurp2): clear the Long-Term Memory "off" line once sharing is on (0.4.11) #2005

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

📋 Pull Request Information

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

Base: staging ← Head: fix(slurp2)/ltm-status-refresh


📝 Commits (5)

  • 3ab1886 fix(slurp2): clear the Long-Term Memory "off" line once sharing is on (#1856)
  • 08f6e14 chore(slurp2): release 0.4.11 (#1856)
  • c6d5c56 fix(slurp2): re-ask Long-Term Memory each time the memory status opens (#1856)
  • 5eb6bd5 Merge upstream/staging into fix(slurp2)/ltm-status-refresh; release slurp2 0.4.11
  • a5e048a Merge branch 'staging' into fix(slurp2)/ltm-status-refresh

📊 Changes

17 files changed (+178 additions, -99 deletions)

View changed files

➕ artifacts/slurp2-0.4.11.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/slurp2/CHANGELOG.md (+4 -0)
📝 packages/slurp2/client.js (+53 -53)
📝 packages/slurp2/manifest.json (+3 -3)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts (+8 -1)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpEngineLinkPanel.tsx (+2 -2)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-ltm-sharing-offer.ts (+20 -0)
📝 packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-hooks.ts (+8 -1)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/slurp2-client-hooks.regression.ts (+2 -0)
📝 tests/slurp2-ltm-recall.regression.ts (+41 -2)

📄 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 #1856

Why this change

Backstage → Engine link keeps showing "Long-Term Memory isn't sharing memories" after the player turns Long-Term Memory's "Other Agents can read memories" switch back on. The line comes from the outcome of Slurp's last recall, not from the current setting, so it stays until a Creator next reads memories. After Slurp's own "Turn it on" offer the panel cleared the cached line, but the next refetch brought it back. Turning sharing on from Long-Term Memory's offer or Memory Settings never cleared it at all. Creators were already reading memories in every case; only the status line was wrong.

What changed

  • slp-ltm-sharing-offer.ts: new currentMemoryStatus({ read, readLtm }). When the server answers off, it also reads Long-Term Memory's settings and returns no status if sharing is on. If that read fails the off line stays. ok, missing and error are returned as they are, with no extra read.
  • slp-settings-hooks.ts: useSlurpMemoryStatus calls it, so the panel shows the current state whichever side turned sharing on.
  • SlpEngineLinkPanel.tsx: after "Turn it on", the memory status query is invalidated instead of being overwritten with an empty value that the next refetch undid.
  • tests/slurp2-ltm-recall.regression.ts: the five currentMemoryStatus cases (off with sharing on, off with sharing off, off with the read failing, and ok/missing/error with no read), and the panel source pin now expects invalidateQueries. tests/slurp2-client-hooks.regression.ts lists the new read path.
  • Release: slurp2 0.4.11 with the splash entry, rebuilt client.js, manifest, artifact and catalog entries. server.mjs, lastStatus and the /settings/memory-status route are unchanged.

Package and security impact

  • Affected package IDs: slurp2
  • Engine compatibility impact: none (engine.min unchanged); uses Long-Term Memory's existing GET /long-term-memory/settings
  • New or changed permissions/entrypoints: none; no new route or capability service, and nothing is written to Long-Term Memory
  • Restart, storage, update, or uninstall impact: none; Slurp's settings schema is unchanged

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/1863 **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:** `fix(slurp2)/ltm-status-refresh` --- ### 📝 Commits (5) - [`3ab1886`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3ab18864a152316fd8f1f25545e17d8da23257c0) fix(slurp2): clear the Long-Term Memory "off" line once sharing is on (#1856) - [`08f6e14`](https://github.com/Pasta-Devs/Marinara-Agents/commit/08f6e14f63a2e8ed0f76ec2aeb676486e17bdd71) chore(slurp2): release 0.4.11 (#1856) - [`c6d5c56`](https://github.com/Pasta-Devs/Marinara-Agents/commit/c6d5c56e81e109f7289508a4f0f8116583495d2d) fix(slurp2): re-ask Long-Term Memory each time the memory status opens (#1856) - [`5eb6bd5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5eb6bd58744c0b0bb8cae3edf251366c680ccbfe) Merge upstream/staging into fix(slurp2)/ltm-status-refresh; release slurp2 0.4.11 - [`a5e048a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a5e048a097b2c269f6139d026ec68658c1f651d2) Merge branch 'staging' into fix(slurp2)/ltm-status-refresh ### 📊 Changes **17 files changed** (+178 additions, -99 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/slurp2-0.4.11.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/slurp2/CHANGELOG.md` (+4 -0) 📝 `packages/slurp2/client.js` (+53 -53) 📝 `packages/slurp2/manifest.json` (+3 -3) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/onboarding/slp-release.ts` (+8 -1) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/SlpEngineLinkPanel.tsx` (+2 -2) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-ltm-sharing-offer.ts` (+20 -0) 📝 `packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-settings-hooks.ts` (+8 -1) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/slurp2-client-hooks.regression.ts` (+2 -0) 📝 `tests/slurp2-ltm-recall.regression.ts` (+41 -2) </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 #1856 ## Why this change Backstage → Engine link keeps showing "Long-Term Memory isn't sharing memories" after the player turns Long-Term Memory's "Other Agents can read memories" switch back on. The line comes from the outcome of Slurp's last recall, not from the current setting, so it stays until a Creator next reads memories. After Slurp's own "Turn it on" offer the panel cleared the cached line, but the next refetch brought it back. Turning sharing on from Long-Term Memory's offer or Memory Settings never cleared it at all. Creators were already reading memories in every case; only the status line was wrong. ## What changed - `slp-ltm-sharing-offer.ts`: new `currentMemoryStatus({ read, readLtm })`. When the server answers `off`, it also reads Long-Term Memory's settings and returns no status if sharing is on. If that read fails the `off` line stays. `ok`, `missing` and `error` are returned as they are, with no extra read. - `slp-settings-hooks.ts`: `useSlurpMemoryStatus` calls it, so the panel shows the current state whichever side turned sharing on. - `SlpEngineLinkPanel.tsx`: after "Turn it on", the memory status query is invalidated instead of being overwritten with an empty value that the next refetch undid. - `tests/slurp2-ltm-recall.regression.ts`: the five `currentMemoryStatus` cases (off with sharing on, off with sharing off, off with the read failing, and `ok`/`missing`/`error` with no read), and the panel source pin now expects `invalidateQueries`. `tests/slurp2-client-hooks.regression.ts` lists the new read path. - Release: `slurp2` 0.4.11 with the splash entry, rebuilt `client.js`, manifest, artifact and catalog entries. `server.mjs`, `lastStatus` and the `/settings/memory-status` route are unchanged. ## Package and security impact - Affected package IDs: `slurp2` - Engine compatibility impact: none (`engine.min` unchanged); uses Long-Term Memory's existing `GET /long-term-memory/settings` - New or changed permissions/entrypoints: none; no new route or capability service, and nothing is written to Long-Term Memory - Restart, storage, update, or uninstall impact: none; Slurp's settings schema is unchanged ## 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:40 +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#2005
No description provided.