[PR #1687] [MERGED] fix(long-term-memory): UI audit follow-up fixes (1.4.93) #1674

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/ltm-audit-followup


📝 Commits (10+)

  • e6247b2 fix(long-term-memory): keep temporary locks reachable
  • 72a0f36 fix(long-term-memory): follow the panel width instead of the window (#1673)
  • 33d80db fix(long-term-memory): raise the text-style retries to the touch floor (#1673)
  • 7226572 perf(long-term-memory): stop rebuilding row text and the Vault search index per keystroke (#1673)
  • bf5882a test(long-term-memory): browser-prove temporary locks stay reachable
  • 9092bac fix(long-term-memory): close container-width and viewport-cap gaps
  • f489c90 fix(long-term-memory): reference the import lock note only while a run is active
  • e77dd7a fix(long-term-memory): document the compact header and loosen layout pins
  • 46f1fe9 test(long-term-memory): guard every underlined button and browser-prove two retries
  • 20c0770 fix(long-term-memory): theme the activation knob shadow and record the success contrast (#1673)

📊 Changes

24 files changed (+583 additions, -167 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.93.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 (+8 -0)
📝 packages/long-term-memory/client.js (+72 -30)
📝 packages/long-term-memory/docs/UI.md (+13 -1)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+22 -5)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/Onboarding.tsx (+9 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ReviewQueue.tsx (+42 -28)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ActivityView.tsx (+14 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ExtractionPromptTemplates.tsx (+6 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx (+5 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx (+19 -5)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx (+10 -5)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx (+34 -17)

...and 4 more files

📄 Description

Linked issue

Closes #1673

Why this change

The follow-up UI audit of Long-Term Memory found five gaps left after 1.4.92:

  • Locked Review and Sources controls dropped keyboard focus, so their reason could not be reached.
  • Memory Settings, the activation switch and the setup guide switched layout on the window width, not the panel width.
  • The Vault and Debug lists overflowed on zoomed or short screens.
  • Some text-style retry and reset buttons were under the 2.75rem touch floor.
  • Typing in Review and the Vault rebuilt every row's text and the whole search index on each keystroke.
  • One raw black shadow ignored the theme, and the success colour's contrast claim was unmeasured.

They touch the same package and mostly the same files, so they ship as one bundle and one version bump.

What changed

  • Locks (item 1): while work is running, Review and Sources controls use aria-disabled with a guarded handler instead of native disabled. They stay focusable and point at the lock reason. The Sources import note is referenced only while an import actually runs.

  • Container layout (item 2): sm:/md: and the onboarding media query became container queries (ltm-memory-settings 40rem, ltm-detail 40rem/48rem, a new ltm-onboarding container at 40rem/48rem). The add action keeps its 2.75rem target at every width. The Vault and Debug caps are calc(100vh - 12rem) with a max(10rem, calc(100dvh - 12rem)) override, and the Debug cap moved from an inline style to a [data-ltm-debug-list] rule.

  • Touch (item 3): the remaining underlined text buttons in Memory Settings and the prompt templates are at least min-h-11. A static guard now scans every package file for an underlined button without that floor.

  • Typing (item 4): Review row text and the Vault search index are memoised, so they rebuild when their data changes, not on every keystroke.

  • Theme (item 5):

    - box-shadow: 0 1px 2px color-mix(in srgb, #000 25%, transparent);
    + box-shadow: 0 1px 2px var(--marinara-editor-border-strong);
    

    --ltm-success is unchanged. Its contrast was measured against the Engine's real globals.css and recorded beside the token and in docs/UI.md.

    Theme At :root Inside the inline editor
    Light 10.08:1 10.03:1
    Dark 9.52:1 9.07:1
  • Package: long-term-memory 1.4.92 → 1.4.93. The changes are in client source, tests/long-term-memory-browser.regression.ts, tests/long-term-memory-feedback-clarity-ui.regression.mjs, docs/UI.md and the CHANGELOG. The generated outputs were rebuilt: client.js, the manifest, artifacts/long-term-memory-1.4.93.zip and the catalogs.

Notes for review

These are deliberate. Please flag them only if you disagree with the choice.

  • 10rem floor (deviates from the item text). The audit asked to drop the Vault's list floor. I replaced the old 20rem floor with a 10rem one. Without any floor, a landscape phone or a 300% zoom leaves 100dvh - 12rem near zero, and the list collapses to a sliver.
  • Review Accept has no linked reason when it's locked because the draft is ineligible or its check is blocked. The check text renders only in the expanded row, and ineligibility has no text at all. A reference would therefore point at nothing, or need a new reason string, which item 1 ruled out. The row's Ready/Blocked chip and state still show why. This is left as a follow-up.
  • The dvh rule is guarded only by the static suite. Headless Chromium reads vh and dvh alike, so a browser check can't tell them apart.
  • Fourth retry control. The load-error Retry in settings/MemorySettings.tsx was raised along with the three the audit listed, because it has the same text-style shape.
  • Named exception. LastInjectionSummary's compact min-h-6 link is the one named exception to the touch-floor guard.
  • Naming. The audit's "Clear" in ExtractionPromptTemplates is the "Reset to default" button. The browser suite measures every Reset to default.
  • Dropped assertion. A wide-layout assertion for the Vault health pill was dropped. The pill renders only when health is not healthy, so the fixture never shows it.
  • Contrast scope. Contrast was measured in the default Engine themes only. Custom visual themes and the compact StatusSurface (--background at 75%) were not measured. The accent-tinted shadow is softer than the old black, and nobody has looked at it on a light track yet.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (engine.min stays 2.4.1)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: client-only UI changes; no storage, server or route changes

Merge danger

Door: two-way. This is client-only CSS and React with no stored-data or server changes, so a revert restores 1.4.92 behaviour.

Blast radius: layout. If a container threshold or the list cap is wrong, it shows up as a cramped or over-tall LTM panel, not as lost data.

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 the release head, after rebuilding the package against Marinara Engine 81f0896d3. These are not human checks:

  • LTM suites feedback-clarity-ui, host-styles (5918 host classes, 0 missing), review-queue-ambiguous-link and browser (onboarding, review, availability, re-extraction, mobile, loading) pass.
  • npm run typecheck:packages and npm run check pass.
  • validate-package-locales.mjs, validate-catalog.mjs, test-catalog-lanes.mjs and catalog-release-notes.regression.mjs pass.

Not done: an install or update through a running Engine, and a visual check of the new shadow.

Documentation impact

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

packages/long-term-memory/docs/UI.md records the container thresholds, the list cap and floor, and the measured success contrast.

UI evidence (if applicable)

No screenshots. The browser suite measures the touch targets, the lock focus and the container layout.

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. Temporary locks keep their reason reachable: e6247b233 fix(long-term-memory): keep temporary locks reachable; bf5882a6d test(long-term-memory): browser-prove temporary locks stay reachable; f489c9029 fix(long-term-memory): reference the import lock note only while a run is active
  2. Container width decides layout, not the window: 72a0f3695 fix(long-term-memory): follow the panel width instead of the window (#1673); 9092bac75 fix(long-term-memory): close container-width and viewport-cap gaps; e77dd7a7e fix(long-term-memory): document the compact header and loosen layout pins
  3. The last text-style buttons reach the touch floor: 33d80db93 fix(long-term-memory): raise the text-style retries to the touch floor (#1673); 46f1fe9ba test(long-term-memory): guard every underlined button and browser-prove two retries
  4. Stop re-deriving row text and the Vault search index on every keystroke: 722657201 perf(long-term-memory): stop rebuilding row text and the Vault search index per keystroke (#1673)
  5. One token shadow, and measure the success colour: 20c077008 fix(long-term-memory): theme the activation knob shadow and record the success contrast (#1673)

🤖 Generated with Claude Code


🔄 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/1687 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/25/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/ltm-audit-followup` --- ### 📝 Commits (10+) - [`e6247b2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e6247b233037843c2d89dd8647598e02d55c6f9e) fix(long-term-memory): keep temporary locks reachable - [`72a0f36`](https://github.com/Pasta-Devs/Marinara-Agents/commit/72a0f36954a0adfc60f607bc853258133784206a) fix(long-term-memory): follow the panel width instead of the window (#1673) - [`33d80db`](https://github.com/Pasta-Devs/Marinara-Agents/commit/33d80db931ca1c73bf3218b721fe5514bd1104ba) fix(long-term-memory): raise the text-style retries to the touch floor (#1673) - [`7226572`](https://github.com/Pasta-Devs/Marinara-Agents/commit/722657201fb7907853a3ecc0fc5fa9a9fb22e69c) perf(long-term-memory): stop rebuilding row text and the Vault search index per keystroke (#1673) - [`bf5882a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bf5882a6d6a79a9691d7ec2264474bf0dfc14a7e) test(long-term-memory): browser-prove temporary locks stay reachable - [`9092bac`](https://github.com/Pasta-Devs/Marinara-Agents/commit/9092bac7575236de0ebd5a709c050a017fcfa86f) fix(long-term-memory): close container-width and viewport-cap gaps - [`f489c90`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f489c9029d59dbb01cbefad31332d6d51999df62) fix(long-term-memory): reference the import lock note only while a run is active - [`e77dd7a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e77dd7a7e6efb1b7983edb7fe360dd5554eac5c9) fix(long-term-memory): document the compact header and loosen layout pins - [`46f1fe9`](https://github.com/Pasta-Devs/Marinara-Agents/commit/46f1fe9baa5bb651caf7e7ffc9122a09c25bb5ed) test(long-term-memory): guard every underlined button and browser-prove two retries - [`20c0770`](https://github.com/Pasta-Devs/Marinara-Agents/commit/20c077008c46d995784e80db046dc88f132dc58e) fix(long-term-memory): theme the activation knob shadow and record the success contrast (#1673) ### 📊 Changes **24 files changed** (+583 additions, -167 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.93.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` (+8 -0) 📝 `packages/long-term-memory/client.js` (+72 -30) 📝 `packages/long-term-memory/docs/UI.md` (+13 -1) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+22 -5) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/Onboarding.tsx` (+9 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ReviewQueue.tsx` (+42 -28) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ActivityView.tsx` (+14 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/ExtractionPromptTemplates.tsx` (+6 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MaintenancePanel.tsx` (+5 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/settings/MemorySettings.tsx` (+19 -5) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx` (+10 -5) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx` (+34 -17) _...and 4 more files_ </details> ### 📄 Description ## Linked issue Closes #1673 ## Why this change The follow-up UI audit of Long-Term Memory found five gaps left after 1.4.92: - Locked Review and Sources controls dropped keyboard focus, so their reason could not be reached. - Memory Settings, the activation switch and the setup guide switched layout on the window width, not the panel width. - The Vault and Debug lists overflowed on zoomed or short screens. - Some text-style retry and reset buttons were under the 2.75rem touch floor. - Typing in Review and the Vault rebuilt every row's text and the whole search index on each keystroke. - One raw black shadow ignored the theme, and the success colour's contrast claim was unmeasured. They touch the same package and mostly the same files, so they ship as one bundle and one version bump. ## What changed - **Locks (item 1):** while work is running, Review and Sources controls use `aria-disabled` with a guarded handler instead of native `disabled`. They stay focusable and point at the lock reason. The Sources import note is referenced only while an import actually runs. - **Container layout (item 2):** `sm:`/`md:` and the onboarding media query became container queries (`ltm-memory-settings` 40rem, `ltm-detail` 40rem/48rem, a new `ltm-onboarding` container at 40rem/48rem). The add action keeps its 2.75rem target at every width. The Vault and Debug caps are `calc(100vh - 12rem)` with a `max(10rem, calc(100dvh - 12rem))` override, and the Debug cap moved from an inline style to a `[data-ltm-debug-list]` rule. - **Touch (item 3):** the remaining underlined text buttons in Memory Settings and the prompt templates are at least `min-h-11`. A static guard now scans every package file for an underlined button without that floor. - **Typing (item 4):** Review row text and the Vault search index are memoised, so they rebuild when their data changes, not on every keystroke. - **Theme (item 5):** ```diff - box-shadow: 0 1px 2px color-mix(in srgb, #000 25%, transparent); + box-shadow: 0 1px 2px var(--marinara-editor-border-strong); ``` `--ltm-success` is unchanged. Its contrast was measured against the Engine's real `globals.css` and recorded beside the token and in `docs/UI.md`. | Theme | At `:root` | Inside the inline editor | | --- | --- | --- | | Light | 10.08:1 | 10.03:1 | | Dark | 9.52:1 | 9.07:1 | - **Package:** long-term-memory 1.4.92 → 1.4.93. The changes are in client source, `tests/long-term-memory-browser.regression.ts`, `tests/long-term-memory-feedback-clarity-ui.regression.mjs`, `docs/UI.md` and the CHANGELOG. The generated outputs were rebuilt: `client.js`, the manifest, `artifacts/long-term-memory-1.4.93.zip` and the catalogs. ### Notes for review These are deliberate. Please flag them only if you disagree with the choice. - **10rem floor (deviates from the item text).** The audit asked to drop the Vault's list floor. I replaced the old 20rem floor with a 10rem one. Without any floor, a landscape phone or a 300% zoom leaves `100dvh - 12rem` near zero, and the list collapses to a sliver. - **Review Accept has no linked reason when it's locked because the draft is ineligible or its check is blocked.** The check text renders only in the expanded row, and ineligibility has no text at all. A reference would therefore point at nothing, or need a new reason string, which item 1 ruled out. The row's Ready/Blocked chip and state still show why. This is left as a follow-up. - **The `dvh` rule is guarded only by the static suite.** Headless Chromium reads `vh` and `dvh` alike, so a browser check can't tell them apart. - **Fourth retry control.** The load-error Retry in `settings/MemorySettings.tsx` was raised along with the three the audit listed, because it has the same text-style shape. - **Named exception.** `LastInjectionSummary`'s compact `min-h-6` link is the one named exception to the touch-floor guard. - **Naming.** The audit's "Clear" in `ExtractionPromptTemplates` is the "Reset to default" button. The browser suite measures every Reset to default. - **Dropped assertion.** A wide-layout assertion for the Vault health pill was dropped. The pill renders only when health is not healthy, so the fixture never shows it. - **Contrast scope.** Contrast was measured in the default Engine themes only. Custom visual themes and the compact `StatusSurface` (`--background` at 75%) were not measured. The accent-tinted shadow is softer than the old black, and nobody has looked at it on a light track yet. ## Package and security impact - Affected package IDs: long-term-memory - Engine compatibility impact: none (`engine.min` stays 2.4.1) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: client-only UI changes; no storage, server or route changes ## Merge danger **Door:** two-way. This is client-only CSS and React with no stored-data or server changes, so a revert restores 1.4.92 behaviour. **Blast radius:** layout. If a container threshold or the list cap is wrong, it shows up as a cramped or over-tall LTM panel, not as lost data. ## 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 the release head, after rebuilding the package against Marinara Engine `81f0896d3`. These are not human checks: - LTM suites `feedback-clarity-ui`, `host-styles` (5918 host classes, 0 missing), `review-queue-ambiguous-link` and `browser` (onboarding, review, availability, re-extraction, mobile, loading) pass. - `npm run typecheck:packages` and `npm run check` pass. - `validate-package-locales.mjs`, `validate-catalog.mjs`, `test-catalog-lanes.mjs` and `catalog-release-notes.regression.mjs` pass. Not done: an install or update through a running Engine, and a visual check of the new shadow. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation `packages/long-term-memory/docs/UI.md` records the container thresholds, the list cap and floor, and the measured success contrast. ## UI evidence (if applicable) No screenshots. The browser suite measures the touch targets, the lock focus and the container layout. ## 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. Temporary locks keep their reason reachable: e6247b233 fix(long-term-memory): keep temporary locks reachable; bf5882a6d test(long-term-memory): browser-prove temporary locks stay reachable; f489c9029 fix(long-term-memory): reference the import lock note only while a run is active 2. Container width decides layout, not the window: 72a0f3695 fix(long-term-memory): follow the panel width instead of the window (#1673); 9092bac75 fix(long-term-memory): close container-width and viewport-cap gaps; e77dd7a7e fix(long-term-memory): document the compact header and loosen layout pins 3. The last text-style buttons reach the touch floor: 33d80db93 fix(long-term-memory): raise the text-style retries to the touch floor (#1673); 46f1fe9ba test(long-term-memory): guard every underlined button and browser-prove two retries 4. Stop re-deriving row text and the Vault search index on every keystroke: 722657201 perf(long-term-memory): stop rebuilding row text and the Vault search index per keystroke (#1673) 5. One token shadow, and measure the success colour: 20c077008 fix(long-term-memory): theme the activation knob shadow and record the success contrast (#1673) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-26 04:02:39 +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#1674
No description provided.