mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1853] [Feature]: Slurp: offer to turn on Long-Term Memory sharing when "What your other Agents know" is turned on #1786
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#1786
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1853
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Creator memory recall (#1841, Slurp 0.4.9) needs two switches on: Slurp's "What your other Agents know"
(
flavourFromAgents) and Long-Term Memory's "Other Agents can read memories" (longTermMemoryShareWithPackages).Both default to on, but a player who turned LTM's off and now turns Slurp's on gets nothing. All they see is the quiet
memoryStatusOffline under the switch, and they have to find the right switch in another package's settings.Proposed package or change
When the player turns on "What your other Agents know" in Backstage → Engine link, Slurp checks LTM's sharing
switch. If LTM is installed and its switch is off, Slurp asks (wording approved by the maintainer on 2026-10-29):
{ longTermMemoryShareWithPackages: true }to LTM, then refreshes Slurp's memory status.memoryStatusMissingline covers this). There isalso no popup when LTM's switch is already on, or when Slurp's switch is turned off.
ui.slurp.settings.prompts.flavourFromAgentsDetailends "Slurp only reads it and never changes thoseAgents." That is no longer true, so it becomes "Slurp only reads it and only changes those Agents when you say so."
Minimal fix
packages/slurp2/src/engine/packages/client/src/slp/features/settings/slp-ltm-sharing-offer.ts: exportofferLtmSharing({ read, confirm, save })with injected dependencies so it can be tested without a DOM.read()first. If it throws, return"skipped". If the result haslongTermMemoryShareWithPackages !== false, also return"skipped".confirm(). If it returns false, return"declined".await save()and return"enabled".savethrows to the caller.SlpEngineLinkPanel.tsx:96(flavourFromAgentsonChange): keepupdate("flavourFromAgents", value). Whenvalueis true, also call
offerLtmSharingwith:read:api.get("/long-term-memory/settings")(the Engineapiclient from../../../lib/api-client.js, as inslp-settings-hooks.ts).confirm:showConfirmDialogfrom../../../lib/app-dialogs(asSlpPlatformEventsPanel.tsx:124), with title,message,
confirmLabelandcancelLabelfrom the new locale keys.save:api.put("/long-term-memory/settings", { longTermMemoryShareWithPackages: true }). LTM's PUT merges apartial body (
updateLtmGlobalSettings, LTMsettings.ts:184-196)."enabled", invalidate theuseSlurpMemoryStatusquery (slp-settings-hooks.ts:31-38).savefails, show the error the way the panel's other failed writes do; if there is none, useshowAlertDialog.client/src/slp/locales/en.json: addui.slurp.settings.prompts.ltmSharingOfferTitle,…OfferMessage,…OfferConfirm("Turn it on") and…OfferCancel("Not now"), and changeflavourFromAgentsDetailas above.Update the same sentence in
de.json,ko.jsonandpl.json, and add the new keys there ifnode scripts/validate-package-locales.mjsrequires them.packages/slurp2/CHANGELOG.md: one line under## Unreleased. No version bump;reland.mjssets it at land(patch).
No server change, no new route, no settings schema change. Slurp writes LTM's setting only on the player's "Turn it on".
Proof
Extend
tests/slurp2-ltm-recall.regression.ts:offerLtmSharingand cover these cases: LTM's switch off and confirmed →savecalled once and the result is"enabled"; declined → nosave,"declined"; switch already on → noconfirm,"skipped";readthrows (LTMmissing) → no
confirm,"skipped".SlpEngineLinkPanel.tsxcallsofferLtmSharingonly on thevaluetrue branch, usingcancelLabel.Run that test plus
tests/slurp2-life-moments.regression.ts(it pins theupdate("flavourFromAgents", value)call),test-fast.sh,npm run checkand the locale validator.Why should this be optional?
It is a one-time question inside an existing package setting and changes no behavior until the player says yes. Nothing is added to the Engine core.
Alternatives considered
Non-goals:
PUT /settingsis enough.Additional context
Pair: #1854 (the same popup from the Long-Term Memory side). The two ship as separate PRs and share no files.
Template check