[PR #1257] [MERGED] fix(long-term-memory): 1.4.12 — filter Debug activity by operation and resolve titles by id (#1255) #1373

Closed
opened 2026-10-21 05:09:58 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/debug-data-helpers


📝 Commits (3)

  • 2da33e5 fix(long-term-memory): 1.4.11 — filter Debug activity by operation and resolve titles by id (#1255)
  • 36dfd8f Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/debug-data-helpers
  • b01fe76 fix(long-term-memory): 1.4.12 — query the recall workflow by retrieval phase (#1255)

📊 Changes

17 files changed (+505 additions, -199 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.12.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 (+11 -0)
📝 packages/long-term-memory/client.js (+28 -28)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx (+117 -124)
➕ packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/debug-activity.ts (+129 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+3 -0)
📝 scripts/build-feature-packages.mjs (+1 -1)
📝 tests/README.md (+2 -2)
📝 tests/long-term-memory-browser.regression.ts (+72 -5)
➕ tests/long-term-memory-debug-activity.regression.ts (+103 -0)

📄 Description

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #1255

Why this change

  • The Debug tab filtered on the server, so a phase or "Errors only" view loaded a subset of each operation's events and could report a partial import as "Failed" or a truncated extraction as "Completed".
  • Memory ids were replaced by prefix, so character_mara_missing rendered as Mara Quill_missing.
  • Resolving memory titles downloaded the whole vault, refetched it on window focus, and showed the newest 200 events with no indication that older activity existed.
  • A started run with no completion stayed "Running" forever, Technical details JSON rendered even when closed, and a failed export or clear error survived a successful Refresh.

What changed

  • long-term-memory (1.4.12): the Debug tab now fetches one unfiltered limit=200 window and filters whole operations on the client; filterOperations, deriveOperationStatus, collectDebugNoteIds and humanizeDebugText move to the new debug-activity.ts helper module.
  • Whole-token id replacement with a 120-char collection cap, titles resolved per on-screen id via requestNotesByIds with staleTime and no focus refetch, and keepPreviousData so titles do not flash back to raw ids.
  • New "Showing the newest {{count}} events" notice with "Show up to 1,000", "No completion recorded" for started-only runs older than an hour, lazy Technical details <pre>, and Refresh clearing the action error on success.
  • Tests: new long-term-memory-debug-activity helper regression; browser lifecycle stub now honours debug-log query params and asserts whole-operation filtering and ids-only title lookup; stale re-extract request expectations updated for the #1227 modes change; tests/README.md helper row updated.
  • Generated outputs rebuilt from source: client.js, manifest.json, all catalog lanes and artifacts/long-term-memory-1.4.12.zip. Reconciled with staging's 1.4.11 release, so this branch re-bumps to 1.4.12 with its changelog entry on top of staging's 1.4.11 history.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min 2.4.1 / engine.maxExclusive unchanged, builtAgainst unchanged
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none; restartRequired unchanged and no stored data or migrations changed

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

  • Ran on merged HEAD 36dfd8f2a with MARINARA_AGENTS_ROOT / MARINARA_ENGINE_ROOT (/home/damo/dev/Marinara-Engine @ c5a5458): test-ltm.sh browser (lifecycle incl. mobile Debug pass), runtime, debug-activity, debug-log, feedback-clarity-ui — all green.
  • npm run check (0 errors, 809 pre-existing warnings), npm run typecheck:packages, test-catalog-lanes, validate-package-locales, validate-catalog, catalog-release-notes.regression, git diff --check — all pass.
  • Manifest/artifact/catalog hashes and sizes verified against the rebuilt files; staging's 1.4.11 artifact is preserved byte-for-byte.
  • Hosted checks and required review are pending for the pushed SHA.

Documentation impact

  • No documentation changes needed
  • Updated this README catalog and package guidance
  • Updated linked Marinara Engine documentation

UI evidence (if applicable)

  • No screenshots; the browser lifecycle regression covers the Debug tab desktop and mobile flows, including filtering, notices, lazy Technical details, and fallback labels.

Summary by CodeRabbit

  • New Features
    • Filter debug activity by phase or errors across whole operations. When the log is truncated, see the newest 200 events or choose to show up to 1,000.
    • Debug logs replace recognized memory IDs with titles and identify runs started over an hour ago without a recorded completion.
    • The latest recall workflow reflects the newest retrieval-phase explanation. Technical details load only when expanded, and visible memory titles can be looked up without loading the full vault.
  • Bug Fixes
    • A successful refresh clears stale export or clear errors.
  • Release
    • Updated Long-Term Memory to version 1.4.12.

🔄 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/1257 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/7/2026 **Status:** ✅ Merged **Merged:** 10/7/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/debug-data-helpers` --- ### 📝 Commits (3) - [`2da33e5`](https://github.com/Pasta-Devs/Marinara-Agents/commit/2da33e5b37517f79718817462a55dd42f7542bc0) fix(long-term-memory): 1.4.11 — filter Debug activity by operation and resolve titles by id (#1255) - [`36dfd8f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/36dfd8f2abd79117e9f26eac647e145845f51474) Merge remote-tracking branch 'upstream/staging' into fix(long-term-memory)/debug-data-helpers - [`b01fe76`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b01fe762f3f8f9a70d973be501d1b83009c54947) fix(long-term-memory): 1.4.12 — query the recall workflow by retrieval phase (#1255) ### 📊 Changes **17 files changed** (+505 additions, -199 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.12.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` (+11 -0) 📝 `packages/long-term-memory/client.js` (+28 -28) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/ActivityView.tsx` (+117 -124) ➕ `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/debug-activity.ts` (+129 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+3 -0) 📝 `scripts/build-feature-packages.mjs` (+1 -1) 📝 `tests/README.md` (+2 -2) 📝 `tests/long-term-memory-browser.regression.ts` (+72 -5) ➕ `tests/long-term-memory-debug-activity.regression.ts` (+103 -0) </details> ### 📄 Description # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- Open as a draft while implementation is in progress. Mark Ready for review only after validation and self-review. --> ## Linked issue <!-- Every PR should reference an issue or feature request. --> Closes #1255 ## Why this change <!-- What user problem, package bug, or catalog goal does this solve? --> - The Debug tab filtered on the server, so a phase or "Errors only" view loaded a subset of each operation's events and could report a partial import as "Failed" or a truncated extraction as "Completed". - Memory ids were replaced by prefix, so `character_mara_missing` rendered as `Mara Quill_missing`. - Resolving memory titles downloaded the whole vault, refetched it on window focus, and showed the newest 200 events with no indication that older activity existed. - A started run with no completion stayed "Running" forever, Technical details JSON rendered even when closed, and a failed export or clear error survived a successful Refresh. ## What changed <!-- Include affected package IDs and generated outputs. --> - `long-term-memory` (1.4.12): the Debug tab now fetches one unfiltered `limit=200` window and filters whole operations on the client; `filterOperations`, `deriveOperationStatus`, `collectDebugNoteIds` and `humanizeDebugText` move to the new `debug-activity.ts` helper module. - Whole-token id replacement with a 120-char collection cap, titles resolved per on-screen id via `requestNotesByIds` with `staleTime` and no focus refetch, and `keepPreviousData` so titles do not flash back to raw ids. - New "Showing the newest {{count}} events" notice with "Show up to 1,000", "No completion recorded" for started-only runs older than an hour, lazy Technical details `<pre>`, and Refresh clearing the action error on success. - Tests: new `long-term-memory-debug-activity` helper regression; browser lifecycle stub now honours debug-log query params and asserts whole-operation filtering and ids-only title lookup; stale re-extract request expectations updated for the #1227 modes change; `tests/README.md` helper row updated. - Generated outputs rebuilt from source: `client.js`, `manifest.json`, all catalog lanes and `artifacts/long-term-memory-1.4.12.zip`. Reconciled with staging's 1.4.11 release, so this branch re-bumps to 1.4.12 with its changelog entry on top of staging's 1.4.11 history. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min` 2.4.1 / `engine.maxExclusive` unchanged, `builtAgainst` unchanged - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none; `restartRequired` unchanged and no stored data or migrations changed ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [ ] `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 <!-- Describe exactly what you tested, step by step. --> - Ran on merged HEAD `36dfd8f2a` with `MARINARA_AGENTS_ROOT` / `MARINARA_ENGINE_ROOT` (`/home/damo/dev/Marinara-Engine` @ `c5a5458`): `test-ltm.sh browser` (lifecycle incl. mobile Debug pass), `runtime`, `debug-activity`, `debug-log`, `feedback-clarity-ui` — all green. - `npm run check` (0 errors, 809 pre-existing warnings), `npm run typecheck:packages`, `test-catalog-lanes`, `validate-package-locales`, `validate-catalog`, `catalog-release-notes.regression`, `git diff --check` — all pass. - Manifest/artifact/catalog hashes and sizes verified against the rebuilt files; staging's 1.4.11 artifact is preserved byte-for-byte. - Hosted checks and required review are pending for the pushed SHA. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for package UI changes. --> - No screenshots; the browser lifecycle regression covers the Debug tab desktop and mobile flows, including filtering, notices, lazy Technical details, and fallback labels. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Filter debug activity by phase or errors across whole operations. When the log is truncated, see the newest 200 events or choose to show up to 1,000. * Debug logs replace recognized memory IDs with titles and identify runs started over an hour ago without a recorded completion. * The latest recall workflow reflects the newest retrieval-phase explanation. Technical details load only when expanded, and visible memory titles can be looked up without loading the full vault. * **Bug Fixes** * A successful refresh clears stale export or clear errors. * **Release** * Updated Long-Term Memory to version 1.4.12. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:09:58 +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#1373
No description provided.