mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1854] [Feature]: Long-Term Memory: offer to turn on Slurp's memory switch after sharing is turned on #1787
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#1787
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/1854
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
Slurp's Creators use LTM memories (#1841, Slurp 0.4.9) only when both switches are on: LTM's "Other Agents can read
memories" (
longTermMemoryShareWithPackages) and Slurp's "What your other Agents know" (flavourFromAgents). A playerwho turns LTM sharing on while Slurp's switch is off sees nothing happen. They have to know to open Slurp → Backstage →
Engine link.
Proposed package or change
When a Save in Memory Settings changes "Other Agents can read memories" from off to on, LTM checks Slurp's switch.
If Slurp is installed and its switch is off, LTM asks (wording approved by the maintainer on 2026-10-29):
the flip and then Discarding would leave Slurp changed while LTM sharing stayed off.
{ flavourFromAgents: true }to Slurp. "Not now" leaves Slurp alone, and LTM's saved setting stayson either way.
change sharing from off to on. Reset and Import do not count as that Save.
Minimal fix
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/slurp-memory-offer.ts:export
offerSlurpMemories({ read, confirm, save })with injected dependencies, using the same contract as Slurp'sofferLtmSharing.read()first. If it throws, return"skipped". If the result hasflavourFromAgents !== false, also return"skipped".confirm(). If it returns false, return"declined".await save()and return"enabled".MemorySettings.tsxsaveSettings(around lines 335-394):longTermMemoryShareWithPackagesoff.saved.longTermMemoryShareWithPackagesis true, callofferSlurpMemorieswith:read:requestHost("/api/slurp2/settings")(api.ts:200).confirm: the existingconfirm(props, …)helper.save: a PATCH to/api/slurp2/settingswith the same admin-secret and CSRF headersrequestsends.requestHostis GET-only today; give it optionalmethod/bodyinstead of adding a new helper.setMessage(…, "danger", surface). The LTM save is still reportedas saved.
settings/settings-shared.tsxconfirm()andtypes.ts:41confirmAction: add an optionalcancelLabeland passit through, so the popup reads "Not now". Engine already passes its own
showConfirmDialogasconfirmAction(
AppShell.tsx:881,ChatSettingsDrawer.tsx:1587), and that acceptscancelLabel. No Engine change.locales/en.jsonandko.json: addui.longTermMemory.memorysettings.slurpMemoryOfferTitle,…OfferMessage,…OfferConfirm("Turn it on") and…OfferCancel("Not now"). Runnode scripts/validate-package-locales.mjs.packages/long-term-memory/CHANGELOG.md: one line under## Unreleased. No version bump;reland.mjssets it atland (patch).
LTM names Slurp here for the first time in its client. This is deliberate: the maintainer asked for this pair to link,
and the offer only appears once Slurp's route answers.
Proof
tests/long-term-memory-debug-activity.regression.tsalready imports LTM settings client modules. Add the fourofferSlurpMemoriescases there: off and confirmed →saveonce,"enabled"; declined → nosave; already on → noconfirm;readthrows → noconfirm.saveSettingscalls it only after the global PUT and only on an off→on change.test-ltm.sh(MARINARA_AGENTS_ROOT and MARINARA_ENGINE_ROOT set), thelong-term-memory-host-stylescheck before push,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:
PATCH /settingsis enough.Additional context
Pair: #1853 (the same popup from the Slurp side). The two ship as separate PRs and share no files.
Template check