[PR #8175] [MERGED] fix(roleplay): clarify new-chat memory setup #8140

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/8175
Author: @SpicyMarinara
Created: 10/23/2026
Status: ✅ Merged
Merged: 10/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/roleplay-wizard-memory-setup


📝 Commits (2)

  • 4e3d652 chore: start Roleplay memory setup adjustment
  • b00e161 fix(roleplay): clarify memory setup and default excerpts to five

📊 Changes

6 files changed (+36 additions, -8 deletions)

View changed files

📝 docs/agents/memory.md (+1 -1)
📝 e2e/advanced-memory-wizard.e2e.ts (+5 -0)
📝 packages/client/src/components/chat/AdvancedMemorySettings.tsx (+6 -5)
📝 packages/client/src/localization/locales/en.json (+1 -1)
📝 packages/shared/src/types/advanced-memory.ts (+1 -1)
➕ scripts/regressions/advanced-memory-settings-defaults.regression.ts (+22 -0)

📄 Description

Important

Targets staging. Only SpicyMarinara may promote to main. Required checks and Dottore Review remain merge gates.

Linked issue

Closes #8174

Owner: @SpicyMarinara.

Why this change

A new Roleplay chat has no existing history to prepare. Its automatic-memory toggle should identify Advanced Memory Recall clearly, and new excerpt limits should start at the requested five messages.

What changed

  • New Roleplay setup no longer offers Prepare existing history. Existing chats keep that action in Chat Settings → Memory Recall.
  • The Automatic context and memory handling description now names Advanced Memory Recall.
  • The shared maximum excerpt default is five messages. The minimum remains three, and explicit saved limits, including ten and zero, are preserved. The memory guide now documents the 3–5 default range.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked light/dark themes and desktop/mobile viewports
  • Read and followed CONTRIBUTING.md

Automated evidence on b00e1616d57c7d71b5bad0ddd7c9559f40188da8:

  • Pinned pnpm 12.15.0 frozen install and full pnpm check passed, including localization, lint/types and production build; one inherited client effect-dependency warning.
  • node scripts/run-regressions.mjs --filter advanced-memory-settings-defaults --concurrency 1: 1/1 passed. The isolated old-default negative control fails 10 != 5; saved 0/5/10/50 limits survive normalization.
  • Updated canonical Roleplay wizard case: 3/3 passed, desktop Chromium, mobile Chromium and mobile WebKit, with its existing delayed-save and saved-zero assertions preserved.
  • Temporary actual-wizard dark/light proof: 6/6 passed, two themes per browser. New UI and real Engine status show maximum 5/minimum 3. Saving 10 through the real settings API survives step revisits and a reload; existing-chat settings still show preparation and 10 afterward. No memory-generation call is needed.
  • pnpm smoke:ui: 7/7 passed. The first attempt stopped during discovery because the sparse checkout lacked an existing documentation fixture; restoring the tracked fixtures let the unchanged command pass. No assertion or timeout was weakened.
  • Local CodeRabbit completed the six-file review with 0 findings. E2E types pass again after removing the temporary capture harness from the checkout.

Manual verification notes

  • Manually repeat new Roleplay setup and existing-chat preparation on a physical phone.
  • Manually check an existing story with a deliberately customized excerpt limit.

Browser proof uses disposable Engine data and synthetic optional-agent listings. No physical-device, paid-provider, local-container or complete Node-suite result is claimed. The production build passed; its inactive outputs were later removed to recover disk space.

Docs and release impact

docs/agents/memory.md changes only the documented default range. Ten-pack publication is tracked in #8177 and waits for this English source to merge. No release/version or CHANGELOG changes.

UI evidence

Before/after gallery, original PNG hashes, exact temporary capture harness and browser logs. Download the raw HTML and open it locally. It embeds all 14 original PNGs: desktop before plus dark/light desktop Chromium, mobile Chromium and mobile WebKit afterward. All captures were visually inspected, and the raw published files and embedded images were byte-verified.


🔄 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/8175 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 10/23/2026 **Status:** ✅ Merged **Merged:** 10/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/roleplay-wizard-memory-setup` --- ### 📝 Commits (2) - [`4e3d652`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4e3d6525ef16deff7d4089a5f7d77fc92bde7860) chore: start Roleplay memory setup adjustment - [`b00e161`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b00e1616d57c7d71b5bad0ddd7c9559f40188da8) fix(roleplay): clarify memory setup and default excerpts to five ### 📊 Changes **6 files changed** (+36 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/agents/memory.md` (+1 -1) 📝 `e2e/advanced-memory-wizard.e2e.ts` (+5 -0) 📝 `packages/client/src/components/chat/AdvancedMemorySettings.tsx` (+6 -5) 📝 `packages/client/src/localization/locales/en.json` (+1 -1) 📝 `packages/shared/src/types/advanced-memory.ts` (+1 -1) ➕ `scripts/regressions/advanced-memory-settings-defaults.regression.ts` (+22 -0) </details> ### 📄 Description > [!IMPORTANT] > Targets `staging`. Only `SpicyMarinara` may promote to `main`. Required checks and Dottore Review remain merge gates. ## Linked issue Closes #8174 Owner: @SpicyMarinara. ## Why this change A new Roleplay chat has no existing history to prepare. Its automatic-memory toggle should identify Advanced Memory Recall clearly, and new excerpt limits should start at the requested five messages. ## What changed - New Roleplay setup no longer offers **Prepare existing history**. Existing chats keep that action in **Chat Settings → Memory Recall**. - The **Automatic context and memory handling** description now names **Advanced Memory Recall**. - The shared maximum excerpt default is five messages. The minimum remains three, and explicit saved limits, including ten and zero, are preserved. The memory guide now documents the 3–5 default range. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked light/dark themes and desktop/mobile viewports - [ ] Read and followed `CONTRIBUTING.md` Automated evidence on `b00e1616d57c7d71b5bad0ddd7c9559f40188da8`: - Pinned pnpm 12.15.0 frozen install and full `pnpm check` passed, including localization, lint/types and production build; one inherited client effect-dependency warning. - `node scripts/run-regressions.mjs --filter advanced-memory-settings-defaults --concurrency 1`: **1/1 passed**. The isolated old-default negative control fails `10 != 5`; saved 0/5/10/50 limits survive normalization. - Updated canonical Roleplay wizard case: **3/3 passed**, desktop Chromium, mobile Chromium and mobile WebKit, with its existing delayed-save and saved-zero assertions preserved. - Temporary actual-wizard dark/light proof: **6/6 passed**, two themes per browser. New UI and real Engine status show maximum 5/minimum 3. Saving 10 through the real settings API survives step revisits and a reload; existing-chat settings still show preparation and 10 afterward. No memory-generation call is needed. - `pnpm smoke:ui`: **7/7 passed**. The first attempt stopped during discovery because the sparse checkout lacked an existing documentation fixture; restoring the tracked fixtures let the unchanged command pass. No assertion or timeout was weakened. - Local CodeRabbit completed the six-file review with **0 findings**. E2E types pass again after removing the temporary capture harness from the checkout. ### Manual verification notes - [ ] Manually repeat new Roleplay setup and existing-chat preparation on a physical phone. - [ ] Manually check an existing story with a deliberately customized excerpt limit. Browser proof uses disposable Engine data and synthetic optional-agent listings. No physical-device, paid-provider, local-container or complete Node-suite result is claimed. The production build passed; its inactive outputs were later removed to recover disk space. ## Docs and release impact `docs/agents/memory.md` changes only the documented default range. Ten-pack publication is tracked in #8177 and waits for this English source to merge. No release/version or CHANGELOG changes. ## UI evidence [Before/after gallery, original PNG hashes, exact temporary capture harness and browser logs](https://gist.github.com/SpicyMarinara/aee29e11d86c1141600eecb77fc98e94). Download the raw HTML and open it locally. It embeds all 14 original PNGs: desktop before plus dark/light desktop Chromium, mobile Chromium and mobile WebKit afterward. All captures were visually inspected, and the raw published files and embedded images were byte-verified. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-24 04:10:43 +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#8140
No description provided.