[GH-ISSUE #1980] soup/ long-term-memory: one "Memories from chats" choice instead of four hands-off switches #1854

Closed
opened 2026-11-07 16:37:07 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @Promansis on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1980

Originally assigned to: @Promansis on GitHub.

Part of S.O.U.P. 🥣
Simplify · Organize · Unify · Polish

An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.

What problem does this solve?

Long-Term Memory 1.5.19 (#1962, PR #1963) and 1.5.20 (#1964, PR #1970) made it possible to collect memories with no manual steps. The engine side works (sources/auto-import-job.ts). The way users reach it does not: it is four separate switches at the bottom of the Extraction tab.

Voices. These are hypotheses written from the source, because no baseline walkthrough has run on the Engine yet:

  • "I have no idea what I'm doing.": "I turned memory on in the guide. Why does it remember nothing unless I import things myself?" The setup guide never offers the hands-off mode.
  • "I have a NanoGPT account, where do I put it?": "I want this chat to collect memories on its own. I'd look in the chat's own settings, next to the memory switch." Chat Settings has no sign of automatic memory, and the switch that controls it says "this chat" while it applies to the whole vault.
  • "A Thing should look and behave the same everywhere.": "Other settings here are one select with a Global default chip. Why is this one four switches that can contradict each other?"

Proposed package or change

Replace the four switches with one choice, "Memories from chats", that has three options:

Option Today's switches
I add them myself import off, accept off (today's default)
Collect them, I'll review import on, accept off
Save them for me import on, accept on (safe changes only; the rest still waits in Review)

"Hide remembered messages from the AI" stays a separate switch. It now only hides messages whose memories are saved, never messages whose memories are still waiting in review.

The choice is offered where a new user looks for it:

  • Setup guide, step 3 (Activate): the choice uses pressed buttons, the same style as the step-4 source choice. Below them, an "After a reply" sample shows what will happen.
  • Chat Settings: "Memories from this chat" select with the Global default chip and a "Use global default" button, then a live status line ("2 saved today · 1 waits for you · Review"), or a "Needs an extraction connection · Choose" warning.
  • Settings → Extraction: "Memories from chats" select first (the global default), with a sample line, then the connection field and model settings.

Mockup: soup-ltm-hands-off.html, attached to this issue as a zip (GitHub does not accept .html attachments). It is a single self-contained file that opens from file://. It was checked in both themes at 390, 768 and 1440 px. The "Mockup notes" button (off by default) shows the notes, the harness (theme, width, recaps yes/no, old Engine) and the "Where things moved" table.

It is built on the Engine's tokens and existing LTM controls, with no new control styles:

  • Native select with compactInputClass and an info popover, as in Chat Settings Recall style (ChatSettings.tsx:77-121).
  • The pressed Button (primary, aria-pressed) of the guide's source choice (Onboarding.tsx:662-679).
  • StatusSurface tones (shared-controls.tsx:351). The warning uses the strong editor border and an icon, because no Engine defines a warning colour.
  • --ltm-success plus a check icon for success, never the bare accent (docs/UI.md).
  • The existing Global default chip.

Stand-ins: Inter stands in for the Engine's Straight Quotes, the "M" tile for Mari's sprite, and the "i" title for InfoPopover.

Persona walkthrough merge table: not run yet (see Next steps).

Where things moved

Thing Today Proposed
Import new chat sources automatically Settings → Extraction, Hands-off group (settings/MemorySettings.tsx:1096-1129) Part of "Memories from chats" (guide step 3, Chat Settings, top of Extraction)
Accept safe changes automatically Same group Part of "Memories from chats" ("Save them for me")
Hide remembered messages Same group Stays in Extraction, with the hint "Your latest messages always stay. Turning this off shows them again."
Advanced Memory scene recaps Extraction, enabled on any Engine Disabled with a note on Engines without the host call
Missing extraction connection An Activity row only A warning with "Choose" in Chat Settings and next to the select
Backfill of older recaps "Recaps per batch" field and repeated presses (sources/SourcesWorkspace.tsx:1654-1695) One "Read N older recaps" button with progress, Stop and resume

Inventory and findings

# Finding Where S.O.U.P. rule
1 The hands-off switches are hidden at the end of the Extraction tab, and the guide never offers them settings/MemorySettings.tsx:1096-1129, onboarding/Onboarding.tsx Organize; the question
2 Four switches make up one mode. Import on + accept off + hide on hides messages from the AI while their memories still wait in review MemorySettings.tsx, hide logic Simplify; data-loss-adjacent
3 autoImportChatSourcesHelp says "this chat", but the setting covers the whole vault (getLtmExtractionConfig(root)) locales/en.json Polish (wrong copy)
4 A missing extraction connection shows only as an Activity row Activity, auto-import job Guide, don't explain
5 Copy that names a path: underTheHoodReview (en.json:274), recallFailed (en.json:231) locales/en.json Red flag: path copy
6 Copy that is wrong when auto-accept is on: youReSetUpIntro and the re-extract copy locales/en.json Polish
7 useAdvancedMemory is not disabled on old Engines MemorySettings.tsx Guide, don't explain
8 The backfill needs a "Recaps per batch" field and repeated presses sources/SourcesWorkspace.tsx:1654-1695 Simplify
9 Chat Settings shows no sign of automatic memory ChatSettings.tsx Organize; preview window

Leave as is: the engine import job, the safe-change rules in auto-accept and the Activity rows. They are correct, and the new UI only reads them.

PR order (split with /marinara-bundle)

Each PR is a patch release. No minor bump.

  1. Copy fixes (findings 3, 5, 6, 7). Locales and the old-Engine disable only.
  2. Connection warning and Chat Settings status line (4, 9). Reads existing state; no settings change.
  3. One-press backfill (8).
  4. The single choice, placed in the guide, Chat Settings (per-chat override in chat metadata) and Extraction (1, 2). Hide waits for saved memories.

Documentation each PR updates

  • packages/long-term-memory/docs/UI.md:
    • the Hands-off paragraph in Settings (the "The Extraction tab ends its model settings with a Hands-off group" passage, ~line 184);
    • the Hide paragraph just above it;
    • the Chat Settings row in the surface map (line 20);
    • "Settings and Chat Settings" (line 198);
    • the setup-guide steps.
  • packages/long-term-memory/docs/ARCHITECTURE.md (PR 4 only): the per-chat override and how it resolves against the global default.
  • packages/long-term-memory/README.md: how to turn on automatic memories.
  • packages/long-term-memory/CHANGELOG.md: one patch entry per PR.
  • packages/long-term-memory/locales/en.json: new and changed keys. Other locales follow scripts/validate-package-locales.mjs.

Why should this be optional?

It already is. Long-Term Memory is an optional catalog package, and this changes only its own UI and settings. The Engine core does not change, apart from what decision 1 might need.

Alternatives considered

  • Keep the four switches and add them to the guide. Rejected: this keeps the contradictory combination (finding 2) and puts four decisions in front of a new user.
  • Radio cards with descriptions. Rejected after mockup review: LTM has no radio-card control, and the maintainer asked that the look not drift from LTM's. The existing select and pressed-button controls cover it.
  • A separate "Automatic memory" tab. Rejected: a new screen where existing rows can hold the setting.

Additional context

Maintainer approval

On 2026-10-31 the maintainer approved the mockup, "as long as we aren't deviating from the existing fonts/look of the LTM too much, and everything is documented."

The mockup was then aligned with the existing LTM controls listed above. It has no invented warning or success colours and no new control styles. The documentation list above is part of the scope.

Decisions (resolved by the maintainer on 2026-10-31)

  1. Per-chat choice: yes. Chat Settings gets its own "Memories from this chat" value, with "Use global default" to clear it.
    • Storage: chat metadata, falling back to the vault's extraction config. This is the pattern Recall style already uses (chatMetadata.longTermMemoryRecallStyle ?? global, runtime-settings.ts:104-110).
    • Where the chat's mode applies:
      • the arm check in recall/generation-injection.ts:251;
      • the re-check in sources/auto-import-job.ts:125 (the job already loads the chat at line 126);
      • the accept step of that run.
    • Engine: no change expected. Confirm this at Start.
  2. Manual imports under "Save them for me": yes. A manual Sources import also saves its safe memories automatically. The rest wait in the Review Queue, as the accept switch does today.
  3. Defaults: yes. The guide preselects "Save them for me" for new setups. Existing vaults map their current switches to a mode and see no change until they choose.

Behaviour change to note in the CHANGELOG for PR 4: Hide now waits until memories are saved.

Next steps

  • Optional before PR 4: the S.O.U.P. persona walkthrough. The baseline runs on the Engine first; then one run on the mockup.
  • Implementation owner: Promansis (bundle).

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/1980 Originally assigned to: @Promansis on GitHub. > **Part of S.O.U.P. 🥣** > **S**implify · **O**rganize · **U**nify · **P**olish > > *An intuitive Marinara, built on clear interaction rules, thoughtful UX, and a cohesive, polished UI.* ## What problem does this solve? Long-Term Memory 1.5.19 (#1962, PR #1963) and 1.5.20 (#1964, PR #1970) made it possible to collect memories with no manual steps. The engine side works (`sources/auto-import-job.ts`). The way users reach it does not: it is four separate switches at the bottom of the Extraction tab. Voices. These are **hypotheses** written from the source, because no baseline walkthrough has run on the Engine yet: - *"I have no idea what I'm doing."*: "I turned memory on in the guide. Why does it remember nothing unless I import things myself?" The setup guide never offers the hands-off mode. - *"I have a NanoGPT account, where do I put it?"*: "I want this chat to collect memories on its own. I'd look in the chat's own settings, next to the memory switch." Chat Settings has no sign of automatic memory, and the switch that controls it says "this chat" while it applies to the whole vault. - *"A Thing should look and behave the same everywhere."*: "Other settings here are one select with a Global default chip. Why is this one four switches that can contradict each other?" ## Proposed package or change Replace the four switches with one choice, **"Memories from chats"**, that has three options: | Option | Today's switches | | --- | --- | | I add them myself | import off, accept off (today's default) | | Collect them, I'll review | import on, accept off | | Save them for me | import on, accept on (safe changes only; the rest still waits in Review) | "Hide remembered messages from the AI" stays a separate switch. It now only hides messages whose memories are **saved**, never messages whose memories are still waiting in review. The choice is offered where a new user looks for it: - **Setup guide, step 3 (Activate):** the choice uses pressed buttons, the same style as the step-4 source choice. Below them, an "After a reply" sample shows what will happen. - **Chat Settings:** "Memories from this chat" select with the Global default chip and a "Use global default" button, then a live status line ("2 saved today · 1 waits for you · Review"), or a "Needs an extraction connection · Choose" warning. - **Settings → Extraction:** "Memories from chats" select first (the global default), with a sample line, then the connection field and model settings. **Mockup:** `soup-ltm-hands-off.html`, attached to this issue as a zip (GitHub does not accept `.html` attachments). It is a single self-contained file that opens from `file://`. It was checked in both themes at 390, 768 and 1440 px. The "Mockup notes" button (off by default) shows the notes, the harness (theme, width, recaps yes/no, old Engine) and the "Where things moved" table. It is built on the Engine's tokens and existing LTM controls, with no new control styles: - Native `select` with `compactInputClass` and an info popover, as in Chat Settings Recall style (`ChatSettings.tsx:77-121`). - The pressed `Button` (`primary`, `aria-pressed`) of the guide's source choice (`Onboarding.tsx:662-679`). - `StatusSurface` tones (`shared-controls.tsx:351`). The warning uses the strong editor border and an icon, because no Engine defines a warning colour. - `--ltm-success` plus a check icon for success, never the bare accent (`docs/UI.md`). - The existing Global default chip. Stand-ins: Inter stands in for the Engine's Straight Quotes, the "M" tile for Mari's sprite, and the "i" title for InfoPopover. Persona walkthrough merge table: not run yet (see Next steps). ### Where things moved | Thing | Today | Proposed | | --- | --- | --- | | Import new chat sources automatically | Settings → Extraction, Hands-off group (`settings/MemorySettings.tsx:1096-1129`) | Part of "Memories from chats" (guide step 3, Chat Settings, top of Extraction) | | Accept safe changes automatically | Same group | Part of "Memories from chats" ("Save them for me") | | Hide remembered messages | Same group | Stays in Extraction, with the hint "Your latest messages always stay. Turning this off shows them again." | | Advanced Memory scene recaps | Extraction, enabled on any Engine | Disabled with a note on Engines without the host call | | Missing extraction connection | An Activity row only | A warning with "Choose" in Chat Settings and next to the select | | Backfill of older recaps | "Recaps per batch" field and repeated presses (`sources/SourcesWorkspace.tsx:1654-1695`) | One "Read N older recaps" button with progress, Stop and resume | ### Inventory and findings | # | Finding | Where | S.O.U.P. rule | | --- | --- | --- | --- | | 1 | The hands-off switches are hidden at the end of the Extraction tab, and the guide never offers them | `settings/MemorySettings.tsx:1096-1129`, `onboarding/Onboarding.tsx` | Organize; the question | | 2 | Four switches make up one mode. Import on + accept off + hide on hides messages from the AI while their memories still wait in review | `MemorySettings.tsx`, hide logic | Simplify; data-loss-adjacent | | 3 | `autoImportChatSourcesHelp` says "this chat", but the setting covers the whole vault (`getLtmExtractionConfig(root)`) | `locales/en.json` | Polish (wrong copy) | | 4 | A missing extraction connection shows only as an Activity row | Activity, auto-import job | Guide, don't explain | | 5 | Copy that names a path: `underTheHoodReview` (`en.json:274`), `recallFailed` (`en.json:231`) | `locales/en.json` | Red flag: path copy | | 6 | Copy that is wrong when auto-accept is on: `youReSetUpIntro` and the re-extract copy | `locales/en.json` | Polish | | 7 | `useAdvancedMemory` is not disabled on old Engines | `MemorySettings.tsx` | Guide, don't explain | | 8 | The backfill needs a "Recaps per batch" field and repeated presses | `sources/SourcesWorkspace.tsx:1654-1695` | Simplify | | 9 | Chat Settings shows no sign of automatic memory | `ChatSettings.tsx` | Organize; preview window | Leave as is: the engine import job, the safe-change rules in auto-accept and the Activity rows. They are correct, and the new UI only reads them. ### PR order (split with `/marinara-bundle`) Each PR is a patch release. No minor bump. 1. **Copy fixes** (findings 3, 5, 6, 7). Locales and the old-Engine disable only. 2. **Connection warning and Chat Settings status line** (4, 9). Reads existing state; no settings change. 3. **One-press backfill** (8). 4. **The single choice**, placed in the guide, Chat Settings (per-chat override in chat metadata) and Extraction (1, 2). Hide waits for saved memories. ### Documentation each PR updates - `packages/long-term-memory/docs/UI.md`: - the Hands-off paragraph in Settings (the "The Extraction tab ends its model settings with a Hands-off group" passage, ~line 184); - the Hide paragraph just above it; - the Chat Settings row in the surface map (line 20); - "Settings and Chat Settings" (line 198); - the setup-guide steps. - `packages/long-term-memory/docs/ARCHITECTURE.md` (PR 4 only): the per-chat override and how it resolves against the global default. - `packages/long-term-memory/README.md`: how to turn on automatic memories. - `packages/long-term-memory/CHANGELOG.md`: one patch entry per PR. - `packages/long-term-memory/locales/en.json`: new and changed keys. Other locales follow `scripts/validate-package-locales.mjs`. ## Why should this be optional? It already is. Long-Term Memory is an optional catalog package, and this changes only its own UI and settings. The Engine core does not change, apart from what decision 1 might need. ## Alternatives considered - **Keep the four switches and add them to the guide.** Rejected: this keeps the contradictory combination (finding 2) and puts four decisions in front of a new user. - **Radio cards with descriptions.** Rejected after mockup review: LTM has no radio-card control, and the maintainer asked that the look not drift from LTM's. The existing select and pressed-button controls cover it. - **A separate "Automatic memory" tab.** Rejected: a new screen where existing rows can hold the setting. ## Additional context ### Maintainer approval On 2026-10-31 the maintainer approved the mockup, "as long as we aren't deviating from the existing fonts/look of the LTM too much, and everything is documented." The mockup was then aligned with the existing LTM controls listed above. It has no invented warning or success colours and no new control styles. The documentation list above is part of the scope. ### Decisions (resolved by the maintainer on 2026-10-31) 1. **Per-chat choice: yes.** Chat Settings gets its own "Memories from this chat" value, with "Use global default" to clear it. - **Storage:** chat metadata, falling back to the vault's extraction config. This is the pattern Recall style already uses (`chatMetadata.longTermMemoryRecallStyle ?? global`, `runtime-settings.ts:104-110`). - **Where the chat's mode applies:** - the arm check in `recall/generation-injection.ts:251`; - the re-check in `sources/auto-import-job.ts:125` (the job already loads the chat at line 126); - the accept step of that run. - **Engine:** no change expected. Confirm this at Start. 2. **Manual imports under "Save them for me": yes.** A manual Sources import also saves its safe memories automatically. The rest wait in the Review Queue, as the accept switch does today. 3. **Defaults: yes.** The guide preselects "Save them for me" for new setups. Existing vaults map their current switches to a mode and see no change until they choose. Behaviour change to note in the CHANGELOG for PR 4: Hide now waits until memories are saved. ### Next steps - Optional before PR 4: the S.O.U.P. persona walkthrough. The baseline runs on the Engine first; then one run on the mockup. - Implementation owner: Promansis (bundle). ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-11-07 16:37:07 +07:00
  • closed this issue
  • added the
    soup
    label
Author
Owner

@Promansis commented on GitHub (Oct 31, 2026):

Implementation plan. The four entries under "PR order" ship as one bundle: one branch, one PR and one patch release instead of four. They change the same files (Extraction tab, Chat Settings, setup guide, locales, docs/UI.md), so separate PRs would conflict with each other.

One branch and one pull request for these related changes. Each item is implemented, tested and reviewed on its own before it is committed.

  1. Copy fixes and the Advanced Memory disable on old Engines (findings 3, 5, 6, 7)
  2. Connection warning and Chat Settings status line (findings 4, 9)
  3. One-press Advanced Memory backfill (finding 8)
  4. The single "Memories from chats" choice (findings 1, 2; decisions 1–3)

Each item still gets its own CHANGELOG line, and the PR body lists each item's commits so any one item can be undone.

<!-- gh-comment-id:6542957939 --> @Promansis commented on GitHub (Oct 31, 2026): **Implementation plan.** The four entries under "PR order" ship as one bundle: one branch, one PR and one patch release instead of four. They change the same files (Extraction tab, Chat Settings, setup guide, locales, docs/UI.md), so separate PRs would conflict with each other. One branch and one pull request for these related changes. Each item is implemented, tested and reviewed on its own before it is committed. 1. Copy fixes and the Advanced Memory disable on old Engines (findings 3, 5, 6, 7) 2. Connection warning and Chat Settings status line (findings 4, 9) 3. One-press Advanced Memory backfill (finding 8) 4. The single "Memories from chats" choice (findings 1, 2; decisions 1–3) Each item still gets its own CHANGELOG line, and the PR body lists each item's commits so any one item can be undone.
Author
Owner

@Promansis commented on GitHub (Oct 31, 2026):

Shipped in #1986 (LTM 1.5.22), merged to staging as 39e4d07e4.

<!-- gh-comment-id:6545505389 --> @Promansis commented on GitHub (Oct 31, 2026): Shipped in #1986 (LTM 1.5.22), merged to staging as 39e4d07e4.
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#1854
No description provided.