mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1275] [Feature]: long-term-memory Debug controls and polish (PR 4) #650
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#650
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 9, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1275
Originally assigned to: @Promansis on GitHub.
What problem does this solve?
The Long-Term Memory Debug workspace needs controls that communicate unsaved changes, progress, completion and export risks without making users lose their place. Remaining wording, heading, status and target-size issues make troubleshooting harder, especially with a keyboard, screen reader or touch input.
This is PR 4: Controls and polish from
scratch/audits/ltm-debug-tab-ui-audit.md, revision 2: D05, D06, D07, D13, D14 (icon and weight only), D18, D20, D21, D23–D27, D32, D33, and the health line. Apply the findings to the landed two-pane workspace, not the audit's original expander layout.Proposed package or change
Polish the existing downloadable
long-term-memorypackage's Debug controls and copy, with the explicitly scoped shared summary/compact Chat Settings fixes below. Client plus about 10 English UI locale keys, an estimate rather than a quota. Reuse existing buttons, status surfaces, localization helpers, save flow and query data. No server, shared-schema, Engine, permissions or storage changes.Acceptance criteria
longTermMemoryDebugdiffers from the saved setting, show a neutral unsaved cue and an inline Save action beside/below “Record recall explanations,” wired to the existingsaveSettingsflow. Show its save success/error feedback in the Debug panel without requiring a scroll to the page header. Visibly explain that extraction, draft and apply events are always recorded and the recall setting takes effect after saving. Preserve Save/Discard, other unsaved settings and the existing leave-with-unsaved-changes guard; do not add autosave or a second persistence path.ltm-debug-log-<timestamp>.jsonlfallback, not the fixed filename. Surface the server's JSON{error}when supplied, with a useful fallback for other failed responses. Do not change the exported records or server endpoint.aria-hiddendecorative icons. Preserve the existing navigator status icons and improve remaining details/timeline cues where needed. Do not rely on color or the undefined warning token. Defining/fixing the token across the package or Engine is separate scope.LastInjectionSummaryRetry is at least 24px. Compact Chat Settings has no new memory-link UI. Do not broaden this into a package-wide control redesign.apply_draft,draft_deferredandcandidate_reconciliationwhere displayed; every navigator row retains a useful title. Do not turn steps sharing an operation ID into separate operations. Use a logical heading hierarchy without skipping levels; keep info-popover buttons outside heading elements so accessible heading names equal the heading text.LastInjectionSummary; do not add it back. In compact Chat Settings, use initial-load state rather than background-fetch state for the summary's loading title. Preserve existing data while refetching and retain error/Retry behavior. This is not permission to change global query defaults or refetch policy./statusquery/cache and existing host status interpretation; loaded events are not the full-log total. Show the available byte size without inventing a capacity (“of 2 MB”) or treating missing/pending status as healthy. Distinguish semantic availability from a recorded recall's outcome and from the current semantic weight setting. No new endpoint/schema or duplicate health-card layout.Regression proof
Why should this be optional?
This is troubleshooting UI inside the existing optional Long-Term Memory package, not new Engine core functionality. Package-specific controls, settings presentation and copy remain in Marinara-Agents.
Alternatives considered
Autosaving the recall toggle would change the established settings contract. A new toast system, duplicate query mechanism or broader package-wide redesign is unnecessary when existing save/status/query primitives cover this work. Restoring the old expanders, raw JSON or latest-recall panel would conflict with the agreed two-pane direction.
Additional context
Related work / sequence: #1255 (PR 1 data helpers), #1259 (PR 2 workspace) and #1260 (Vault-to-Debug navigation) are closed. #1273 is PR 3's result/outcome breakdown work; integrate this polish with its final details content and avoid parallel edits to the same client/tests. This issue does not reopen their data/layout scope.
Current-state reconciliation: the audit baseline was staging
f140047, LTM 1.4.6. At issue preparation, local HEAD and remote staging were4aa93c530e53f5d15cc48639084070308e1d4fd0, LTM 1.4.19. Copy JSON already has arole="status"announcement, Debug candidate links already usemin-h-11, navigator status icons exist, and load/action errors already sit below the toolbar. Keep these as regression guarantees rather than duplicate implementations. Historical audit line numbers and harness measurements are not fresh runtime proof; reconcile again against then-current staging before implementation.Expected source/test scope:
packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/{ActivityView.tsx,MemorySettings.tsx,LastInjectionSummary.tsx,ChatSettings.tsx,locales/en.json}; reusedisplay-labels.ts,localization.tsx,shared-controls.tsxand the existing/statusconsumer, changing shared helpers only if needed for the named behavior. Extendtests/long-term-memory-browser.regression.tsandtests/long-term-memory-feedback-clarity-ui.regression.mjsrather than adding a new harness.Non-goals: Korean UI catalog (D22), Engine warning-token definition or cross-cutting fallbacks (the rest of D14), host muted/destructive contrast tokens (D30), chat-surface latest recall, PR 3 breakdown/recovery logic, retrieval/ranking/storage changes, new retention/pagination/terminal-event behavior, and global refetch-policy changes. The only compact Chat Settings changes are D18's Retry target and D27's loading-state polish.
Evidence limits: the audit used a shipped-bundle/mock-API harness, not a real running Engine; it did not observe the real confirmation modal/focus restoration or use a real screen reader. Its browser run passed the Debug fixture but stopped at a compact-select height assertion before the mobile Debug pass. No source implementation, build or browser validation was performed to create this issue.
Release and validation requirements: executable client changes are security-sensitive; include explicit positive/negative validation notes and real-host/lifecycle proof gaps. Patch-bump from the then-current staging package version, add the package CHANGELOG entry, and rebuild with
node scripts/build-feature-packages.mjs long-term-memory. Never hand-edit generated bundles, archives, catalog entries or hashes. Run focused proof, the LTM browser and feedback-clarity regressions,npm run typecheck:packages,npm run check,node scripts/test-catalog-lanes.mjs,node scripts/validate-package-locales.mjs,node scripts/validate-catalog.mjs,node scripts/tests/catalog-release-notes.regression.mjs, andgit diff --check, plus applicable repository-required validation. For every LTM build/test, use the issue-linked Agents workspace as workdir and prefix both explicit assignments:MARINARA_AGENTS_ROOT="<absolute Agents workspace>" MARINARA_ENGINE_ROOT="/home/damo/dev/Marinara-Engine". The shared Engine host is read-only. Record compatible Engine install/update and relevant lifecycle verification or gaps.Template check