[PR #1107] [MERGED] feat(long-term-memory): use scope tabs in the Sources find-sources picker (1.3.27) #1297

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

📋 Pull Request Information

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

Base: staging ← Head: feature/long-term-memory/sources-scope-tabs


📝 Commits (8)

  • 95162a3 feat(long-term-memory): use scope tabs in the Sources find-sources picker (1.3.25)
  • 41b8032 Merge remote-tracking branch 'upstream/staging' into feature/long-term-memory/sources-scope-tabs
  • 19729a2 feat(long-term-memory): collapse Sources destination picker and show one task count (1.3.27)
  • 5465021 Merge branch 'staging' into feature/long-term-memory/sources-scope-tabs
  • 8401183 fix(long-term-memory): show one source-task indicator (1.3.27)
  • 6b0eb9c Merge remote-tracking branch 'upstream/staging' into feature/long-term-memory/sources-scope-tabs
  • 7b5b008 Merge remote-tracking branch 'origin/feature/long-term-memory/sources-scope-tabs' into feature/long-term-memory/sources-scope-tabs
  • ec2a9e3 Merge branch 'staging' into feature/long-term-memory/sources-scope-tabs

📊 Changes

17 files changed (+432 additions, -219 deletions)

View changed files

➕ artifacts/long-term-memory-1.3.25.zip (+0 -0)
➕ artifacts/long-term-memory-1.3.27.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 (+6 -0)
📝 packages/long-term-memory/client.js (+60 -21)
📝 packages/long-term-memory/manifest.json (+3 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx (+4 -11)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+200 -134)
📝 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/long-term-memory-browser.regression.ts (+91 -13)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+28 -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 #1099
Closes #1098
Closes #1100

Why this change

  • The Long-Term Memory Sources page "Find sources in" picker stacked Chats, Branches, Characters, and Personas into flat grouped sections under one shared search box. Every other scope picker in the package (Memory Vault data-ltm-vault-scope-tab, and the Sources "Make memories available in" panel data-ltm-availability-tab) filters by an All / Chats / Branches / Characters / Personas tab system, so the source picker was the inconsistent one and was hard to scan with many targets.
  • The Sources "Make memories available in" destination picker kept its search, tab rail, and result list permanently expanded beside the source list, unlike the Memory Vault picker that collapses under a summary.
  • A running source task showed a duplicated spinner and announced the same source count in more than one place on the Sources page.

What changed

  • long-term-memory client UI (SourcesWorkspace.tsx, ScopeTargetPicker) now uses the same roving-tab tablist + tabpanel model as Memory Vault and the availability panel: an All tab plus one tab per kind, with the existing search input filtering the active tab's targets.
  • The Sources "Make memories available in" search, tab rail, and result list collapse under a <details data-ltm-destination-scope> summary that reports the current destination selection.
  • A running source task now renders one animated indicator (the shared StatusSurface spinner) and one source count, owned by the task-progress StatusSurface (data-ltm-source-task-count); the duplicate progress paragraphs, the per-row Loader2 animations, and the navigation count badge are gone. The Sources navigation uses a count-free running status label while the workbench keeps the number.
  • Preserved behavior: Current / All pinned options, data-ltm-scope-option ids, Enter/Arrow highlight navigation, Escape/outside-click close, trigger focus restoration, and the exact sourceScope request payload. Mouse-activating a tab focuses it so roving keyboard navigation continues.
  • Added focused regression coverage in tests/long-term-memory-browser.regression.ts and tests/long-term-memory-feedback-clarity-ui.regression.mjs for tab filtering, tabpanel ARIA wiring, mouse→keyboard roving focus, the collapsed destination disclosure, a single visible source-task count, and exactly one animated indicator during a running task.
  • Version 1.3.24 → 1.3.27 with a CHANGELOG.md entry (see merge note). Rebuilt client.js, manifest.json, catalog entries (catalog/catalog.json, catalog/v2, catalog/v3), notes sidecars, and artifacts/long-term-memory-1.3.27.zip.

Merge note

  • upstream/staging advanced to fff7151a (long-term-memory 1.3.26, #1102), which moved the same package version and generated outputs. Merged upstream/staging into this branch and re-versioned our change from 1.3.25 to 1.3.27 so the catalog publishes the newest entry; upstream's 1.3.26 changelog entry and artifacts/long-term-memory-1.3.26.zip are preserved. Generated outputs were rebuilt from source at 1.3.27.
  • upstream/staging later advanced to ed61260d9 (adds the modern-life-sim preview package). Merged it into this branch; the fork branch had also merged that same tip independently, so the divergent fork tip 546502124 was merged into the local branch (no rebase or force-push) before the final fast-forward push.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none; engine.min 2.4.1 / maxExclusive 4.0.0 and builtAgainst unchanged.
  • New or changed permissions/entrypoints: none; permissions and entrypoints unchanged.
  • Restart, storage, update, or uninstall impact: none; client-only UI change, no server, schema, route, or storage change.

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

Commands run on the final pushed commit 7b5b00862 (Agents root this worktree, MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine at 41d5d12c):

  • test-ltm.sh browser — passed (Long-Term Memory browser lifecycle: onboarding, review, availability, re-extraction, mobile, and loading ok)
  • test-ltm.sh feedback-clarity-ui — passed
  • test-fast.sh (npm run check + git diff --check) — passed; 0 errors (pre-existing unrelated ESLint warnings only)
  • node scripts/test-catalog-lanes.mjs — passed
  • node scripts/validate-package-locales.mjs — passed
  • node scripts/validate-catalog.mjs — passed (Catalog valid: 38 packages; lanes v2=38, v3=38; preview overlay 4 staging-only packages)
  • node scripts/tests/catalog-release-notes.regression.mjs — passed
  • Rebuilt with node scripts/build-feature-packages.mjs long-term-memory; artifact artifacts/long-term-memory-1.3.27.zip sha256 ab6cc610587d34d6a1a00dc4b5ad6e05738d80f6e01f48ecfded87e5507570b4 matches the catalog entry.
  • Captured publish proof inputs before and after checks (repository digest 7d61a3e30e4a1f6f27a7db81d131ae18c42851c073da092a2b897f5434ca1f03, engine digest 16d84b2dc18c246dfa4f271f11933260bc1b09fa82392ec02a89f0fb40519d09); both snapshots matched via assertPublishProof.

Not yet performed here (left for human verification): installing/updating the package through Marinara Engine and manual restart/uninstall checks.

Documentation impact

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

UI evidence (if applicable)

  • Sources UI: "Find sources in" now uses All / Chats / Branches / Characters / Personas tabs, "Make memories available in" collapses under a summary, and a running source task shows one spinner and one count. Before/after screenshots not attached.

Summary by CodeRabbit

  • New Features

    • The source picker now organizes options into keyboard-navigable category tabs, with pinned destinations remaining visible.
    • Destination selection can be collapsed into a summary and expanded when needed.
    • Source-task progress displays a consolidated task count and status labels for importing, refreshing, and re-extracting.
  • Bug Fixes

    • Removed redundant source-task indicators from navigation and import progress displays.

🔄 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/1107 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/27/2026 **Status:** ✅ Merged **Merged:** 9/28/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature/long-term-memory/sources-scope-tabs` --- ### 📝 Commits (8) - [`95162a3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/95162a3a49d21a9fa5ce0fe96ebd98959a8129a6) feat(long-term-memory): use scope tabs in the Sources find-sources picker (1.3.25) - [`41b8032`](https://github.com/Pasta-Devs/Marinara-Agents/commit/41b8032fefc1137865555ac006e24e7460cd3e61) Merge remote-tracking branch 'upstream/staging' into feature/long-term-memory/sources-scope-tabs - [`19729a2`](https://github.com/Pasta-Devs/Marinara-Agents/commit/19729a2d8da0c2b4a0ff0baecf0b8fa1836b0d7c) feat(long-term-memory): collapse Sources destination picker and show one task count (1.3.27) - [`5465021`](https://github.com/Pasta-Devs/Marinara-Agents/commit/546502124395e4067fd2d062477079c9349d53dc) Merge branch 'staging' into feature/long-term-memory/sources-scope-tabs - [`8401183`](https://github.com/Pasta-Devs/Marinara-Agents/commit/84011836e5ad372d528177057bf77d39c0640ee1) fix(long-term-memory): show one source-task indicator (1.3.27) - [`6b0eb9c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/6b0eb9ce1848e1d159b6e5ce4c6b2d827f8bb0dc) Merge remote-tracking branch 'upstream/staging' into feature/long-term-memory/sources-scope-tabs - [`7b5b008`](https://github.com/Pasta-Devs/Marinara-Agents/commit/7b5b00862d546a3126fc88912afe0e8b400ab810) Merge remote-tracking branch 'origin/feature/long-term-memory/sources-scope-tabs' into feature/long-term-memory/sources-scope-tabs - [`ec2a9e3`](https://github.com/Pasta-Devs/Marinara-Agents/commit/ec2a9e3981aec098a2848aec5c1bff3487c9e62c) Merge branch 'staging' into feature/long-term-memory/sources-scope-tabs ### 📊 Changes **17 files changed** (+432 additions, -219 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.3.25.zip` (+0 -0) ➕ `artifacts/long-term-memory-1.3.27.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` (+6 -0) 📝 `packages/long-term-memory/client.js` (+60 -21) 📝 `packages/long-term-memory/manifest.json` (+3 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/LongTermMemoryNavigation.tsx` (+4 -11) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+200 -134) 📝 `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/long-term-memory-browser.regression.ts` (+91 -13) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+28 -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 #1099 Closes #1098 Closes #1100 ## Why this change - The Long-Term Memory Sources page "Find sources in" picker stacked Chats, Branches, Characters, and Personas into flat grouped sections under one shared search box. Every other scope picker in the package (Memory Vault `data-ltm-vault-scope-tab`, and the Sources "Make memories available in" panel `data-ltm-availability-tab`) filters by an `All` / `Chats` / `Branches` / `Characters` / `Personas` tab system, so the source picker was the inconsistent one and was hard to scan with many targets. - The Sources "Make memories available in" destination picker kept its search, tab rail, and result list permanently expanded beside the source list, unlike the Memory Vault picker that collapses under a summary. - A running source task showed a duplicated spinner and announced the same source count in more than one place on the Sources page. ## What changed <!-- Include affected package IDs and generated outputs. --> - `long-term-memory` client UI (`SourcesWorkspace.tsx`, `ScopeTargetPicker`) now uses the same roving-tab tablist + tabpanel model as Memory Vault and the availability panel: an `All` tab plus one tab per kind, with the existing search input filtering the active tab's targets. - The Sources "Make memories available in" search, tab rail, and result list collapse under a `<details data-ltm-destination-scope>` summary that reports the current destination selection. - A running source task now renders one animated indicator (the shared `StatusSurface` spinner) and one source count, owned by the task-progress `StatusSurface` (`data-ltm-source-task-count`); the duplicate progress paragraphs, the per-row `Loader2` animations, and the navigation count badge are gone. The Sources navigation uses a count-free running status label while the workbench keeps the number. - Preserved behavior: `Current` / `All` pinned options, `data-ltm-scope-option` ids, Enter/Arrow highlight navigation, Escape/outside-click close, trigger focus restoration, and the exact `sourceScope` request payload. Mouse-activating a tab focuses it so roving keyboard navigation continues. - Added focused regression coverage in `tests/long-term-memory-browser.regression.ts` and `tests/long-term-memory-feedback-clarity-ui.regression.mjs` for tab filtering, tabpanel ARIA wiring, mouse→keyboard roving focus, the collapsed destination disclosure, a single visible source-task count, and exactly one animated indicator during a running task. - Version `1.3.24` → `1.3.27` with a `CHANGELOG.md` entry (see merge note). Rebuilt `client.js`, `manifest.json`, catalog entries (`catalog/catalog.json`, `catalog/v2`, `catalog/v3`), notes sidecars, and `artifacts/long-term-memory-1.3.27.zip`. ## Merge note - `upstream/staging` advanced to `fff7151a` (long-term-memory `1.3.26`, #1102), which moved the same package version and generated outputs. Merged `upstream/staging` into this branch and re-versioned our change from `1.3.25` to `1.3.27` so the catalog publishes the newest entry; upstream's `1.3.26` changelog entry and `artifacts/long-term-memory-1.3.26.zip` are preserved. Generated outputs were rebuilt from source at `1.3.27`. - `upstream/staging` later advanced to `ed61260d9` (adds the `modern-life-sim` preview package). Merged it into this branch; the fork branch had also merged that same tip independently, so the divergent fork tip `546502124` was merged into the local branch (no rebase or force-push) before the final fast-forward push. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none; `engine.min 2.4.1` / `maxExclusive 4.0.0` and `builtAgainst` unchanged. - New or changed permissions/entrypoints: none; permissions and entrypoints unchanged. - Restart, storage, update, or uninstall impact: none; client-only UI change, no server, schema, route, or storage change. ## 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. --> Commands run on the final pushed commit `7b5b00862` (Agents root this worktree, `MARINARA_ENGINE_ROOT=/home/damo/dev/Marinara-Engine` at `41d5d12c`): - `test-ltm.sh browser` — passed (Long-Term Memory browser lifecycle: onboarding, review, availability, re-extraction, mobile, and loading ok) - `test-ltm.sh feedback-clarity-ui` — passed - `test-fast.sh` (`npm run check` + `git diff --check`) — passed; 0 errors (pre-existing unrelated ESLint warnings only) - `node scripts/test-catalog-lanes.mjs` — passed - `node scripts/validate-package-locales.mjs` — passed - `node scripts/validate-catalog.mjs` — passed (Catalog valid: 38 packages; lanes v2=38, v3=38; preview overlay 4 staging-only packages) - `node scripts/tests/catalog-release-notes.regression.mjs` — passed - Rebuilt with `node scripts/build-feature-packages.mjs long-term-memory`; artifact `artifacts/long-term-memory-1.3.27.zip` sha256 `ab6cc610587d34d6a1a00dc4b5ad6e05738d80f6e01f48ecfded87e5507570b4` matches the catalog entry. - Captured publish proof inputs before and after checks (repository digest `7d61a3e30e4a1f6f27a7db81d131ae18c42851c073da092a2b897f5434ca1f03`, engine digest `16d84b2dc18c246dfa4f271f11933260bc1b09fa82392ec02a89f0fb40519d09`); both snapshots matched via `assertPublishProof`. Not yet performed here (left for human verification): installing/updating the package through Marinara Engine and manual restart/uninstall checks. ## 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. --> - Sources UI: "Find sources in" now uses `All` / `Chats` / `Branches` / `Characters` / `Personas` tabs, "Make memories available in" collapses under a summary, and a running source task shows one spinner and one count. Before/after screenshots not attached. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * The source picker now organizes options into keyboard-navigable category tabs, with pinned destinations remaining visible. * Destination selection can be collapsed into a summary and expanded when needed. * Source-task progress displays a consolidated task count and status labels for importing, refreshing, and re-extracting. * **Bug Fixes** * Removed redundant source-task indicators from navigation and import progress displays. <!-- 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:07:48 +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#1297
No description provided.