[PR #1437] [MERGED] fix(long-term-memory): one place picker and one place rail (1.4.45) #1462

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

📋 Pull Request Information

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

Base: staging ← Head: fix(long-term-memory)/1420-place-pickers


📝 Commits (3)

  • 91b4b4c fix(long-term-memory): one place picker and one place rail (#1420)
  • 4e75180 chore(long-term-memory): release 1.4.45 (#1420)
  • a36ff6b fix(long-term-memory): toggle a deleted whole chat by its group (#1420)

📊 Changes

27 files changed (+1260 additions, -1754 deletions)

View changed files

➕ artifacts/long-term-memory-1.4.45.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 (+4 -0)
📝 packages/long-term-memory/client.js (+47 -90)
📝 packages/long-term-memory/manifest.json (+3 -3)
➕ packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/AvailabilityTabRail.tsx (+254 -0)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourceScopeCombobox.tsx (+74 -12)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts (+0 -1)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json (+4 -15)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx (+59 -216)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx (+5 -28)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/source-shared.ts (+1 -3)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/BulkAvailabilityWorkbench.tsx (+28 -36)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryAvailabilityWorkbench.tsx (+17 -47)
📝 packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx (+131 -185)

...and 7 more files

📄 Description

Linked issue

Closes #1420

Why this change

Long-Term Memory used four different components to choose a place: two for one place and two for several.

  • One place: the Vault filter was an inline grouped list, and Sources "Find sources in" was a search dropdown.
  • Several places: the Sources import destination was a panel, and the availability editors used a tab rail.

They shared almost no code. Every fix to keyboard keys, labels or collapsing had to be repeated in each one, and releases 1.3.27 and 1.3.29 were spent making them look alike again.

The issue's Minimal fix also drops the Branches tab. A chat with branches becomes one place, and choosing it covers every branch, just as "All branches" did.

What changed

one place      SourceScopeCombobox (moved to the feature root)
                 Vault filter + its second "and" filter   (was vault/VaultScopePicker.tsx, deleted)
                 Sources "Find sources in"
several places AvailabilityTabRail (moved to the feature root from vault/TargetPicker.tsx)
                 single and bulk availability editors
                 Sources "Make memories available in"     (inside DestinationScopePanel; chat-mode checkboxes stay)
tabs           All / Chats / Characters / Personas in both
  • SourceScopeCombobox
    • Optional "With memories" / "No memories" groups, so the Vault keeps its split.
    • A solid popup background, so the page no longer shows through.
    • The Vault's keyboard proof now runs through it.
  • AvailabilityTabRail
    • It opens on All, labels each All row with its kind, and puts its tabs two across below 22rem and four across above.
    • Its list has a bounded height.
  • Chats with branches
    • A chat with branches is one Chats row, named after the chat with "All branches" under it.
    • The Vault filter sends { groupId, chatIds } for every branch.
    • Imports save { groupId, groupIds, chatIds }.
    • "Current" is still the current branch.
  • Existing branch assignments still work
    • The single editor shows them as a "Chat - Branch" chip. Saving other changes keeps the chip, and it can be removed there.
    • Bulk "Remove availability" lists the branch assignments the selected memories already have, under Chats.
  • Sources destination "All chats"
    • It adds every chat that still fits the 100-ID limit and shows as pressed once no more fit. A second press clears them.
  • Deleted whole chats: in the single editor, clicking the row kept for a deleted whole chat now removes its group. Before, it added the group id to chatIds. CodeRabbit found this; the lookup predates this PR.
  • Copy: help text no longer mentions branches. Only en.json ships client copy.
  • Release: long-term-memory 1.4.45. The CHANGELOG entry is shortened to fit the builder's 1000-character release-note cap. The version, manifest, rebuilt client.js, archive and catalog entries are included; server.mjs is unchanged.

Diff without release files:

Added Removed
Source (including CHANGELOG and en.json) 582 1188
Tests 591 436

Decision for the maintainer

The availability editors still save a whole chat as groupIds only, as they did before. Item 7's "choosing one saves { groupId, chatIds }" is proven for the Vault filter request and for imports. If it should also apply to the availability editors, that is a follow-up.

Known and unchanged

  • With about 100 destination chips, the destination rail shrinks to almost no height. The old list collapsed the same way. The browser test clicks through the DOM at that step and marks it with a ponytail: comment.
  • The Vault folds the primary chat's character into every conversation place. While such a chat is the primary place, every place can show under "With memories".
  • The single review pass found these Lows, which were left unchanged:
    • Focus after the unsaved-changes prompt (new): focus is lost because the popup closes after the choice. Fix: close the popup before applying the choice.
    • "No memories" during a search: changing tab during a search collapses the group. The old picker did the same.
    • Removed shortcuts: the CHANGELOG doesn't mention them. They are:
      • the Vault "Current" character and persona rows;
      • the destination "Current", "All characters" and "All personas" rows;
      • rows past the limit being disabled.
    • Dead helper: deriveScopeBranches is now used only by its own test.

Package and security impact

  • Affected package IDs: long-term-memory
  • Engine compatibility impact: none. The client reads the same Engine chat fields as before.
  • New or changed permissions/entrypoints: none
  • Restart, storage, update, or uninstall impact:
    • No storage, schema or migration change.
    • Existing branch assignments are read and saved unchanged unless someone removes them.
    • Downgrading is safe.

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

The coding agent ran these checks; no person has run them yet. Environment: Engine checkout 2039583ca, Node v24.15.0.

tests/long-term-memory-browser.regression.ts was rewritten so that each place kind is chosen in a real browser:

  • Vault filter
    • All, a whole chat, Current, a character and a persona are each chosen by keyboard.
    • A whole chat, a character and a persona are each chosen by search.
    • Each time, the notes request carries the chosen scope.
  • Groups
    • "With memories" and "No memories" behave as before.
    • Searching a branch name finds its chat.
  • Availability editor
    • It opens on All with four tabs.
    • A persona is added by search, a character by keyboard, and a whole chat and a plain chat by click.
    • The saved PATCH holds chatIds, groupIds, characterIds and personaIds.
  • Branch-assigned memory
    • The memory's "Chat - Branch" chip survives a save.
    • Bulk Remove offers the branch under Chats and sends removeScope: { chatIds: [branch] }.
    • Removing the chip in the single editor drops it on save.
  • Sources
    • The destination opens on All, with "All chats" limit behaviour and the bounded list on desktop and at 320px.
    • A character is added by search.
    • A whole-chat lorebook import persists { chatId, chatIds, groupId, groupIds }.

Release HEAD 4e75180fc, and again on the CodeRabbit repair a36ff6bc9. These all exited 0 on both:

  • the package rebuild, which reproduced the committed outputs with a clean tree;
  • test-fast.sh (npm run check and git diff --check);
  • typecheck-packages long-term-memory;
  • validate-catalog, test-catalog-lanes, validate-package-locales and catalog-release-notes;
  • tests/long-term-memory-feedback-clarity-ui.regression.mjs;
  • test-ltm.sh with scope-targets, scope-fallback-labels, loading and browser.

The browser run before the change also passed.

Not run: an install or update through a running Marinara Engine, and a check on a real phone.

Documentation impact

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

UI evidence (if applicable)

None attached. The browser regression drives the controls headlessly.

🤖 Generated with Claude Code


🔄 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/1437 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 10/17/2026 **Status:** ✅ Merged **Merged:** 10/17/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `staging` ← **Head:** `fix(long-term-memory)/1420-place-pickers` --- ### 📝 Commits (3) - [`91b4b4c`](https://github.com/Pasta-Devs/Marinara-Agents/commit/91b4b4cbd99798b06bf744c051dde65c99681904) fix(long-term-memory): one place picker and one place rail (#1420) - [`4e75180`](https://github.com/Pasta-Devs/Marinara-Agents/commit/4e75180fc60a77602c0ed703086dba4b8ddbb972) chore(long-term-memory): release 1.4.45 (#1420) - [`a36ff6b`](https://github.com/Pasta-Devs/Marinara-Agents/commit/a36ff6bc9ed6dc9fd52dcff0fee554a4d4326e56) fix(long-term-memory): toggle a deleted whole chat by its group (#1420) ### 📊 Changes **27 files changed** (+1260 additions, -1754 deletions) <details> <summary>View changed files</summary> ➕ `artifacts/long-term-memory-1.4.45.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` (+4 -0) 📝 `packages/long-term-memory/client.js` (+47 -90) 📝 `packages/long-term-memory/manifest.json` (+3 -3) ➕ `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/AvailabilityTabRail.tsx` (+254 -0) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/SourceScopeCombobox.tsx` (+74 -12) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/display-labels.ts` (+0 -1) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/locales/en.json` (+4 -15) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/DestinationScopePanel.tsx` (+59 -216) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/SourcesWorkspace.tsx` (+5 -28) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/sources/source-shared.ts` (+1 -3) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/BulkAvailabilityWorkbench.tsx` (+28 -36) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryAvailabilityWorkbench.tsx` (+17 -47) 📝 `packages/long-term-memory/src/engine/packages/client/src/features/long-term-memory/vault/MemoryVault.tsx` (+131 -185) _...and 7 more files_ </details> ### 📄 Description ## Linked issue Closes #1420 ## Why this change Long-Term Memory used four different components to choose a place: two for one place and two for several. - **One place:** the Vault filter was an inline grouped list, and Sources "Find sources in" was a search dropdown. - **Several places:** the Sources import destination was a panel, and the availability editors used a tab rail. They shared almost no code. Every fix to keyboard keys, labels or collapsing had to be repeated in each one, and releases 1.3.27 and 1.3.29 were spent making them look alike again. The issue's Minimal fix also drops the Branches tab. A chat with branches becomes one place, and choosing it covers every branch, just as "All branches" did. ## What changed ```text one place SourceScopeCombobox (moved to the feature root) Vault filter + its second "and" filter (was vault/VaultScopePicker.tsx, deleted) Sources "Find sources in" several places AvailabilityTabRail (moved to the feature root from vault/TargetPicker.tsx) single and bulk availability editors Sources "Make memories available in" (inside DestinationScopePanel; chat-mode checkboxes stay) tabs All / Chats / Characters / Personas in both ``` - **`SourceScopeCombobox`** - Optional "With memories" / "No memories" groups, so the Vault keeps its split. - A solid popup background, so the page no longer shows through. - The Vault's keyboard proof now runs through it. - **`AvailabilityTabRail`** - It opens on All, labels each All row with its kind, and puts its tabs two across below 22rem and four across above. - Its list has a bounded height. - **Chats with branches** - A chat with branches is one Chats row, named after the chat with "All branches" under it. - The Vault filter sends `{ groupId, chatIds }` for every branch. - Imports save `{ groupId, groupIds, chatIds }`. - "Current" is still the current branch. - **Existing branch assignments still work** - The single editor shows them as a "Chat - Branch" chip. Saving other changes keeps the chip, and it can be removed there. - Bulk "Remove availability" lists the branch assignments the selected memories already have, under Chats. - **Sources destination "All chats"** - It adds every chat that still fits the 100-ID limit and shows as pressed once no more fit. A second press clears them. - **Deleted whole chats:** in the single editor, clicking the row kept for a deleted whole chat now removes its group. Before, it added the group id to `chatIds`. CodeRabbit found this; the lookup predates this PR. - **Copy:** help text no longer mentions branches. Only `en.json` ships client copy. - **Release:** `long-term-memory` 1.4.45. The CHANGELOG entry is shortened to fit the builder's 1000-character release-note cap. The version, manifest, rebuilt `client.js`, archive and catalog entries are included; `server.mjs` is unchanged. Diff without release files: | | Added | Removed | | --- | --- | --- | | Source (including CHANGELOG and `en.json`) | 582 | 1188 | | Tests | 591 | 436 | ### Decision for the maintainer The availability editors still save a whole chat as `groupIds` only, as they did before. Item 7's "choosing one saves `{ groupId, chatIds }`" is proven for the Vault filter request and for imports. If it should also apply to the availability editors, that is a follow-up. ### Known and unchanged - With about 100 destination chips, the destination rail shrinks to almost no height. The old list collapsed the same way. The browser test clicks through the DOM at that step and marks it with a `ponytail:` comment. - The Vault folds the primary chat's character into every conversation place. While such a chat is the primary place, every place can show under "With memories". - The single review pass found these Lows, which were left unchanged: - **Focus after the unsaved-changes prompt (new):** focus is lost because the popup closes after the choice. Fix: close the popup before applying the choice. - **"No memories" during a search:** changing tab during a search collapses the group. The old picker did the same. - **Removed shortcuts:** the CHANGELOG doesn't mention them. They are: - the Vault "Current" character and persona rows; - the destination "Current", "All characters" and "All personas" rows; - rows past the limit being disabled. - **Dead helper:** `deriveScopeBranches` is now used only by its own test. ## Package and security impact - Affected package IDs: `long-term-memory` - Engine compatibility impact: none. The client reads the same Engine chat fields as before. - New or changed permissions/entrypoints: none - Restart, storage, update, or uninstall impact: - No storage, schema or migration change. - Existing branch assignments are read and saved unchanged unless someone removes them. - Downgrading is safe. ## 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 The coding agent ran these checks; no person has run them yet. Environment: Engine checkout `2039583ca`, Node `v24.15.0`. **`tests/long-term-memory-browser.regression.ts`** was rewritten so that each place kind is chosen in a real browser: - **Vault filter** - All, a whole chat, Current, a character and a persona are each chosen by keyboard. - A whole chat, a character and a persona are each chosen by search. - Each time, the notes request carries the chosen scope. - **Groups** - "With memories" and "No memories" behave as before. - Searching a branch name finds its chat. - **Availability editor** - It opens on All with four tabs. - A persona is added by search, a character by keyboard, and a whole chat and a plain chat by click. - The saved PATCH holds `chatIds`, `groupIds`, `characterIds` and `personaIds`. - **Branch-assigned memory** - The memory's "Chat - Branch" chip survives a save. - Bulk Remove offers the branch under Chats and sends `removeScope: { chatIds: [branch] }`. - Removing the chip in the single editor drops it on save. - **Sources** - The destination opens on All, with "All chats" limit behaviour and the bounded list on desktop and at 320px. - A character is added by search. - A whole-chat lorebook import persists `{ chatId, chatIds, groupId, groupIds }`. **Release HEAD `4e75180fc`, and again on the CodeRabbit repair `a36ff6bc9`.** These all exited 0 on both: - the package rebuild, which reproduced the committed outputs with a clean tree; - `test-fast.sh` (`npm run check` and `git diff --check`); - `typecheck-packages long-term-memory`; - `validate-catalog`, `test-catalog-lanes`, `validate-package-locales` and `catalog-release-notes`; - `tests/long-term-memory-feedback-clarity-ui.regression.mjs`; - `test-ltm.sh` with `scope-targets`, `scope-fallback-labels`, `loading` and `browser`. The browser run before the change also passed. Not run: an install or update through a running Marinara Engine, and a check on a real phone. ## Documentation impact - [ ] No documentation changes needed - [ ] Updated this README catalog and package guidance - [ ] Updated linked Marinara Engine documentation ## UI evidence (if applicable) None attached. The browser regression drives the controls headlessly. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-21 05:11:45 +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#1462
No description provided.