[PR #701] [MERGED] feat(long-term-memory): unify multi-select destination picker #1098

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

📋 Pull Request Information

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

Base: staging ← Head: feature(long-term-memory)/unified-destination-picker


📝 Commits (9)

  • 4299023 feat(long-term-memory): unify multi-select destination picker (#700)
  • 3cc2692 test(long-term-memory): fix review context retry race in lifecycle regression
  • 25e7491 test(long-term-memory): steady single-retry recovery for review context
  • e588fb8 test(long-term-memory): make review pane navigation layout-agnostic
  • fe54eaf fix(long-term-memory): keep destination panel footer from overlapping the list
  • f8cb4ce Merge branch 'staging' into feature(long-term-memory)/unified-destination-picker
  • bc0076f test(long-term-memory): update feedback-clarity contract for unified destination panel
  • 18843f6 fix(long-term-memory): complete destination panel category and persona actions
  • 5f3f0cf fix(long-term-memory): disable destination actions during source tasks

📊 Changes

9 files changed (+518 additions, -674 deletions)

View changed files

📝 artifacts/long-term-memory-1.2.18.zip (+0 -0)
📝 catalog/catalog.json (+4 -4)
📝 catalog/v2/catalog.json (+4 -4)
📝 catalog/v3/catalog.json (+4 -4)
📝 packages/long-term-memory/client.js (+22 -22)
📝 packages/long-term-memory/manifest.json (+2 -2)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx (+289 -459)
📝 tests/long-term-memory-feedback-clarity-ui.regression.mjs (+8 -4)
📝 tests/long-term-memory-lifecycle.regression.ts (+185 -175)

📄 Description

  • Follow-up (5f3f0cf1): disabled both Current and category-wide destination actions while a source task is running, so no destination action can invoke onChange during an active task; rebuilt the Long-Term Memory payload and catalog hashes.

Pull request

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch to main.

Linked issue

Closes #700

Why this change

The Long-Term Memory Sources destination UI was split between a primary ScopeTargetPicker combobox and a separate in-line "Add more locations" editor (BulkDestinationPicker). The primary/additional distinction was user-facing but unnecessary, the editor hid behind a button and pane switch, and long target lists grew the page because the list had no height bound. This PR replaces both with one persistent, multi-select destination panel.

What changed

Affected package: long-term-memory (generated client.js, manifest.json, artifacts/long-term-memory-1.2.18.zip, and catalog/*/catalog.json were rebuilt).

  • New unified DestinationScopePanel owns the complete editor: selected pills, search, category tab rail (All/Chats/Branches/Characters/Personas), pinned Current and category All actions, capacity feedback, and the existing import-mode summary.
  • Unified state: destinationTargetId + additionalDestinationTargetIds → selectedDestinationTargetIds. The first target may still back the result label but is no longer a separate selection concept.
  • Bounded scroll layout: panel is a flex column (min-h-0/max-h); #ltm-bulk-destination-list is the scroll container (min-h-0 flex-1 overflow-y-auto overscroll-contain). Non-scroll children are shrink-0 so the footer never overlaps the list. Desktop 42rem ceiling; mobile min(42rem, calc(100dvh - 8rem)).
  • Removed: ScopeTargetPicker destination usage, BulkDestinationPicker, the Add more locations trigger, and the locationEditorOpen pane-switch plumbing. Source ScopeTargetPicker (testId="source") is untouched.
  • Preserved domain rules: mergedDestinationScope source of truth, 100-ID-per-kind capacity via hasDestinationScopeCapacity/targetFitsDestinationScope, import disabled with no concrete target, no global/undefined destination sent to the import API. Reused existing localization keys (no new strings).

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none (no manifest engine-range change; 2.4.1 <= v < 4.0.0 unchanged, no version bump)
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact: none (UI-only refactor; server/schema unchanged)

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

  • npm run check: 0 errors (only pre-existing warnings elsewhere).
  • git diff --check: passes.
  • CodeRabbit review follow-up (18843f64): the category-wide action now selects every capacity-eligible target in the active category (and adds a Personas "All" action via the current chat's derived personaId), the selected-location remove button is disabled while a source task runs, and the action exposes aria-pressed. The feedback-clarity layout assertions are now bound to each required class's own opening tag, and the lifecycle regression clicks chat:all and asserts the capacity-aware selection.
  • CI: the source-contract regression (long-term-memory-feedback-clarity-ui.regression.mjs) was updated to assert the unified destination panel (bounded ltm-destination-scope-control flex column, ltm-bulk-destination-list scroll container, 100dvh mobile ceiling) instead of the removed BulkDestinationPicker patterns; the GitHub Catalog validation job now passes.
  • validate-package-locales.mjs, test-catalog-lanes.mjs, validate-catalog.mjs, catalog-release-notes.regression.mjs: all pass.
  • Lifecycle regression: this PR also fixes pre-existing blockers encountered while validating — the Review Queue context-retry race and the review pane/mobile source-tab navigation in the wide column layout. The full destination-picker section now passes end-to-end in the Engine-backed run, including both merged-scope import intercepts, capacity limits, search, keyboard, and the desktop and mobile scroll behavior.
  • Remaining gap (recorded, not claimed as covered): the regression still fails at the very end in the mobile Settings/onboarding section (line ~3476+), which is unrelated to this PR. In this environment those elements render in the DOM as display:none, so Playwright reports them as not visible. This is a pre-existing, environment-specific rendering issue (unreachable on base, which died earlier) rather than a defect introduced here, so the install/update checkboxes remain unticked.

Documentation impact

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

UI evidence (if applicable)

Engine-backed visual/mobile proof for the Sources destination panel was exercised through the lifecycle regression (the panel, imports, and scroll behave correctly); screenshots were not captured in this environment. The unrelated mobile Settings tail could not complete here and is recorded explicitly rather than claimed.

Summary by CodeRabbit

  • New Features

    • Added a unified destination-scope panel for source imports.
    • Select destinations by category, search available options, review selections, and manage multiple targets in one place.
    • Added clearer capacity limits and improved support for mobile and wider layouts.
  • Bug Fixes

    • Improved workspace pane switching across responsive layouts.
    • Simplified review-context recovery so a single retry restores the workspace.
  • Tests

    • Expanded coverage for destination selection, navigation, scrolling, capacity limits, and mobile behavior.

🔄 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/701 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 9/3/2026 **Status:** ✅ Merged **Merged:** 9/3/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `feature(long-term-memory)/unified-destination-picker` --- ### 📝 Commits (9) - [`4299023`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4299023ae49e2e8dcf0793073b7f722c2acff73c) feat(long-term-memory): unify multi-select destination picker (#700) - [`3cc2692`](https://github.com/Pasta-Devs/Marinara-Agents/commit/3cc26929b2074548256741c81518264a03b299cf) test(long-term-memory): fix review context retry race in lifecycle regression - [`25e7491`](https://github.com/Pasta-Devs/Marinara-Agents/commit/25e7491b3cda578b948c82d6af0046a9b855d608) test(long-term-memory): steady single-retry recovery for review context - [`e588fb8`](https://github.com/Pasta-Devs/Marinara-Agents/commit/e588fb8ec3ccf632e1d1d95a3c2f87404c84f8b7) test(long-term-memory): make review pane navigation layout-agnostic - [`fe54eaf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/fe54eaf809658293e262df51c6d348ef3eea300c) fix(long-term-memory): keep destination panel footer from overlapping the list - [`f8cb4ce`](https://github.com/Pasta-Devs/Marinara-Agents/commit/f8cb4cece4608a4b249587342b5a2af66115f674) Merge branch 'staging' into feature(long-term-memory)/unified-destination-picker - [`bc0076f`](https://github.com/Pasta-Devs/Marinara-Agents/commit/bc0076ff73ba2b447c58a8660ba05f08610dd32d) test(long-term-memory): update feedback-clarity contract for unified destination panel - [`18843f6`](https://github.com/Pasta-Devs/Marinara-Agents/commit/18843f6463351b5520cd54f639739474d1f09a98) fix(long-term-memory): complete destination panel category and persona actions - [`5f3f0cf`](https://github.com/Pasta-Devs/Marinara-Agents/commit/5f3f0cf1795faf677ece888be69fe65b91388192) fix(long-term-memory): disable destination actions during source tasks ### 📊 Changes **9 files changed** (+518 additions, -674 deletions) <details> <summary>View changed files</summary> 📝 `artifacts/long-term-memory-1.2.18.zip` (+0 -0) 📝 `catalog/catalog.json` (+4 -4) 📝 `catalog/v2/catalog.json` (+4 -4) 📝 `catalog/v3/catalog.json` (+4 -4) 📝 `packages/long-term-memory/client.js` (+22 -22) 📝 `packages/long-term-memory/manifest.json` (+2 -2) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourcesWorkspace.tsx` (+289 -459) 📝 `tests/long-term-memory-feedback-clarity-ui.regression.mjs` (+8 -4) 📝 `tests/long-term-memory-lifecycle.regression.ts` (+185 -175) </details> ### 📄 Description - Follow-up (`5f3f0cf1`): disabled both `Current` and category-wide destination actions while a source task is running, so no destination action can invoke `onChange` during an active task; rebuilt the Long-Term Memory payload and catalog hashes. # Pull request > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch to `main`. <!-- Open as a draft while implementation is in progress. --> ## Linked issue Closes #700 ## Why this change The Long-Term Memory Sources destination UI was split between a primary `ScopeTargetPicker` combobox and a separate in-line "Add more locations" editor (`BulkDestinationPicker`). The primary/additional distinction was user-facing but unnecessary, the editor hid behind a button and pane switch, and long target lists grew the page because the list had no height bound. This PR replaces both with one persistent, multi-select destination panel. ## What changed Affected package: `long-term-memory` (generated `client.js`, `manifest.json`, `artifacts/long-term-memory-1.2.18.zip`, and `catalog/*/catalog.json` were rebuilt). - **New unified `DestinationScopePanel`** owns the complete editor: selected pills, search, category tab rail (`All`/`Chats`/`Branches`/`Characters`/`Personas`), pinned `Current` and category `All` actions, capacity feedback, and the existing import-mode summary. - **Unified state**: `destinationTargetId` + `additionalDestinationTargetIds` → `selectedDestinationTargetIds`. The first target may still back the result label but is no longer a separate selection concept. - **Bounded scroll layout**: panel is a flex column (`min-h-0`/`max-h`); `#ltm-bulk-destination-list` is the scroll container (`min-h-0 flex-1 overflow-y-auto overscroll-contain`). Non-scroll children are `shrink-0` so the footer never overlaps the list. Desktop `42rem` ceiling; mobile `min(42rem, calc(100dvh - 8rem))`. - **Removed**: `ScopeTargetPicker` destination usage, `BulkDestinationPicker`, the `Add more locations` trigger, and the `locationEditorOpen` pane-switch plumbing. Source `ScopeTargetPicker` (`testId="source"`) is untouched. - Preserved domain rules: `mergedDestinationScope` source of truth, 100-ID-per-kind capacity via `hasDestinationScopeCapacity`/`targetFitsDestinationScope`, import disabled with no concrete target, no global/undefined destination sent to the import API. Reused existing localization keys (no new strings). ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none (no manifest engine-range change; `2.4.1 <= v < 4.0.0` unchanged, no version bump) - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: none (UI-only refactor; server/schema unchanged) ## Validation <!-- These are human tasks. Never tick a box for a check that was not actually performed. --> - [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 - `npm run check`: 0 errors (only pre-existing warnings elsewhere). - `git diff --check`: passes. - CodeRabbit review follow-up (`18843f64`): the category-wide action now selects every capacity-eligible target in the active category (and adds a Personas "All" action via the current chat's derived personaId), the selected-location remove button is disabled while a source task runs, and the action exposes `aria-pressed`. The feedback-clarity layout assertions are now bound to each required class's own opening tag, and the lifecycle regression clicks `chat:all` and asserts the capacity-aware selection. - CI: the source-contract regression (`long-term-memory-feedback-clarity-ui.regression.mjs`) was updated to assert the unified destination panel (bounded `ltm-destination-scope-control` flex column, `ltm-bulk-destination-list` scroll container, `100dvh` mobile ceiling) instead of the removed `BulkDestinationPicker` patterns; the GitHub **Catalog validation** job now passes. - `validate-package-locales.mjs`, `test-catalog-lanes.mjs`, `validate-catalog.mjs`, `catalog-release-notes.regression.mjs`: all pass. - Lifecycle regression: this PR also fixes pre-existing blockers encountered while validating — the Review Queue context-retry race and the review pane/mobile source-tab navigation in the wide column layout. The full destination-picker section now passes **end-to-end** in the Engine-backed run, including both merged-scope import intercepts, capacity limits, search, keyboard, and the desktop and mobile scroll behavior. - Remaining gap (recorded, not claimed as covered): the regression still fails at the very end in the **mobile Settings/onboarding** section (line ~3476+), which is unrelated to this PR. In this environment those elements render in the DOM as `display:none`, so Playwright reports them as not visible. This is a pre-existing, environment-specific rendering issue (unreachable on base, which died earlier) rather than a defect introduced here, so the install/update checkboxes remain unticked. ## Documentation impact - [x] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) Engine-backed visual/mobile proof for the Sources destination panel was exercised through the lifecycle regression (the panel, imports, and scroll behave correctly); screenshots were not captured in this environment. The unrelated mobile Settings tail could not complete here and is recorded explicitly rather than claimed. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a unified destination-scope panel for source imports. * Select destinations by category, search available options, review selections, and manage multiple targets in one place. * Added clearer capacity limits and improved support for mobile and wider layouts. * **Bug Fixes** * Improved workspace pane switching across responsive layouts. * Simplified review-context recovery so a single retry restores the workspace. * **Tests** * Expanded coverage for destination selection, navigation, scrolling, capacity limits, and mobile behavior. <!-- 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:38 +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#1098
No description provided.