[PR #673] [MERGED] fix(long-term-memory): finish Sources workstation #1083

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Agents/pull/673
Author: @Promansis
Created: 9/1/2026
Status: ✅ Merged
Merged: 9/2/2026
Merged by: @Promansis

Base: staging ← Head: feature(long-term-memory)/sources-workstation


📝 Commits (5)

  • e6e281d feat(long-term-memory): finish Sources workstation
  • ca43b79 fix(long-term-memory): make source picker scrollable
  • eee51a8 fix(long-term-memory): preserve lorebook page counts
  • b0a5f52 fix(long-term-memory): preserve lorebook pagination
  • f20ee19 Merge branch 'staging' into feature(long-term-memory)/sources-workstation

📊 Changes

27 files changed (+3326 additions, -1020 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.18.zip (+0 -0)
📝 catalog/catalog.json (+10 -10)
📝 catalog/v2/catalog.json (+10 -10)
📝 catalog/v3/catalog.json (+10 -10)
📝 packages/long-term-memory/client.js (+22 -22)
📝 packages/long-term-memory/engine-boundary.json (+3 -3)
📝 packages/long-term-memory/manifest.json (+8 -8)
📝 packages/long-term-memory/server.mjs (+56 -55)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx (+3 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx (+83 -8)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx (+1 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx (+13 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+1902 -769)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+26 -0)
➕ packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/source-task.ts (+310 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/types.ts (+2 -2)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts (+189 -55)
📝 packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts (+34 -4)
📝 packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts (+68 -0)
📝 scripts/build-feature-packages.mjs (+3 -3)

...and 7 more files

📄 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 #663

Why this change

Long-Term Memory Sources had inconsistent discovery, preview, import, extraction, and source-management flows. This change delivers the approved operate-mode workstation while preserving existing scope, destination, lorebook, recovery, management, and Refresh versus Re-extract behavior.

What changed

  • Reworked the long-term-memory Sources destination around the shared three-pane workstation.
  • Added bounded Lorebook candidate search with complete totals and preserved empty Lorebook groups.
  • Added cancellable package-level source tasks, safe session results, retry contracts, stale-task recovery, navigation status, and disconnect-safe Re-extract retry behavior.
  • Added source selection, filtering, grouping, lazy previews, Lorebook entry workbenches, bulk destination editing, progress/results, source operations, and persisted latest-task result routing.
  • Added responsive mobile pane/action behavior, keyboard tab navigation, localized task/loading copy, destination validation, and unread failure status.
  • Addressed review findings with singular/plural failure copy, separate cancellation messaging, and 500,000-character source-detail bounds.
  • Restored compatibility with the API 1.7 Engine host by keeping the package boundary at API 1.6 and using the optional live-embedding resolver only when available.
  • Fixed the Already Imported filter crash by capturing native disclosure state before React defers the state update, and verified imported totals remain nonzero after import.
  • Rebuilt client.js, server.mjs, manifest metadata, artifact, and all affected catalog lanes.

Package and security impact

  • Affected package IDs: long-term-memory (1.2.18)
  • Engine compatibility impact: range >=2.4.1 <4.0.0; built against Engine 2.4.1 commit c0ce4d8849e072db2bfe300bbed22aa700ce7b49
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: existing restart requirement and permissions remain unchanged; imported memory storage remains durable and lifecycle coverage verifies update/uninstall preservation.

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

  • Engine-backed lifecycle regression passed for install, offline restart, backup inclusion, uninstall, reinstall, durable-byte preservation, source selection, import, failure/retry, persisted results, desktop layout, and mobile geometry.
  • Compatibility regression passed against an API 1.7 Engine host and Engine 2.4.1 package lifecycle.
  • Focused source-task, conversation-summary, extraction, route, feedback-clarity, catalog-lane, locale, and catalog validations passed.
  • npm run check passed with zero errors; existing repository lint warnings remain.

Documentation impact

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

UI evidence (if applicable)

No screenshots captured; the Engine-backed browser lifecycle contains the UI assertions and mobile geometry checks.

Summary by CodeRabbit

  • New Features
    • Added live status indicators for source imports, refreshes, and re-extraction, including progress, failures, completion, and source counts.
    • Added source search, previews, detailed content inspection, filtering, pagination, and missing-source reporting.
    • Added source-specific navigation to characters, lorebooks, and chats.
    • Added cancellation, retry, interruption recovery, and persisted task status.
  • Bug Fixes
    • Improved source-note navigation and scrolling across responsive layouts and browser environments.
    • Preserved accurate totals and truncation information in previews.
  • Compatibility
    • Long-Term Memory now supports Engine 2.4.1 and API minor version 6.

🔄 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/673 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/1/2026 **Status:** ✅ Merged **Merged:** 9/2/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/sources-workstation` --- ### 📝 Commits (5) - [`e6e281d`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e6e281d22209b718003e58d7e57fb2de4b5dacdf) feat(long-term-memory): finish Sources workstation - [`ca43b79`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ca43b792dd663a3355c7d9f979a7c0646a237728) fix(long-term-memory): make source picker scrollable - [`eee51a8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/eee51a8563f7594fe27a525b4a52f5e56ad96ac6) fix(long-term-memory): preserve lorebook page counts - [`b0a5f52`](https://github.com/Pasta-Devs/Marinara-Agents/commit/b0a5f521ac765cb88794c48ebfbe48778c64df26) fix(long-term-memory): preserve lorebook pagination - [`f20ee19`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f20ee194a5d84de917badec33311c8cffdfa0f3d) Merge branch 'staging' into feature(long-term-memory)/sources-workstation ### 📊 Changes **27 files changed** (+3326 additions, -1020 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.18.zip` (+0 -0) 📝 `catalog/catalog.json` (+10 -10) 📝 `catalog/v2/catalog.json` (+10 -10) 📝 `catalog/v3/catalog.json` (+10 -10) 📝 `packages/long-term-memory/client.js` (+22 -22) 📝 `packages/long-term-memory/engine-boundary.json` (+3 -3) 📝 `packages/long-term-memory/manifest.json` (+8 -8) 📝 `packages/long-term-memory/server.mjs` (+56 -55) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryDetail.tsx` (+3 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx` (+83 -8) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LtmWorkspace.tsx` (+1 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/MemoryVault.tsx` (+13 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+1902 -769) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+26 -0) ➕ `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/source-task.ts` (+310 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/types.ts` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/interop.ts` (+189 -55) 📝 `packages/long-term-memory/src/engine/packages/server/src/services/long-term-memory/routes.ts` (+34 -4) 📝 `packages/long-term-memory/src/engine/packages/shared/src/features/agents/long-term-memory/schema.ts` (+68 -0) 📝 `scripts/build-feature-packages.mjs` (+3 -3) _...and 7 more files_ </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`. ## Linked issue Closes #663 ## Why this change Long-Term Memory Sources had inconsistent discovery, preview, import, extraction, and source-management flows. This change delivers the approved operate-mode workstation while preserving existing scope, destination, lorebook, recovery, management, and Refresh versus Re-extract behavior. ## What changed - Reworked the `long-term-memory` Sources destination around the shared three-pane workstation. - Added bounded Lorebook candidate search with complete totals and preserved empty Lorebook groups. - Added cancellable package-level source tasks, safe session results, retry contracts, stale-task recovery, navigation status, and disconnect-safe Re-extract retry behavior. - Added source selection, filtering, grouping, lazy previews, Lorebook entry workbenches, bulk destination editing, progress/results, source operations, and persisted latest-task result routing. - Added responsive mobile pane/action behavior, keyboard tab navigation, localized task/loading copy, destination validation, and unread failure status. - Addressed review findings with singular/plural failure copy, separate cancellation messaging, and 500,000-character source-detail bounds. - Restored compatibility with the API 1.7 Engine host by keeping the package boundary at API 1.6 and using the optional live-embedding resolver only when available. - Fixed the Already Imported filter crash by capturing native disclosure state before React defers the state update, and verified imported totals remain nonzero after import. - Rebuilt `client.js`, `server.mjs`, manifest metadata, artifact, and all affected catalog lanes. ## Package and security impact - Affected package IDs: `long-term-memory` (`1.2.18`) - Engine compatibility impact: range `>=2.4.1 <4.0.0`; built against Engine `2.4.1` commit `c0ce4d8849e072db2bfe300bbed22aa700ce7b49` - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: existing restart requirement and permissions remain unchanged; imported memory storage remains durable and lifecycle coverage verifies update/uninstall preservation. ## Validation - [x] `node scripts/validate-catalog.mjs` passes locally - [x] `git diff --check` passes locally - [x] Rebuilt every affected manifest, payload, artifact, and catalog entry - [x] Installed or updated the affected package through Marinara Engine - [x] Checked supported modes, restart behavior, and uninstall cleanup - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Engine-backed lifecycle regression passed for install, offline restart, backup inclusion, uninstall, reinstall, durable-byte preservation, source selection, import, failure/retry, persisted results, desktop layout, and mobile geometry. - Compatibility regression passed against an API 1.7 Engine host and Engine 2.4.1 package lifecycle. - Focused source-task, conversation-summary, extraction, route, feedback-clarity, catalog-lane, locale, and catalog validations passed. - `npm run check` passed with zero errors; existing repository lint warnings remain. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) No screenshots captured; the Engine-backed browser lifecycle contains the UI assertions and mobile geometry checks. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added live status indicators for source imports, refreshes, and re-extraction, including progress, failures, completion, and source counts. - Added source search, previews, detailed content inspection, filtering, pagination, and missing-source reporting. - Added source-specific navigation to characters, lorebooks, and chats. - Added cancellation, retry, interruption recovery, and persisted task status. - **Bug Fixes** - Improved source-note navigation and scrolling across responsive layouts and browser environments. - Preserved accurate totals and truncation information in previews. - **Compatibility** - Long-Term Memory now supports Engine 2.4.1 and API minor version 6. <!-- 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:02:17 +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#1083
No description provided.