mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[PR #1459] [MERGED] fix(long-term-memory): keep cached settings out of forms a failed reload cleared (1.4.53) #1472
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#1472
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?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/1459
Author: @Promansis
Created: 10/18/2026
Status: ✅ Merged
Merged: 10/18/2026
Merged by: @Promansis
Base:
staging← Head:fix(long-term-memory)/1452-settings-stale-refill📝 Commits (2)
34afa47fix(long-term-memory): keep cached settings out of forms a failed reload cleared (#1452)b6fbb23Merge upstream/staging into fix(long-term-memory)/1452-settings-stale-refill; release long-term-memory 1.4.53📊 Changes
14 files changed (+155 additions, -72 deletions)
View changed files
➕
artifacts/long-term-memory-1.4.53.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(+19 -19)📝
packages/long-term-memory/manifest.json(+3 -3)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx(+4 -7)📝
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx(+9 -5)📝
scripts/build-feature-packages.mjs(+1 -1)📝
tests/long-term-memory-browser.regression.ts(+79 -1)📄 Description
Linked issue
Closes #1452
Why this change
Reset settings and Import backup clear the Memory Settings forms so they reload. Before this fix, the populate effects refilled a cleared form from whatever data the settings query held. If the reload after Reset or Import failed, that data was the cached settings from before the action. Retry on the load error then showed the old settings, and a later Save could write them back over the reset or imported ones. This is tracker item UI-4, a known edge recorded in the #1376 repair notes (PR #1400).
What changed
dataUpdatedAt. A cleared form now refills only from a query result fetched at or after the action started.dataUpdatedAtis in the effect dependencies, so a Retry that returns the same data still fills the forms.cleartakes the action's start time. The issue's example hadclearrecordDate.now()itself. Import callsclearafter its awaited invalidation. If only the integrity read failed, the settings refetch would then predateclear, and the forms would stay on "Loading memory settings." with no Retry.clear()or its comment.applystill loads the refreshed settings on the success path. The backup import's integrity check is unchanged.long-term-memory1.4.53, with the CHANGELOG entry, version, manifest, rebuiltclient.js, artifact and catalog entries. At land, the branch was merged withupstream/staging(1.4.52, #1458). Only the CHANGELOG conflicted, and reland resolved it.Diff before the release merge: source +13/−12 lines, tests +79/−1, CHANGELOG +4.
Known limits, left outside the Minimal fix:
refillSince. It is component state. If someone leaves Settings after a failed reload and comes back, the forms refill from the stale cache. This predates the change.refetchedSincehelper already does.Package and security impact
long-term-memoryValidation
node scripts/validate-catalog.mjspasses locallygit diff --checkpasses locallyCONTRIBUTING.mdManual verification notes
These checks were run by the coding agent, not by a person. Engine checkout
2039583ca, Nodev24.15.0.tests/long-term-memory-browser.regression.ts.reset,importandimport-integrity.resetrow with'20' !== '37': Retry brought back the old value.includeHidden: true.34afa474d, these passed:test-ltm.shbrowser,feedback-clarity-uiandloading.typecheck-packages,test-fast.shand the four catalog gates.b6fbb2330(after merging 1.4.52), these all passed:test-fast.sh(npm run check,git diff --check) andtypecheck-packages long-term-memory.test-catalog-lanes,validate-package-locales,validate-catalogandcatalog-release-notes.test-ltm.shbrowser,feedback-clarity-uiandloading.test-ltm.sh all.Documentation impact
UI evidence (if applicable)
None. Two things change on screen:
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.