mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1856] [Issue]: Slurp still says Long-Term Memory isn't sharing after its sharing switch is turned on #1788
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#1788
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/1856
Originally assigned to: @Promansis on GitHub.
Summary
Slurp's Backstage → Engine link shows "Long-Term Memory isn't sharing memories" (
memoryStatusOff) under "What yourother Agents know" after Long-Term Memory's "Other Agents can read memories" switch has been turned back on. The line
stays until the next Creator post or DM reply reads memories, even though that read will now work.
Affected package
slurp2(Slurp). Found by Dottore Review on #1855 (finding5abdc09bda4802f8, Low).Expected behavior
Once Long-Term Memory's sharing switch is on, the panel stops showing the "off" line, whichever side turned it on.
Actual behavior
GET /settings/memory-status(slp-settings-routes.ts:62) returnslastStatusfromserver/src/slp/data/creators/slp-ltm-recall.ts:31, which onlyrecallSlurpMemoriessets. It is the outcome of thelast recall, not the current state, so:
(
SlpEngineLinkPanel.tsx:37,setQueryData(... { status: null })). The next refetch (30 sstaleTime, remount orwindow focus) brings "off" back.
line stays "off" until the next recall.
Creators do use memories from the next recall either way. Only the status line is wrong.
Steps to reproduce
off. Backstage → Engine link shows the "off" line.Environment
Logs, screenshots, or video
None; the cause is in the code paths above.
Additional context
Minimal fix (client only, no server change, no new route)
client/src/slp/features/settings/slp-settings-hooks.tsuseSlurpMemoryStatus: when the server answers"off",also read
api.get("/long-term-memory/settings"). If that succeeds withlongTermMemoryShareWithPackages !== false,return
{ status: null }. If the read fails, keep"off". Any other status is returned as is, with no extra read.Put the decision in a small exported pure function (for example
currentMemoryStatus({ read, readLtm })) next toofferLtmSharinginslp-ltm-sharing-offer.ts, so it can be tested without React.SlpEngineLinkPanel.tsx:35-38: replace thesetQueryData(... { status: null })workaround and its comment withqueryClient.invalidateQueries({ queryKey: [...slpKeys.settings(), "memory-status"] })on"enabled".packages/slurp2/CHANGELOG.md: one line under## Unreleased. Patch;reland.mjssets the version at land.This also covers turning sharing on from Long-Term Memory, which a reset route on Slurp's server would not.
Proof
Extend
tests/slurp2-ltm-recall.regression.ts:"off"with Long-Term Memory sharing on →null;"off"with it off→
"off";"off"with the read throwing →"off";"ok"/"missing"/"error"→ returned with no Long-TermMemory read. Update the panel source pin near line 389 to expect
invalidateQueries, notsetQueryData. Run that test,tests/slurp2-life-moments.regression.ts,test-fast.sh,npm run check.Non-goals
lastStatusor the/settings/memory-statusroute.Related: #1853 / #1855 (Slurp offer), #1854 (Long-Term Memory offer).
Template check