[PR #1632] [MERGED] fix(long-term-memory): keep focus on pending controls, name the unsaved-changes destination, tighten Chat Settings copy (1.4.88) #1634

Closed
opened 2026-10-25 04:02:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix/ltm-shell-followups


📝 Commits (6)

  • 759dfac fix(long-term-memory): keep keyboard focus on pending controls (#1617)
  • 9038f06 fix(long-term-memory): name the unsaved-changes destination and tighten Chat Settings copy (#1617)
  • 84f6013 chore(long-term-memory): changelog for #1617
  • 460c9f8 Merge upstream/staging into fix/ltm-shell-followups; release long-term-memory 1.4.88
  • b5db254 fix(long-term-memory): show the loading placeholder only while a default is unknown (#1617)
  • 5835e7a Merge branch 'staging' into fix/ltm-shell-followups

📊 Changes

19 files changed (+420 additions, -110 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.88.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 (+5 -0)
📝 packages/long-term-memory/client.js (+29 -28)
📝 packages/long-term-memory/docs/UI.md (+15 -3)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ChatSettings.tsx (+51 -16)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+25 -8)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+7 -4)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/recall-style.ts (+2 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/shared-controls.tsx (+19 -9)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/long-term-memory-browser.regression.ts (+187 -2)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+40 -0)

📄 Description

Pull request

Linked issue

Closes #1617

Why this change

  • A critique of the Long-Term Memory workspace shell found two P2 problems: controls that go inert while an action runs drop keyboard focus, and the unsaved-changes prompt and Chat Settings copy mislead (the prompt does not say where you are going; Chat Settings names a "Last Injection Summary" that does not exist and shows invented defaults while loading).
  • Both touch the same shell files, so they ship as one bundle on one issue, one version bump and one zip instead of two PRs that would conflict.

What changed

  • Item 1: the Active switch, Reindex button and the Chat Settings select and number fields use aria-disabled plus a ref guard while pending instead of native disabled, so focus stays on the control and a second click or Enter does nothing. NumberField gains an additive busy prop; other callers behave as before.
  • Item 2: the Detail unsaved-changes dialog gets its own key that names the destination, and the confirm() fallback uses the same nouns and the "Discard and continue" verb; the MemoryVault wording is untouched. Chat Settings merges its two muted paragraphs into one sentence, lists all five recall styles with the current one marked, renames the button to "Open Long-Term Memory", and shows "Loading default…" / "Default unavailable" instead of invented balanced / 4096 / 20 while the global settings load.
  • Affected package: long-term-memory 1.4.88 (rebuilt client.js, manifest.json, artifacts/long-term-memory-1.4.88.zip and the catalog entries). Source is under packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory, plus docs/UI.md, locales/en.json, and the browser and feedback-clarity regressions.

Bundle items

Each item was reviewed and committed on its own. The squash merge flattens them, so to undo one item, revert the changes of the commits listed for it.

  1. Pending controls keep keyboard focus: 759dfacf0 fix(long-term-memory): keep keyboard focus on pending controls (#1617)
  2. Say where the unsaved-changes prompt leads, and tighten Chat Settings copy: 9038f0606 fix(long-term-memory): name the unsaved-changes destination and tighten Chat Settings copy (#1617)

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; manifest engine range unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; client UI only, no server or storage change

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

  • Agent-run on 460c9f849, all exit 0: build-feature-packages long-term-memory; LTM browser, host-styles, feedback-clarity-ui; typecheck-packages long-term-memory; validate-package-locales; validate-catalog; test-catalog-lanes; catalog-release-notes regression; npm run check. The browser regression covers held toggle/reindex/Chat Settings updates keeping focus, the destination-naming dialog from the Vault and Review, the confirm() text, the five-style popover and the gated-settings loading state.
  • Not performed: installing the package through a Marinara Engine and checking restart and uninstall.

Documentation impact

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

docs/UI.md for the package is updated for the navigation contract and the Chat Settings paragraph.

UI evidence (if applicable)

None attached; the browser regression asserts the new states.


🔄 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/1632 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/24/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix/ltm-shell-followups` --- ### 📝 Commits (6) - [`759dfac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/759dfacf0dc6cd8da280e4f0bcb23f7b0f8de141) fix(long-term-memory): keep keyboard focus on pending controls (#1617) - [`9038f06`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9038f0606cfd35eade561fbda63770c95aa32715) fix(long-term-memory): name the unsaved-changes destination and tighten Chat Settings copy (#1617) - [`84f6013`](https://github.com/Pasta-Devs/Marinara-Agents/commit/84f6013448ba5acd0ff5e5daaa44eb521a8011e8) chore(long-term-memory): changelog for #1617 - [`460c9f8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/460c9f84902e8a3e29758013d645c7d3bc72f574) Merge upstream/staging into fix/ltm-shell-followups; release long-term-memory 1.4.88 - [`b5db254`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b5db254204457cc6aae59053369470a886b9e1e1) fix(long-term-memory): show the loading placeholder only while a default is unknown (#1617) - [`5835e7a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5835e7a2c8cd72d6f4e35dd416ede6b49172b41a) Merge branch 'staging' into fix/ltm-shell-followups ### 📊 Changes **19 files changed** (+420 additions, -110 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.88.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` (+5 -0) 📝 `packages/long-term-memory/client.js` (+29 -28) 📝 `packages/long-term-memory/docs/UI.md` (+15 -3) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ChatSettings.tsx` (+51 -16) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+25 -8) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+7 -4) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/recall-style.ts` (+2 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/shared-controls.tsx` (+19 -9) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/long-term-memory-browser.regression.ts` (+187 -2) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+40 -0) </details> ### 📄 Description # Pull request ## Linked issue Closes #1617 ## Why this change - A critique of the Long-Term Memory workspace shell found two P2 problems: controls that go inert while an action runs drop keyboard focus, and the unsaved-changes prompt and Chat Settings copy mislead (the prompt does not say where you are going; Chat Settings names a "Last Injection Summary" that does not exist and shows invented defaults while loading). - Both touch the same shell files, so they ship as one bundle on one issue, one version bump and one zip instead of two PRs that would conflict. ## What changed - Item 1: the Active switch, Reindex button and the Chat Settings select and number fields use `aria-disabled` plus a ref guard while pending instead of native `disabled`, so focus stays on the control and a second click or Enter does nothing. `NumberField` gains an additive `busy` prop; other callers behave as before. - Item 2: the Detail unsaved-changes dialog gets its own key that names the destination, and the `confirm()` fallback uses the same nouns and the "Discard and continue" verb; the MemoryVault wording is untouched. Chat Settings merges its two muted paragraphs into one sentence, lists all five recall styles with the current one marked, renames the button to "Open Long-Term Memory", and shows "Loading default…" / "Default unavailable" instead of invented balanced / 4096 / 20 while the global settings load. - Affected package: `long-term-memory` 1.4.88 (rebuilt `client.js`, `manifest.json`, `artifacts/long-term-memory-1.4.88.zip` and the catalog entries). Source is under `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory`, plus `docs/UI.md`, `locales/en.json`, and the browser and feedback-clarity regressions. ## Bundle items Each item was reviewed and committed on its own. The squash merge flattens them, so to undo one item, revert the changes of the commits listed for it. 1. Pending controls keep keyboard focus: 759dfacf0 fix(long-term-memory): keep keyboard focus on pending controls (#1617) 2. Say where the unsaved-changes prompt leads, and tighten Chat Settings copy: 9038f0606 fix(long-term-memory): name the unsaved-changes destination and tighten Chat Settings copy (#1617) ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; manifest `engine` range unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; client UI only, no server or storage change ## 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 - Agent-run on `460c9f849`, all exit 0: `build-feature-packages long-term-memory`; LTM `browser`, `host-styles`, `feedback-clarity-ui`; `typecheck-packages long-term-memory`; `validate-package-locales`; `validate-catalog`; `test-catalog-lanes`; `catalog-release-notes` regression; `npm run check`. The browser regression covers held toggle/reindex/Chat Settings updates keeping focus, the destination-naming dialog from the Vault and Review, the `confirm()` text, the five-style popover and the gated-settings loading state. - Not performed: installing the package through a Marinara Engine and checking restart and uninstall. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `docs/UI.md` for the package is updated for the navigation contract and the Chat Settings paragraph. ## UI evidence (if applicable) None attached; the browser regression asserts the new states. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1634
No description provided.