[PR #1595] [MERGED] fix(long-term-memory): UI audit follow-ups for focus, results, narrow panels, long lists and warnings (1.4.86) #1597

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/ui-audit-follow-ups


📝 Commits (10+)

  • 34e8b81 fix(long-term-memory): return focus after actions and tie errors to their fields (#1588)
  • 4199589 fix(long-term-memory): show results next to the action that made them (#1588)
  • 30b1ac3 fix(long-term-memory): fit narrow panels and fingers (#1588)
  • ae8198b fix(long-term-memory): keep long lists and typing responsive (#1588)
  • f19cc1a fix(long-term-memory): give warnings a cue beyond color (#1588)
  • a89e06b fix(long-term-memory): bring the UI map up to date and snap the activation label (#1588)
  • 7211032 fix(long-term-memory): polish status surfaces and keep focus after clearing or adding (#1588)
  • 36d6df5 chore(long-term-memory): changelog for #1588
  • b83dcfc Merge upstream/staging into fix(long-term-memory)/ui-audit-follow-ups; release long-term-memory 1.4.86
  • f5f1b22 fix(long-term-memory): move Review focus on after a click that leaves the page focused (#1588)

📊 Changes

41 files changed (+2403 additions, -626 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.86.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 (+69 -30)
📝 packages/long-term-memory/docs/UI.md (+24 -9)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/AvailabilityTabRail.tsx (+57 -21)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+75 -28)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx (+9 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/Onboarding.tsx (+38 -8)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourceScopeCombobox.tsx (+77 -15)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+14 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ExtractionDetails.tsx (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/MutationEditor.tsx (+68 -96)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ReviewControls.tsx (+4 -2)

...and 21 more files

📄 Description

Pull request

Linked issue

Closes #1588

Why this change

  • The Long-Term Memory UI audit of 2026-10-22 found two kinds of problems. Its five P1s, where the keyboard or the screen gets stuck, shipped alone as #1584 (PR #1587, 1.4.85). This PR is the rest of the list. Focus gets lost after you act, and results show far from the button that made them. The layout follows the window instead of the panel Long-Term Memory sits in. Long lists redraw on every hover or keystroke. Warnings rely on color alone, and the UI docs describe behavior the client no longer has.
  • The fixes all touch the same Long-Term Memory client files, so seven separate PRs would conflict with each other and each need its own version bump and zip. This is one PR with one commit per item. Each item was implemented, tested, reviewed and repaired on its own (see "Bundle items" below).

What changed

  • long-term-memory 1.4.86. Client UI, docs/UI.md and 14 new English strings. No server, storage, setting or permission changes.
  1. Focus after actions, errors on their fields. After you accept or skip in Review, archive, undo or rename in the Memory Vault, remove a place chip, open a source action, step through or close the setup guide, save or discard settings, or show more Debug events, focus moves to the next sensible place instead of the page body. Busy buttons use aria-disabled with a guard, so they keep focus while they work. Field errors sit under their fields with aria-invalid and aria-describedby. Sources reports import failures under one status summary instead of one alert each. A failed save inside the unsaved-changes dialog now shows in the dialog.
  2. Results beside their action. The Reindex result shows under the health banner, and Maintenance results show under the section that ran them. A Review batch result stays until the next batch and no longer counts failed changes as pending. Review explains why Accept is off for an empty or too-long edit. Sources names a failed or partial import as such, announces the outcome through an always-mounted status line, labels the last task's outcome, explains why Import is off until a destination is chosen, and gives Manage source a Close button that returns focus.
  3. Narrow panels and fingers. Container queries replace the window media queries, so a narrow side panel on a wide window gets the phone layout. Below 48rem the Review and Sources batch bars stay pinned while you scroll, and a control you Tab to is scrolled out from under them. The Vault list and the Sources destination panel no longer cap themselves to the window height. Checkboxes, expand toggles, text links, the info buttons and Back get 44px hit areas.
  4. Responsive with long lists. Hovering Debug rows no longer re-renders the screen; the hover is plain CSS. Sources search waits until you pause typing for 250 ms and keeps the current rows, marked aria-busy, until the results arrive. Review builds a row's accept state only once its preflight is ready, so edits redraw less. Place pickers and destination lists show 100 places at a time with a Show more row. Measured at 4x CPU slowdown with a probe that was not committed: Sources typing went from 170 to 53 ms per keystroke, picker open from 1,358 to 60 ms, and picker typing from 147 to 7.5 ms.
  5. Warnings beyond color. Warning notices get a warning icon and the stronger editor border, set inline because the Engine's unlayered .mari-editor-panel border rule outranks utility classes. Warning chips in Sources get the strong border beside their label.
  6. UI docs and one off-scale label. docs/UI.md now matches the client: destinations are imported statically, onboarding Close records "complete", and Memory Settings has the Recall, Extraction, Maintenance and Debug tabs. A new Responsive Contract paragraph lists the container widths. The activation label moves from 0.8125rem to the Label role's 0.75rem.
  7. Polish. Full-size error notices now show their error border, set inline for the same reason as item 5. Notices with several lines or a button inside get vertical padding. Clearing the Vault or Debug search keeps the cursor in the search box. Creating a memory detail focuses its text box, and Cancel returns to "Create new memory detail".
  • Browser regression cases tagged #1588 in tests/long-term-memory-browser.regression.ts. The feedback-clarity-ui and loading source pins follow the moved code. CHANGELOG entry. Rebuilt the packages/long-term-memory client bundle, manifest, artifacts/long-term-memory-1.4.86.zip and catalog entries.

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. Return focus after actions and tie errors to their fields: 34e8b8146 fix(long-term-memory): return focus after actions and tie errors to their fields (#1588); f5f1b22f7 fix(long-term-memory): move Review focus on after a click that leaves the page focused
  2. Show results next to the action that made them: 4199589bf fix(long-term-memory): show results next to the action that made them; 4270e4f42 fix(long-term-memory): keep results, triggers and reasons with their own action
  3. Fit narrow panels and fingers: 30b1ac346 fix(long-term-memory): fit narrow panels and fingers
  4. Stop whole-screen re-renders on hover and typing: ae8198bf2 fix(long-term-memory): keep long lists and typing responsive
  5. Give warnings a cue beyond color: f19cc1ab9 fix(long-term-memory): give warnings a cue beyond color
  6. Bring the design docs up to date and fix one off-scale label: a89e06b07 fix(long-term-memory): bring the UI map up to date and snap the activation label
  7. Final polish pass: 721103240 fix(long-term-memory): polish status surfaces and keep focus after clearing or adding

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min is unchanged.
  • New or changed permissions/entrypoints: none.
  • Restart, storage, update, or uninstall impact: none. Client UI 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

  • Fail-first: each new browser case was run with its own fix removed (rebuilt, then test-ltm.sh browser). Every variant failed at its own assertion and passes with the fix: 11 for item 1, 12 for item 2, 16 for item 3, 6 for item 4, 3 for item 5 and 6 for item 7.
  • On each item commit: the package typecheck, format and lint, git diff --check, the feature build, the catalog-lane, locale, catalog and release-notes checks, and every CI-listed Long-Term Memory suite run one by one (31, plus the regression helpers) passed.
  • On the changelog commit 36d6df547 (the whole bundle): the same 40 checks passed. The host-styles guard reports 0 missing classes.
  • On the release commit b83dcfc5a (1.4.86, after merging staging, which only added blackjack and Gacha Forge changes): the rebuild is clean. Format and lint, git diff --check, the package typecheck, the catalog-lane, locale, catalog and release-notes checks, and the browser, installation, host-styles, feedback-clarity-ui, review-queue-ambiguous-link, loading, tab-keys, scope-targets, source-task and source-pagination suites pass. Hosted CI runs the full regression set.
  • Dottore Review repair: f5f1b22f7 (item 1) and 4270e4f42 (item 2, with the rebuilt 1.4.86 bundle, zip and catalog entries) fix the seven findings on b83dcfc5a. Each has a new browser case tagged #1588 that fails when only its own fix is undone. On 4270e4f42 the rebuild is clean and the same 19 checks pass.
  • Not installed through a running Engine; the installation suite installs the rebuilt archive.
  • The CHANGELOG entry is a shorter summary of the per-item notes above, because one release entry may hold at most 1,000 characters.
  • Known gaps, left out of this PR: the Vault place picker's clear button and the Debug memory-filter chip still lose focus when they disappear. Create detail silently ignores an empty or duplicate name. Maintenance and Reindex still use native disabled. Danger notices have no icon. In the default theme, the success tone uses the same pink accent as danger.

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 is updated (item 6, plus one Sources sentence on the 100-place lists and the search delay from item 4).

UI evidence (if applicable)

No screenshots in the PR. Screenshots were checked locally for items 3, 5 and 7. The browser cases measure the visible results: focus targets, computed borders and padding, sticky positions, hit-area sizes and list lengths.

🤖 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/1595 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/22/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/ui-audit-follow-ups` --- ### 📝 Commits (10+) - [`34e8b81`](https://github.com/Pasta-Devs/Marinara-Agents/commit/34e8b81463213a168c2844e7fd8952f6584cf8c5) fix(long-term-memory): return focus after actions and tie errors to their fields (#1588) - [`4199589`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4199589bf34d4513b5951d91dbab7ab7ad432b83) fix(long-term-memory): show results next to the action that made them (#1588) - [`30b1ac3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/30b1ac346684359eaf3e1f677ca2b613f4764594) fix(long-term-memory): fit narrow panels and fingers (#1588) - [`ae8198b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ae8198bf2200b90c8f7f33ed52ec9319baa0582a) fix(long-term-memory): keep long lists and typing responsive (#1588) - [`f19cc1a`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f19cc1ab901c25c78f49b33f5378ebb68f907efa) fix(long-term-memory): give warnings a cue beyond color (#1588) - [`a89e06b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a89e06b074eaa438636f0e2cf33b97352b4930fd) fix(long-term-memory): bring the UI map up to date and snap the activation label (#1588) - [`7211032`](https://github.com/Pasta-Devs/Marinara-Agents/commit/721103240844caf615211bfae7d72c4256df6978) fix(long-term-memory): polish status surfaces and keep focus after clearing or adding (#1588) - [`36d6df5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/36d6df547dddf03b414bcb0087cb837f5b6e9f88) chore(long-term-memory): changelog for #1588 - [`b83dcfc`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b83dcfc5a9e45ef9ef76b9c673488d6a67603d9c) Merge upstream/staging into fix(long-term-memory)/ui-audit-follow-ups; release long-term-memory 1.4.86 - [`f5f1b22`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f5f1b22f7a1fb1a68b2998bae534ef4c81057741) fix(long-term-memory): move Review focus on after a click that leaves the page focused (#1588) ### 📊 Changes **41 files changed** (+2403 additions, -626 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.86.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` (+69 -30) 📝 `packages/long-term-memory/docs/UI.md` (+24 -9) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/AvailabilityTabRail.tsx` (+57 -21) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+75 -28) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx` (+9 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/Onboarding.tsx` (+38 -8) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourceScopeCombobox.tsx` (+77 -15) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+14 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ExtractionDetails.tsx` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/MutationEditor.tsx` (+68 -96) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/review/ReviewControls.tsx` (+4 -2) _...and 21 more files_ </details> ### 📄 Description # Pull request ## Linked issue Closes #1588 ## Why this change - The Long-Term Memory UI audit of 2026-10-22 found two kinds of problems. Its five P1s, where the keyboard or the screen gets stuck, shipped alone as #1584 (PR #1587, 1.4.85). This PR is the rest of the list. Focus gets lost after you act, and results show far from the button that made them. The layout follows the window instead of the panel Long-Term Memory sits in. Long lists redraw on every hover or keystroke. Warnings rely on color alone, and the UI docs describe behavior the client no longer has. - The fixes all touch the same Long-Term Memory client files, so seven separate PRs would conflict with each other and each need its own version bump and zip. This is one PR with one commit per item. Each item was implemented, tested, reviewed and repaired on its own (see "Bundle items" below). ## What changed - `long-term-memory` 1.4.86. Client UI, `docs/UI.md` and 14 new English strings. No server, storage, setting or permission changes. 1. **Focus after actions, errors on their fields.** After you accept or skip in Review, archive, undo or rename in the Memory Vault, remove a place chip, open a source action, step through or close the setup guide, save or discard settings, or show more Debug events, focus moves to the next sensible place instead of the page body. Busy buttons use `aria-disabled` with a guard, so they keep focus while they work. Field errors sit under their fields with `aria-invalid` and `aria-describedby`. Sources reports import failures under one status summary instead of one alert each. A failed save inside the unsaved-changes dialog now shows in the dialog. 2. **Results beside their action.** The Reindex result shows under the health banner, and Maintenance results show under the section that ran them. A Review batch result stays until the next batch and no longer counts failed changes as pending. Review explains why Accept is off for an empty or too-long edit. Sources names a failed or partial import as such, announces the outcome through an always-mounted status line, labels the last task's outcome, explains why Import is off until a destination is chosen, and gives Manage source a Close button that returns focus. 3. **Narrow panels and fingers.** Container queries replace the window media queries, so a narrow side panel on a wide window gets the phone layout. Below 48rem the Review and Sources batch bars stay pinned while you scroll, and a control you Tab to is scrolled out from under them. The Vault list and the Sources destination panel no longer cap themselves to the window height. Checkboxes, expand toggles, text links, the info buttons and Back get 44px hit areas. 4. **Responsive with long lists.** Hovering Debug rows no longer re-renders the screen; the hover is plain CSS. Sources search waits until you pause typing for 250 ms and keeps the current rows, marked `aria-busy`, until the results arrive. Review builds a row's accept state only once its preflight is ready, so edits redraw less. Place pickers and destination lists show 100 places at a time with a Show more row. Measured at 4x CPU slowdown with a probe that was not committed: Sources typing went from 170 to 53 ms per keystroke, picker open from 1,358 to 60 ms, and picker typing from 147 to 7.5 ms. 5. **Warnings beyond color.** Warning notices get a warning icon and the stronger editor border, set inline because the Engine's unlayered `.mari-editor-panel` border rule outranks utility classes. Warning chips in Sources get the strong border beside their label. 6. **UI docs and one off-scale label.** `docs/UI.md` now matches the client: destinations are imported statically, onboarding Close records "complete", and Memory Settings has the Recall, Extraction, Maintenance and Debug tabs. A new Responsive Contract paragraph lists the container widths. The activation label moves from 0.8125rem to the Label role's 0.75rem. 7. **Polish.** Full-size error notices now show their error border, set inline for the same reason as item 5. Notices with several lines or a button inside get vertical padding. Clearing the Vault or Debug search keeps the cursor in the search box. Creating a memory detail focuses its text box, and Cancel returns to "Create new memory detail". - Browser regression cases tagged #1588 in `tests/long-term-memory-browser.regression.ts`. The feedback-clarity-ui and loading source pins follow the moved code. CHANGELOG entry. Rebuilt the `packages/long-term-memory` client bundle, manifest, `artifacts/long-term-memory-1.4.86.zip` and catalog entries. ## 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. Return focus after actions and tie errors to their fields: 34e8b8146 fix(long-term-memory): return focus after actions and tie errors to their fields (#1588); f5f1b22f7 fix(long-term-memory): move Review focus on after a click that leaves the page focused 2. Show results next to the action that made them: 4199589bf fix(long-term-memory): show results next to the action that made them; 4270e4f42 fix(long-term-memory): keep results, triggers and reasons with their own action 3. Fit narrow panels and fingers: 30b1ac346 fix(long-term-memory): fit narrow panels and fingers 4. Stop whole-screen re-renders on hover and typing: ae8198bf2 fix(long-term-memory): keep long lists and typing responsive 5. Give warnings a cue beyond color: f19cc1ab9 fix(long-term-memory): give warnings a cue beyond color 6. Bring the design docs up to date and fix one off-scale label: a89e06b07 fix(long-term-memory): bring the UI map up to date and snap the activation label 7. Final polish pass: 721103240 fix(long-term-memory): polish status surfaces and keep focus after clearing or adding ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` is unchanged. - New or changed permissions/entrypoints: none. - Restart, storage, update, or uninstall impact: none. Client UI 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 - Fail-first: each new browser case was run with its own fix removed (rebuilt, then `test-ltm.sh browser`). Every variant failed at its own assertion and passes with the fix: 11 for item 1, 12 for item 2, 16 for item 3, 6 for item 4, 3 for item 5 and 6 for item 7. - On each item commit: the package typecheck, format and lint, `git diff --check`, the feature build, the catalog-lane, locale, catalog and release-notes checks, and every CI-listed Long-Term Memory suite run one by one (31, plus the regression helpers) passed. - On the changelog commit 36d6df547 (the whole bundle): the same 40 checks passed. The host-styles guard reports 0 missing classes. - On the release commit b83dcfc5a (1.4.86, after merging staging, which only added blackjack and Gacha Forge changes): the rebuild is clean. Format and lint, `git diff --check`, the package typecheck, the catalog-lane, locale, catalog and release-notes checks, and the browser, installation, host-styles, feedback-clarity-ui, review-queue-ambiguous-link, loading, tab-keys, scope-targets, source-task and source-pagination suites pass. Hosted CI runs the full regression set. - Dottore Review repair: f5f1b22f7 (item 1) and 4270e4f42 (item 2, with the rebuilt 1.4.86 bundle, zip and catalog entries) fix the seven findings on b83dcfc5a. Each has a new browser case tagged #1588 that fails when only its own fix is undone. On 4270e4f42 the rebuild is clean and the same 19 checks pass. - Not installed through a running Engine; the installation suite installs the rebuilt archive. - The CHANGELOG entry is a shorter summary of the per-item notes above, because one release entry may hold at most 1,000 characters. - Known gaps, left out of this PR: the Vault place picker's clear button and the Debug memory-filter chip still lose focus when they disappear. Create detail silently ignores an empty or duplicate name. Maintenance and Reindex still use native `disabled`. Danger notices have no icon. In the default theme, the success tone uses the same pink accent as danger. ## 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` is updated (item 6, plus one Sources sentence on the 100-place lists and the search delay from item 4). ## UI evidence (if applicable) No screenshots in the PR. Screenshots were checked locally for items 3, 5 and 7. The browser cases measure the visible results: focus targets, computed borders and padding, sticky positions, hit-area sizes and list lengths. 🤖 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-24 04:02:30 +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#1597
No description provided.