mirror of
https://github.com/Pasta-Devs/Marinara-Agents.git
synced 2026-12-03 18:55:07 +07:00
[GH-ISSUE #1255] [Issue]: long-term-memory Debug tab shows misleading data — extract tested data helpers (D01, D03, D08, D11, D17, D28, D29) #642
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#642
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 7, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1255
Originally assigned to: @Promansis on GitHub.
Summary
The Long-Term Memory Debug tab can show data that is not true. A phase or "Errors only" filter recomputes each operation's status from a subset of its events, so a truncated extraction reads "Completed"; humanised text rewrites note ids into wrong names; only the newest 200 events load with no notice; a started-only operation reads "Running" forever; and opening the tab downloads the entire vault just to map ids to titles.
This issue tracks PR 1 of four from the Debug-tab UI audit (revision 2): extract pure, tested data helpers and switch
ActivityViewto them, with minimal visual change.Affected package
long-term-memory(client only) — source rootpackages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/(abbreviatedltm/below). About 5 locale keys. Changes executable client code, so it needs a rebuild plus a patch bump and CHANGELOG entry (see Additional context).Expected behavior
startedevent and no completion past a threshold reads "No completion recorded" instead of "Running" (no duration is fabricated, so the existing guarantee holds).requestNotesByIdsfor ids actually on screen, withstaleTimeset and no refetch on window focus.<details>do not run a JSON humaniser transform on every render.Actual behavior
Baseline:
staging@f140047, packagelong-term-memoryv1.4.6. All line refs are inltm/.ActivityView.tsx:297-302queries with server-sidephase/status;:121-153derives status from only the returned events. Measured: truncated op reads "Completed with warnings — Model output limit reached" unfiltered, but "Completed — AI extraction: Ok." under Extraction; a partial import reads "Completed" under Import and "Failed" under Errors only.:326-335alternates every note id with\bonly on the UUID branch. Seen:character_mara_missing→ "Mara Quill_missing";world_lantern_guild_v2→ "Lantern Guild_v2".:297-302useslimit=200; the response carries no total/hasMore. Measured with 281 events: 200 returned → 51 operations, no notice, and the oldest operation shows 3 of its 4 events.:121-153mapsstartedwith no terminal event to "Running". Seen: a 2-day-old operation reads "Running"; norefetchIntervalexists.:312-315withapi.ts:165-175(requestAllNotespages of 500 full notes). Measured: ≈2.1 MB per fetch at 2,004 notes, ≈10.6 MB at 10,004, repeated on every window refocus.:866-870runshumanizeDebugText(JSON.stringify(metadata))for every event with metadata inside closed<details>, on every state change. Measured: 15 / 61 / 157 ms per pass at 100 / 2,000 / 10,000 ids; a recall-panel toggle cost ≈43 → ≈53 ms.:292-306: an Export error survives a successful Refresh, and every filter change refetches (even to a previously loaded key).Steps to reproduce
long-term-memory1.4.6 and open Long-Term Memory → Memory Settings → Debug with a log containing an operation whose extraction was truncated./notes?limit=500&offset=0pages download the whole vault; returning to the window repeats it.Environment
builtAgainstc0ce4d8)Logs, screenshots, or video
Not included here; evidence was captured during the read-only UI audit as measured/seen probes (DOM/computed-style/request-log/perf) and a scratch Playwright harness outside the repository.
Additional context
Follow-up plan (revision 2), PR 1 of 4. In scope:
scope-targets/debug-log, tests README "Focused helpers").ActivityViewswitches to the helpers: one unfiltered window filtered client-side; titles viarequestNotesByIdsfor on-screen ids;staleTimeand no refetch on refocus; a "newest 200" note with "Show up to 1,000".debug-logroute (tests/long-term-memory-browser.regression.ts:2485) must parselimit/phase/status/operationIdand slice likereadLtmDebugLog; today it returns the same events for every query, so filter/window behaviour is untested.scripts/build-feature-packages.mjs long-term-memory, patch bump + CHANGELOG entry, and the baseline gates: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,npm run typecheck:packages, plus the LTM browser and feedback-clarity tests. Explicit validation notes required (security-sensitive executable client code).Out of scope: layout changes. The two-pane layout, breakdowns and controls/polish are PRs 2–4 of the audit; this PR keeps the current layout so they build on tested logic. Risk: moderate, since the data flow changes.
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: