[PR #4574] [MERGED] feat(conversation): add Long-Term Memory settings #6430

Closed
opened 2026-10-23 04:10:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4574
Author: @Promansis
Created: 8/4/2026
Status: ✅ Merged
Merged: 8/4/2026
Merged by: @SpicyMarinara

Base: staging ← Head: feature(conversation)/ltm-toggle


📝 Commits (8)

  • 4f0a9e9 feat(conversation): add long-term memory toggle
  • 496c1dd feat(conversation): refine long-term memory settings
  • a2f610f feat(conversation): add long-term memory toggle
  • a15ddda feat(conversation): refine long-term memory settings
  • e21975b Merge origin feature branch after staging update
  • 8377540 fix(conversation): address review findings
  • e93b960 Merge branch 'staging' into feature(conversation)/ltm-toggle
  • f59dac1 Merge branch 'staging' into feature(conversation)/ltm-toggle

📊 Changes

4 files changed (+262 additions, -20 deletions)

View changed files

📝 e2e/core-flows.e2e.ts (+175 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+74 -20)
📝 packages/client/src/localization/locales/en.json (+3 -0)
📝 scripts/regressions/capability-package-lifecycle.regression.ts (+10 -0)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #4561

Why this change

  • Conversation users need a clear way to activate Long-Term Memory from Chat Settings instead of relying on package guidance for the generic Misc Agents path.

What changed

  • Moved the Conversation Long-Term Memory control below Conversation Calls in the Agents settings surface.
  • Reused the shared AgentSettingsCard visual pattern and the package-owned settings surface used by Roleplay.
  • Passed Long-Term Memory recall settings and host callbacks through the existing capability boundary without adding a new schema or API.
  • Added desktop and mobile Playwright coverage for ordering, recall controls, activation, and persistence.
  • Updated the capability lifecycle regression assertion for the new Conversation layout.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Focused Playwright coverage passed for desktop-chromium and mobile-chromium.
  • Capability package lifecycle regression passed after rebuilding shared outputs.
  • UI detector reported no findings for the changed settings drawer.
  • git diff --check passed.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

The focused desktop and mobile Playwright run covers the Conversation settings layout and controls.

Summary by CodeRabbit

  • New Features

    • Long-Term Memory can now be enabled or disabled per conversation in chat settings.
    • Long-Term Memory settings persist across sessions.
    • Long-Term Memory works independently alongside other active agents.
    • Added access to Long-Term Memory settings from relevant chat and agent controls.
  • Bug Fixes

    • Added clear feedback when Long-Term Memory updates fail.
  • Tests

    • Added end-to-end and regression coverage for Long-Term Memory chat settings.

🔄 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-Engine/pull/4574 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 8/4/2026 **Status:** ✅ Merged **Merged:** 8/4/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `feature(conversation)/ltm-toggle` --- ### 📝 Commits (8) - [`4f0a9e9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4f0a9e9add1abd252be55e4b732478b22a45a038) feat(conversation): add long-term memory toggle - [`496c1dd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/496c1dd49f5e8dcf40e97ab6dbb70a8d27bd98ae) feat(conversation): refine long-term memory settings - [`a2f610f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a2f610fb20ae979ad32490982143fdcff67e9a44) feat(conversation): add long-term memory toggle - [`a15ddda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a15dddac65474b52deb327caec5c2c0fed071a8e) feat(conversation): refine long-term memory settings - [`e21975b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e21975b3cbbbe1081dbd7eae330ad2e205bab1b6) Merge origin feature branch after staging update - [`8377540`](https://github.com/Pasta-Devs/Marinara-Engine/commit/83775401a29044dbfdcc56501f08b4816096355e) fix(conversation): address review findings - [`e93b960`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e93b960fb4101f0fd5dd77e557a2adfba0ca4bd4) Merge branch 'staging' into feature(conversation)/ltm-toggle - [`f59dac1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f59dac168f046cb6a8001e519f26b453765f8d9b) Merge branch 'staging' into feature(conversation)/ltm-toggle ### 📊 Changes **4 files changed** (+262 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `e2e/core-flows.e2e.ts` (+175 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+74 -20) 📝 `packages/client/src/localization/locales/en.json` (+3 -0) 📝 `scripts/regressions/capability-package-lifecycle.regression.ts` (+10 -0) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue Closes #4561 ## Why this change - Conversation users need a clear way to activate Long-Term Memory from Chat Settings instead of relying on package guidance for the generic Misc Agents path. ## What changed - Moved the Conversation Long-Term Memory control below Conversation Calls in the Agents settings surface. - Reused the shared `AgentSettingsCard` visual pattern and the package-owned settings surface used by Roleplay. - Passed Long-Term Memory recall settings and host callbacks through the existing capability boundary without adding a new schema or API. - Added desktop and mobile Playwright coverage for ordering, recall controls, activation, and persistence. - Updated the capability lifecycle regression assertion for the new Conversation layout. ## Validation - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Focused Playwright coverage passed for `desktop-chromium` and `mobile-chromium`. - Capability package lifecycle regression passed after rebuilding shared outputs. - UI detector reported no findings for the changed settings drawer. - `git diff --check` passed. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) The focused desktop and mobile Playwright run covers the Conversation settings layout and controls. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Long-Term Memory can now be enabled or disabled per conversation in chat settings. * Long-Term Memory settings persist across sessions. * Long-Term Memory works independently alongside other active agents. * Added access to Long-Term Memory settings from relevant chat and agent controls. * **Bug Fixes** * Added clear feedback when Long-Term Memory updates fail. * **Tests** * Added end-to-end and regression coverage for Long-Term Memory chat settings. <!-- 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-23 04:10:20 +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-Engine#6430
No description provided.