[PR #1518] [MERGED] fix(long-term-memory): settings wait for a successful reload after Reset or Import (1.4.63) #1524

Closed
opened 2026-10-22 04:03:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/settings-refill-followups


📝 Commits (4)

  • 1f36a39 fix(long-term-memory): settings wait for a successful reload; integrity-only import message; focus after Reset and Import (#1507)
  • 636e977 Merge upstream/staging into fix(long-term-memory)/settings-refill-followups; release long-term-memory 1.4.60
  • cbcb3b9 Merge upstream/staging into fix(long-term-memory)/settings-refill-followups; release long-term-memory 1.4.61
  • 528aee9 Merge upstream/staging into fix(long-term-memory)/settings-refill-followups; release long-term-memory 1.4.63

📊 Changes

14 files changed (+230 additions, -70 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.63.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 (+17 -17)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx (+28 -7)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx (+7 -4)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+134 -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 #1507

Why this change

  • After Reset settings or a backup import whose settings reload failed, leaving Memory Settings and coming back filled the forms with the settings from before the action. React Query keeps the data cached before a failed read, and the refill marker starts again when Settings remounts. The next Save sent the whole form and silently wrote the old settings back.
  • An import whose integrity read alone failed said "settings could not be refreshed", although the forms showed the refreshed settings, and it still showed the integrity report from before the import.
  • Reset and Import hide the Maintenance panel while the forms reload, which drops keyboard focus to the page, and nothing restored it.

What changed

  • long-term-memory client, settings only:
    • The global and extraction fill effects also wait while their query is in error, so Settings shows its load error until a read succeeds and the forms fill from that read.
    • Import only reports "settings could not be refreshed" when the settings refresh failed. A failed integrity read shows only its own error with Retry; the cached report, issue list and health reading are hidden while it is in error.
    • After Reset or Import, once the panel is back and idle, focus returns to Reset settings or Choose backup, if focus is still on the page body.
  • Browser regression: the #1452 import-integrity row now expects "Memory backup imported.", no cached report and no cached health reading; new rows for the remount case and for focus after Reset and Import.
  • Release: long-term-memory 1.4.63, with the CHANGELOG entry, version, manifest, rebuilt client.js, artifact and catalog entries, on top of staging 84ba3a60f (1.4.62).

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; client code only, same Engine range.
  • New or changed permissions/entrypoints: none. Executable client code changes (client.js); no new request.
  • Restart, storage, update, or uninstall impact: none. It removes a path where a Save could write pre-Reset or pre-Import settings back to settings.json.

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

  • Browser regression (tests/long-term-memory-browser.regression.ts): each new check fails on the base client (import message timeout at :3849 on staging edb9c4928; remount '20' !== '37'; focus body instead of Reset settings / Choose backup) and passes with the fix. The health-line check fails without its one-line change (1 !== 0).
  • Unrelated flake seen once: under heavy load (load average about 10) the browser regression failed at the #1442 availability-pill count (:2279, 5 !== 4), which counts pills right after branchAvailability.waitFor(). This patch doesn't touch it; both gate runs passed it.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • Not applicable: no visual change besides which message and report show.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Bug Fixes

    • Settings now reload correctly after reset or backup import, avoiding stale values.
    • Backup imports provide clearer integrity-check errors while preserving successful import status.
    • Integrity and health details are hidden when integrity data cannot be loaded.
    • Keyboard focus returns to the Reset settings or Choose backup control after reload.
  • Release

    • Long-Term Memory updated to version 1.4.63.

🔄 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/1518 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/21/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/settings-refill-followups` --- ### 📝 Commits (4) - [`1f36a39`](https://github.com/Pasta-Devs/Marinara-Agents/commit/1f36a39da30faaf7b90ee98c29e312301329061c) fix(long-term-memory): settings wait for a successful reload; integrity-only import message; focus after Reset and Import (#1507) - [`636e977`](https://github.com/Pasta-Devs/Marinara-Agents/commit/636e977c06a78e8e51f0631d49229318599e1ec1) Merge upstream/staging into fix(long-term-memory)/settings-refill-followups; release long-term-memory 1.4.60 - [`cbcb3b9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/cbcb3b96030225c8ab4b9d2eaaf146581622835b) Merge upstream/staging into fix(long-term-memory)/settings-refill-followups; release long-term-memory 1.4.61 - [`528aee9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/528aee9e59e148fcee6bd4fd86189341862908ba) Merge upstream/staging into fix(long-term-memory)/settings-refill-followups; release long-term-memory 1.4.63 ### 📊 Changes **14 files changed** (+230 additions, -70 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.63.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` (+17 -17) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx` (+28 -7) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx` (+7 -4) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+134 -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 #1507 ## Why this change - After Reset settings or a backup import whose settings reload failed, leaving Memory Settings and coming back filled the forms with the settings from before the action. React Query keeps the data cached before a failed read, and the refill marker starts again when Settings remounts. The next Save sent the whole form and silently wrote the old settings back. - An import whose integrity read alone failed said "settings could not be refreshed", although the forms showed the refreshed settings, and it still showed the integrity report from before the import. - Reset and Import hide the Maintenance panel while the forms reload, which drops keyboard focus to the page, and nothing restored it. ## What changed - `long-term-memory` client, settings only: - The global and extraction fill effects also wait while their query is in error, so Settings shows its load error until a read succeeds and the forms fill from that read. - Import only reports "settings could not be refreshed" when the settings refresh failed. A failed integrity read shows only its own error with Retry; the cached report, issue list and health reading are hidden while it is in error. - After Reset or Import, once the panel is back and idle, focus returns to Reset settings or Choose backup, if focus is still on the page body. - Browser regression: the #1452 `import-integrity` row now expects "Memory backup imported.", no cached report and no cached health reading; new rows for the remount case and for focus after Reset and Import. - **Release:** `long-term-memory` 1.4.63, with the CHANGELOG entry, version, manifest, rebuilt `client.js`, artifact and catalog entries, on top of staging 84ba3a60f (1.4.62). ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; client code only, same Engine range. - New or changed permissions/entrypoints: none. Executable client code changes (`client.js`); no new request. - Restart, storage, update, or uninstall impact: none. It removes a path where a Save could write pre-Reset or pre-Import settings back to `settings.json`. ## 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 - Browser regression (`tests/long-term-memory-browser.regression.ts`): each new check fails on the base client (import message timeout at `:3849` on `staging` edb9c4928; remount `'20' !== '37'`; focus `body` instead of Reset settings / Choose backup) and passes with the fix. The health-line check fails without its one-line change (`1 !== 0`). - Unrelated flake seen once: under heavy load (load average about 10) the browser regression failed at the #1442 availability-pill count (`:2279`, `5 !== 4`), which counts pills right after `branchAvailability.waitFor()`. This patch doesn't touch it; both gate runs passed it. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) - Not applicable: no visual change besides which message and report show. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> <!-- coderabbit-ai-generated:v1 --> ## Summary by CodeRabbit * **Bug Fixes** * Settings now reload correctly after reset or backup import, avoiding stale values. * Backup imports provide clearer integrity-check errors while preserving successful import status. * Integrity and health details are hidden when integrity data cannot be loaded. * Keyboard focus returns to the Reset settings or Choose backup control after reload. * **Release** * Long-Term Memory updated to version 1.4.63. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:03:06 +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#1524
No description provided.