[GH-ISSUE #1451] [Issue]: Long-Term Memory: focus outline and accent border classes are not served by Engine 2.4.1 #737

Closed
opened 2026-10-20 17:30:13 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @Promansis on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1451

Originally assigned to: @Promansis on GitHub.

Summary

Long-Term Memory ships no stylesheet, so every utility class it uses must be generated by the Engine's own stylesheet. Two class strings the client still uses are not generated by Engine 2.4.1, the package's engine.min: the focus outline on ten disclosure rows and buttons, and the 30 % accent border on three status chips. On a supported Engine those elements have no visible focus ring and a full-strength border. (Tracker item UI-3; left open by the #1374 review.)

Affected package

long-term-memory 1.4.48 (upstream/staging 1f7954305), engine.min 2.4.1.

  • C = packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory

Expected behavior

Every class the client uses is served by every Engine in the manifest's range. Keyboard focus on the Vault, availability, destination and Activity disclosure rows shows the same ring the tab rails show. Status chips keep their soft accent border.

Actual behavior

Occurrences in the Engine source, which is what its Tailwind build generates from (git grep in the Engine repository):

Class v2.4.1 v2.4.6 v2.5.0
focus-visible:outline-[var(--ring)] 0 0 1
focus-visible:outline-2 0
border-[var(--marinara-editor-accent)]/30 0 1 1
border-[var(--marinara-editor-accent)], text-[var(--marinara-editor-accent)], --ring, --marinara-editor-focus-ring present

Sites at 1f7954305:

  • focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--ring)] (10): C/vault/MemoryVault.tsx:2516, :3161, :3262, :3286, :3394, :3432; C/vault/BulkAvailabilityWorkbench.tsx:258; C/vault/MemoryAvailabilityWorkbench.tsx:253; C/sources/DestinationScopePanel.tsx:218; C/settings/ActivityView.tsx:1853.
  • border-[var(--marinara-editor-accent)]/30 (3): C/shared-controls.tsx:325 (the success tone of StatusSurface), C/review/ReviewQueue.tsx:112 (freshnessClass), C/vault/MemoryVault.tsx:2841 ("Edited manually" chip).

The host-styles guard (tests/long-term-memory-host-styles.regression.ts) compiles against one Engine checkout, the local 2.5.0, so it passes and cannot see this.

Steps to reproduce

  1. Run Engine 2.4.1 with the package installed.
  2. In the Vault, Tab to a collapsed section header (a <summary>): no focus ring. The tab rails above it do show one.
  3. Open a memory with a manual edit: the "Edited manually" chip has a full-strength accent border instead of a soft one.

Minimal fix

One PR, patch bump. Follow #1374's pattern: a data attribute and a plain rule in the screen's existing <style> block, not a new class.

  1. Focus (10 sites): delete the three focus-visible:* classes and add data-ltm-tab-focus to each element. The rule already exists in C/LongTermMemoryDetail.tsx:443-445 ([data-ltm-tab-focus]:focus-visible { outline: 2px solid var(--marinara-editor-focus-ring); }) and <style> rules apply document-wide, so no new rule is needed. If the name reads wrong on a non-tab element, rename the attribute at all 15 sites in the same PR, not a second attribute.
  2. Accent border (3 sites): one rule in the same <style> block, [data-ltm-accent-border] { border-color: color-mix(in srgb, var(--marinara-editor-accent) 30%, transparent); } (what Tailwind generates for /30), and the attribute on the three elements in place of the class. StatusSurface already sets data-ltm-status={tone} (shared-controls.tsx:333), so it can match [data-ltm-status="success"] instead of a second attribute. Keep text-[var(--marinara-editor-accent)], which 2.4.1 serves.
  3. Leave engine.min alone; this is the maintainer's call and raising it would not fix installs that already run 2.4.x.

CHANGELOG under ## Unreleased: one bullet, that focus rings and status chip borders now show on every supported Engine version.

Not included

  • Making the host-styles guard compile against the engine.min tag as well. It would need a second Engine checkout in CI; note it in the PR as a follow-up, do not build it here.

Regression proof

  • grep for the two class strings in C/ returns nothing after the change; add that assertion to tests/long-term-memory-host-styles.regression.ts (the only guard that can see an engine.min gap) as a list of class strings known to be absent at engine.min.
  • tests/long-term-memory-host-styles.regression.ts still passes against the local 2.5.0 Engine.
  • tests/long-term-memory-browser.regression.ts passes; its focus assertions on the rails are unchanged.
  • Also run feedback-clarity-ui.

Environment

  • Marinara Engine version: 2.4.1 (engine.min); classes checked at tags v2.4.1, v2.4.6, v2.5.0
  • Package version: long-term-memory 1.4.48 (upstream/staging 1f7954305)
  • Install type: source (code audit)
  • OS + version: not platform-specific
  • Browser or app shell: any

Logs, screenshots, or video

None. Found by the #1374 delta review (finding M1, and the accent border left unfixed) and confirmed by git grep across Engine tags on 2026-10-18.

Additional context

Tracker item UI-3. Follow-up to #1374. Shares no source file with the other batch-1 issues.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1451 Originally assigned to: @Promansis on GitHub. ## Summary Long-Term Memory ships no stylesheet, so every utility class it uses must be generated by the Engine's own stylesheet. Two class strings the client still uses are not generated by Engine 2.4.1, the package's `engine.min`: the focus outline on ten disclosure rows and buttons, and the 30 % accent border on three status chips. On a supported Engine those elements have no visible focus ring and a full-strength border. (Tracker item UI-3; left open by the #1374 review.) ## Affected package `long-term-memory` 1.4.48 (`upstream/staging` 1f7954305), `engine.min` 2.4.1. - `C` = `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory` ## Expected behavior Every class the client uses is served by every Engine in the manifest's range. Keyboard focus on the Vault, availability, destination and Activity disclosure rows shows the same ring the tab rails show. Status chips keep their soft accent border. ## Actual behavior Occurrences in the Engine source, which is what its Tailwind build generates from (`git grep` in the Engine repository): | Class | v2.4.1 | v2.4.6 | v2.5.0 | |---|---:|---:|---:| | `focus-visible:outline-[var(--ring)]` | 0 | 0 | 1 | | `focus-visible:outline-2` | 0 | | | | `border-[var(--marinara-editor-accent)]/30` | 0 | 1 | 1 | | `border-[var(--marinara-editor-accent)]`, `text-[var(--marinara-editor-accent)]`, `--ring`, `--marinara-editor-focus-ring` | present | | | Sites at 1f7954305: - `focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--ring)]` (10): `C/vault/MemoryVault.tsx:2516`, `:3161`, `:3262`, `:3286`, `:3394`, `:3432`; `C/vault/BulkAvailabilityWorkbench.tsx:258`; `C/vault/MemoryAvailabilityWorkbench.tsx:253`; `C/sources/DestinationScopePanel.tsx:218`; `C/settings/ActivityView.tsx:1853`. - `border-[var(--marinara-editor-accent)]/30` (3): `C/shared-controls.tsx:325` (the `success` tone of `StatusSurface`), `C/review/ReviewQueue.tsx:112` (`freshnessClass`), `C/vault/MemoryVault.tsx:2841` ("Edited manually" chip). The host-styles guard (`tests/long-term-memory-host-styles.regression.ts`) compiles against one Engine checkout, the local 2.5.0, so it passes and cannot see this. ## Steps to reproduce 1. Run Engine 2.4.1 with the package installed. 2. In the Vault, Tab to a collapsed section header (a `<summary>`): no focus ring. The tab rails above it do show one. 3. Open a memory with a manual edit: the "Edited manually" chip has a full-strength accent border instead of a soft one. ## Minimal fix One PR, patch bump. Follow #1374's pattern: a data attribute and a plain rule in the screen's existing `<style>` block, not a new class. 1. **Focus (10 sites)**: delete the three `focus-visible:*` classes and add `data-ltm-tab-focus` to each element. The rule already exists in `C/LongTermMemoryDetail.tsx:443-445` (`[data-ltm-tab-focus]:focus-visible { outline: 2px solid var(--marinara-editor-focus-ring); }`) and `<style>` rules apply document-wide, so no new rule is needed. If the name reads wrong on a non-tab element, rename the attribute at all 15 sites in the same PR, not a second attribute. 2. **Accent border (3 sites)**: one rule in the same `<style>` block, `[data-ltm-accent-border] { border-color: color-mix(in srgb, var(--marinara-editor-accent) 30%, transparent); }` (what Tailwind generates for `/30`), and the attribute on the three elements in place of the class. `StatusSurface` already sets `data-ltm-status={tone}` (`shared-controls.tsx:333`), so it can match `[data-ltm-status="success"]` instead of a second attribute. Keep `text-[var(--marinara-editor-accent)]`, which 2.4.1 serves. 3. Leave `engine.min` alone; this is the maintainer's call and raising it would not fix installs that already run 2.4.x. **CHANGELOG under `## Unreleased`**: one bullet, that focus rings and status chip borders now show on every supported Engine version. **Not included** - Making the host-styles guard compile against the `engine.min` tag as well. It would need a second Engine checkout in CI; note it in the PR as a follow-up, do not build it here. ## Regression proof - `grep` for the two class strings in `C/` returns nothing after the change; add that assertion to `tests/long-term-memory-host-styles.regression.ts` (the only guard that can see an `engine.min` gap) as a list of class strings known to be absent at `engine.min`. - `tests/long-term-memory-host-styles.regression.ts` still passes against the local 2.5.0 Engine. - `tests/long-term-memory-browser.regression.ts` passes; its focus assertions on the rails are unchanged. - Also run `feedback-clarity-ui`. ## Environment - Marinara Engine version: 2.4.1 (engine.min); classes checked at tags v2.4.1, v2.4.6, v2.5.0 - Package version: long-term-memory 1.4.48 (`upstream/staging` 1f7954305) - Install type: source (code audit) - OS + version: not platform-specific - Browser or app shell: any ## Logs, screenshots, or video None. Found by the #1374 delta review (finding M1, and the accent border left unfixed) and confirmed by `git grep` across Engine tags on 2026-10-18. ## Additional context Tracker item UI-3. Follow-up to #1374. Shares no source file with the other batch-1 issues. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-20 17:30:13 +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#737
No description provided.