mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1323] [Issue]: Long-Term Memory Debug: selected event isn't visible, plus 1.4.20 follow-ups #675
Labels
No labels
agent: chess
agent: conversation-calls
agent: eightball
agent: haptic
agent: hierarchical-maps
agent: hierarchical-maps
agent: illustrator
agent: poker
agent: rock-paper-scissors
agent: tic-tac-toe
agent: uno
artifacts
bug
bugfix
build
catalog
ci
client
dependencies
docs
documentation
enhancement
feature
fixed-in-staging
in-pr
normal-scope
packages
pull-request
qol
regression
roadmap
scope-risk
server
soup
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Agents#675
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Promansis on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1323
Originally assigned to: @Promansis on GitHub.
Summary
In the rebuilt Debug tab you can't see which event is selected. The only row highlight comes from mouse hover, and the active filter chip looks like the others. A review of 1.4.20 also found smaller problems:
Two small audit leftovers remain (D20, D24). None of this changed in 1.4.21–1.4.24. This is the last Debug follow-up after #1275.
Affected package
long-term-memory1.4.24: Memory Settings → Debug, the Vault memory's "Open debug log" link, and one Chat Settings message.Expected behavior
Selected event (P2). The open event's row stays visibly selected (background and an accent bar) wherever the pointer is. It is still marked when you go back to Events on a phone. The active chip looks pressed. Muted text on hovered and selected rows meets 4.5:1 contrast.
Rows show the outcome. A row's second line is the outcome in a few words, taken from the counts already logged:
A failed row keeps its error message, clamped to two lines. A row with warnings shows its outcome when it has one (the icon already marks the warning), otherwise the warning message. A row with neither shows no second line. Nothing reads "{action}: {status}.", and timeline steps don't repeat it either.
The warning callout says what happened. For a compile-evidence warning, that is "4 candidates failed checks; see Not kept.", not "Compile evidence: Warning.".
Result wording. Counts use the right plural ("1 duplicate", "1 change"), and "kept units" reads "kept".
Applied changes. Result shows how many changes were saved and skipped. "Not saved" shows a count such as "1 change skipped". Raw IDs only appear in Copy JSON.
Sections in the details pane render only when they have content, so there is no empty "Details" heading.
Recall details don't repeat the Result counts or the used-token count under "Details".
The health line no longer shows "Log size unavailable". The client has no debug-log size; adding one to
/statuswould be a separate server change.The Vault "Open debug log" link has a 44 px target.
"The latest recall failed. Check debug activity for details." names the real place: Memory Settings → Debug. The unused keys
activityview.debugActivityandactivityview.value1Msare removed.Actual behavior
Paths are under
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/. Line numbers are atstaginga6cefea4, where these files are unchanged since 1.4.20.hover:styling (ActivityView.tsx:1436). Selection isaria-pressedwith no visual state. The chips (:1373-1379) useButtonwitharia-pressed, and Engine 2.4.1 has no.mari-editor-action[aria-pressed]style. In the attached screenshot, the details pane shows "Apply changes" while an "AI extraction" row is highlighted, because the pointer is over it. axe (dark theme, desktop, pointer left on the selected recall row) reportscolor-contraston 2 nodes: the muted subject and summary text in that row.describeEventfalls back to"{action}: {humanizeLabel(status)}."(:168-171), and the row summary uses it (:1421-1427). Rows read "AI extraction · Legacy global memory / AI extraction: Ok.", "Deferred draft / Deferred draft: Ok." and "Memory recall / Memory recall: Ok.". Long problem messages wrap to four or five lines in the 20rem list.counts.candidateRejectionDiagnostics > 0(source-extraction.ts:688), and the callout doesn't say so.extractionCountsis one fixed sentence with no singular forms (:931).11111111-2222-3333-4444-555555555555(:977-994). For the same operation, Result reads "Not recorded".data-ltm-debug-factssection always renders its "Details" heading (:1112-1140), even when it's empty, for example for an apply.:1300always renders "Log size unavailable".MemoryVault.tsx:4588-4595) is about 16 px tall.locales/en.json:205says "Check debug activity for details." Neither of the two keys is used anywhere in the source or tests.Steps to reproduce
tests/long-term-memory-browser.regression.tsare enough.Environment
c0ce4d8, the package's minimum)staging@a6cefea4).Logs, screenshots, or video
Screenshot attached: the details pane shows "Apply changes" while the highlighted row is "AI extraction" (pointer hover). It contains fixture data only.
axe, dark theme, desktop, with a recall selected and the pointer left on its row:
color-contrast[serious], 2 nodes, on the muted subject and summary text insidebutton[data-ltm-debug-operation="recall"]. Not re-checked with the pointer moved away. Mobile: 0 violations.Additional context
Follow-up to #1275 (Debug controls and polish). The items come from a review of the Debug audit against 1.4.20: N1–N8, the "1 duplicates" plural, and the leftovers from D20 and D24. A companion issue covers the parts of the agreed two-pane design that were not built (row times, result counts, recall candidate rows, the timeline). This issue is the smaller, client-only set.
Minimal fixes (paths as above)
Selected row and chips. Reuse the Vault's pressed pattern (
MemoryVault.tsx:3962):ActivityView.tsx:1436): addgroup aria-pressed:bg-[var(--accent)] aria-pressed:shadow-[inset_3px_0_0_var(--primary)].:1455,:1460): addgroup-hover:text-[var(--foreground)] group-aria-pressed:text-[var(--foreground)]. This also fixes the axe contrast finding.className="aria-pressed:bg-[var(--accent)]"to each chipButton.Selection already survives the phone pane switch (
selectedOperationId), so no state change is needed.Row outcome. Add a small
operationOutcome(operation)next tooperationSubject, and use it for the row's second line unless the operation failed (a failed row keeps the error message fromprincipalEvent,:1421-1427):recall_explanation: the existingrecallCountskey, or a newnothingAddedkey whencounts.selectedis 0;evidence_units_compiled: a new keykeptOfCandidates, "{{kept}} of {{candidates}} kept", fromcounts.unitsandcounts.totalCandidates;mutations_selected: a new keysavedSkipped, "{{saved}} saved · {{skipped}} skipped", frommutationIds.lengthanddetails.skippedMutationIds.length. That is the shape the server logs (reconciliation.ts:826-838).Put
line-clamp-2on the summary span (the same pattern asMemoryVault.tsx:3677). Make the status fallback indescribeEvent(:168-171) return"", and skip the timeline<p>when it is empty (:1165).Warning callout. In
problemMessages(:273-289), give a compile warning with no message a new keycandidatesFailedChecks, "{{count}} candidates failed checks; see Not kept.", fromcounts.candidateRejectionDiagnostics, with a singular form. If that count is missing, use "Some candidates failed checks; see Not kept.". The browser fixture (:2444-2446) omits the count, which real compile events always carry, so addcandidateRejectionDiagnostics: 4there.Result plurals. Build the
extractionCountsline from parts. Pick the singular key withselectLtmPluralForm, which:1039-1043already uses forrecallContextMessagesOne. Rename "kept units" to "kept".Apply.
:912-966) that usessavedSkipped.:977-994): render a count key (skippedChanges/skippedChangesOne) instead of joining the IDs. KeepnoSkippedChanges.mutationIdson anapply_changesevent (tests/long-term-memory-browser.regression.ts:2592-2595), which the server never logs. Move it to themutations_selectedevent so the test uses the real shape.Details section. Render
data-ltm-debug-factsonly when it has a memory source, model, provider, duration or count summary.Recall counts. Compute
countSummary(:836) from the operation's events withoutrecall_explanation; its counts already appear in Result and Run parameters.Health line. Remove the
healthLogSizesegment and its comment (:1298-1300), and the key. Open PR #1306 edits the next line, so whichever merges second rebases.Vault link.
MemoryVault.tsx:4590: replacemt-2 blockwithmt-2 inline-flex min-h-11 items-center.Strings.
en.json:205becomes "The latest recall failed. Open Memory Settings → Debug for details." Deleteactivityview.debugActivity(:57) andactivityview.value1Ms(:97).Regression proof (
tests/long-term-memory-browser.regression.ts)color-contrastreports 0 on the list with a row selected and another row hovered.:2665-2667.:2689.:2783.limit=1000. With fewer events, there is no notice. Thedebug-log?*stub already honourslimit.Out of scope
--marinara-editor-warning(Engine tokens)./status(a server change).Release
Client-only. Patch bump to the next free version (#1306 takes 1.4.25) with a CHANGELOG entry; rebuild the package, artifact and catalog entry.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: