[PR #1401] [MERGED] chore(long-term-memory): 1.4.38 — remove duplicated UI code, repeated fetches and unused locale keys (#1377) #1444

Closed
opened 2026-10-21 05:11:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: chore(long-term-memory)/1377-ui-dedupe


📝 Commits (2)

  • 7dba9c8 chore(long-term-memory): remove duplicated UI code, repeated fetches and unused locale keys (#1377)
  • 40f21cb chore(long-term-memory): release 1.4.38 (#1377)

📊 Changes

36 files changed (+432 additions, -692 deletions)

View changed files

📝 .github/workflows/pull-request-checks.yml (+1 -0)
➕ artifacts/long-term-memory-1.4.38.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 (+115 -117)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+43 -57)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx (+3 -8)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts (+29 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts (+14 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+0 -155)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ActivityView.tsx (+4 -26)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx (+27 -37)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx (+5 -12)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx (+8 -24)

...and 16 more files

📄 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 #1377

Why this change

  • The Long-Term Memory client carried several identical copies of the same code, three definitions of the same queries, a lazy() import that splits nothing in a single-file bundle, Settings actions that fetched the same data two or three times, and 155 locale keys nothing references. Each copy is a place for the others to drift, and the refetches were visible in the network panel after a backup import.
  • This is a deletions-first cleanup: it changes nothing users see, except that the brief "Loading" panel between screens goes away.

What changed

  • Affected package: long-term-memory 1.4.37 → 1.4.38 (client only; no server, manifest-permission or Engine-compatibility change).
  • One availabilitySectionCopy(), one scope-kind label list (scopeKindCategories) and one nextTabIndex helper replace identical copies (7 tab-key handlers).
  • chatModeLabel/modeName and the Activity confirm() copy are deleted; the Detail shell's inline window.confirm uses the shared helper (same text, same destructive tone).
  • Settings, scope-targets and derived-notes queries are defined once in api.ts; VaultScopeTargets is deleted (ScopeTargetChat already carries chatName).
  • The four destinations are imported directly; lazy/Suspense and the loading key are removed.
  • Backup import, reset and delete-all no longer call .refetch() after invalidateQueries, which already awaits active queries. Import and delete-all invalidate queryKeys.root alone (they replace the whole vault), and a refetch that failed or was paused is detected with dataUpdatedAt, so stale settings are never applied as the saved baseline.
  • 155 unreferenced ui.* keys removed from locales/en.json.
  • Tests: new Engine-free tests/long-term-memory-tab-keys.regression.ts (wired into pull-request-checks.yml); the feedback-clarity and loading source-text assertions follow the moved code; the existing browser reset flow now asserts the settings are read once (fails on 1.4.37, passes on 1.4.38).
  • Generated outputs rebuilt: packages/long-term-memory/client.js, manifest.json, artifacts/long-term-memory-1.4.38.zip, catalog/**.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min / engine.maxExclusive unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; update replaces the client bundle only

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

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.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Updated Long-Term Memory to version 1.4.38, with faster screen loading and fewer repeated settings and integrity checks.
    • Improved keyboard navigation across tabs, including arrow-key wraparound and Home/End shortcuts.
    • Updated localized labels and guidance throughout Long-Term Memory.
  • Bug Fixes

    • Improved settings refresh handling after imports and resets, and ensured linked memories load before selection.

🔄 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/1401 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/15/2026 **Status:** ✅ Merged **Merged:** 10/15/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `chore(long-term-memory)/1377-ui-dedupe` --- ### 📝 Commits (2) - [`7dba9c8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7dba9c89380070f4acffeaadb7bad643aae387c1) chore(long-term-memory): remove duplicated UI code, repeated fetches and unused locale keys (#1377) - [`40f21cb`](https://github.com/Pasta-Devs/Marinara-Agents/commit/40f21cb1f21785458046867ddf6ff694fdcf4125) chore(long-term-memory): release 1.4.38 (#1377) ### 📊 Changes **36 files changed** (+432 additions, -692 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/pull-request-checks.yml` (+1 -0) ➕ `artifacts/long-term-memory-1.4.38.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` (+115 -117) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+43 -57) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx` (+3 -8) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/api.ts` (+29 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts` (+14 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+0 -155) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ActivityView.tsx` (+4 -26) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx` (+27 -37) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx` (+5 -12) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx` (+8 -24) _...and 16 more files_ </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 #1377 ## Why this change - The Long-Term Memory client carried several identical copies of the same code, three definitions of the same queries, a `lazy()` import that splits nothing in a single-file bundle, Settings actions that fetched the same data two or three times, and 155 locale keys nothing references. Each copy is a place for the others to drift, and the refetches were visible in the network panel after a backup import. - This is a deletions-first cleanup: it changes nothing users see, except that the brief "Loading" panel between screens goes away. ## What changed - Affected package: `long-term-memory` 1.4.37 → 1.4.38 (client only; no server, manifest-permission or Engine-compatibility change). - One `availabilitySectionCopy()`, one scope-kind label list (`scopeKindCategories`) and one `nextTabIndex` helper replace identical copies (7 tab-key handlers). - `chatModeLabel`/`modeName` and the Activity `confirm()` copy are deleted; the Detail shell's inline `window.confirm` uses the shared helper (same text, same destructive tone). - Settings, scope-targets and derived-notes queries are defined once in `api.ts`; `VaultScopeTargets` is deleted (`ScopeTargetChat` already carries `chatName`). - The four destinations are imported directly; `lazy`/`Suspense` and the loading key are removed. - Backup import, reset and delete-all no longer call `.refetch()` after `invalidateQueries`, which already awaits active queries. Import and delete-all invalidate `queryKeys.root` alone (they replace the whole vault), and a refetch that failed or was paused is detected with `dataUpdatedAt`, so stale settings are never applied as the saved baseline. - 155 unreferenced `ui.*` keys removed from `locales/en.json`. - Tests: new Engine-free `tests/long-term-memory-tab-keys.regression.ts` (wired into `pull-request-checks.yml`); the feedback-clarity and loading source-text assertions follow the moved code; the existing browser reset flow now asserts the settings are read once (fails on 1.4.37, passes on 1.4.38). - Generated outputs rebuilt: `packages/long-term-memory/client.js`, `manifest.json`, `artifacts/long-term-memory-1.4.38.zip`, `catalog/**`. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` / `engine.maxExclusive` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; update replaces the client bundle only ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 - ## 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Updated Long-Term Memory to version 1.4.38, with faster screen loading and fewer repeated settings and integrity checks. * Improved keyboard navigation across tabs, including arrow-key wraparound and Home/End shortcuts. * Updated localized labels and guidance throughout Long-Term Memory. * **Bug Fixes** * Improved settings refresh handling after imports and resets, and ensured linked memories load before selection. <!-- 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-21 05:11:32 +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#1444
No description provided.