[PR #6070] [MERGED] fix(roleplay): clarify private notes and honor Chroma in command editors #7049

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6070
Author: @SpicyMarinara
Created: 9/12/2026
Status: ✅ Merged
Merged: 9/12/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/6069-roleplay-notes-chroma


📝 Commits (3)

  • 1b906cb docs: record Roleplay notes and Chroma fix scope
  • 36d4b3f fix(roleplay): keep private notes brief and honor Chroma editor colors
  • 3b77f37 fix(roleplay): keep notes guidance independent of memory toggle

📊 Changes

4 files changed (+60 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 e2e/roleplay-commands.e2e.ts (+55 -0)
📝 packages/client/src/components/ui/ExpandedTextarea.tsx (+2 -2)
📝 packages/server/src/services/generation/roleplay-commands.ts (+1 -1)

📄 Description

Linked issue

Closes #6069

Why this change

Roleplay's notes and memory text editors retain lavender controls under custom Chroma colors, and the notes prompt permits lengthy scene recaps. Users need the editor to respect their theme and notes to preserve concise private state and plans for future turns.

What changed

  • Expanded text editor character counts follow Chroma muted text; collapse controls and their hover states follow Chroma accent colors.
  • The notes prompt reserves notes for private state and plans that guide future turns, excludes scene recaps, and asks for 1–3 short bullets under 80 words. It stands on its own without referring to separately toggled commands. Existing replacement and dismissal behavior is preserved.
  • Extend the existing Roleplay browser regression to verify both editors across light/dark themes, saved notes and memory edits in the next provider request, canceled edits, and private audience boundaries.

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

  • Manually verify notes and memory character counts and collapse controls follow Chroma in light/dark mode and on mobile.
  • Manually verify saved edits appear in the next generation prompt and canceled edits do not persist.
  • Passed locally: pnpm check, pnpm regression:prompt, and node scripts/run-regressions.mjs --filter scripts/regressions/roleplay-commands.regression.ts.
  • Passed locally: pnpm smoke:ui e2e/roleplay-commands.e2e.ts e2e/chat-sweep.e2e.ts --grep 'default off, scope private notes|Notification position' --workers=1 (6/6 across desktop Chromium, Android-sized Chromium, and iPhone-sized WebKit).
  • Repeated after the final prompt correction: pnpm check, prompt/command regressions, and pnpm smoke:ui e2e/roleplay-commands.e2e.ts --grep 'default off, scope private notes' --workers=1 (3/3).
  • The initial full local browser run was stopped in favor of the complete CI shards. Its notification-position failure passed on the isolated rerun across all three browsers. No full local-suite pass is claimed.
  • Built the Docker image and started an isolated container; /api/health reported status: ok, and the app page returned HTTP 200. Removed the temporary container afterward. CI also builds the latest prompt-only correction.
  • The browser regression reproduced the original color bug before the fix: the count stayed rgb(212, 173, 252) instead of the selected Chroma text.
  • The existing save path required no product-code change. Browser coverage exercises failed saves/retry, cancellation, saved text in the next actual generation request to a synthetic provider, narrator access, and unrelated-character exclusion.
  • Manually verify note-writing quality with a preferred live model and on a physical phone; deterministic browser fixtures cannot establish live-model compliance or real-device behavior.

Prompt proof covers current and legacy command extras, disabled commands, per-character privacy, swipes, branches, and saved edits. The 80-word target is a prompt instruction; existing saved/user-edited notes are not truncated.

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
  • Version/release files updated (only if this PR includes a version bump)

Includes an Unreleased changelog entry. No version bump or user-facing documentation changes.

UI evidence (if applicable)

Full synthetic screenshot set, including dark and light iPhone-sized WebKit. Screenshots were inspected after the final fix.

Before After
Before: lavender count and collapse control After: Chroma text and accent controls

🔄 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/6070 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/12/2026 **Status:** ✅ Merged **Merged:** 9/12/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/6069-roleplay-notes-chroma` --- ### 📝 Commits (3) - [`1b906cb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b906cba0066e637d4cf78d3bf6c881fe81988fe) docs: record Roleplay notes and Chroma fix scope - [`36d4b3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/36d4b3fdef9a8ba9ff6f0591ffbb89753527e218) fix(roleplay): keep private notes brief and honor Chroma editor colors - [`3b77f37`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3b77f377cb1836377be3d5c8b8e553f52089202d) fix(roleplay): keep notes guidance independent of memory toggle ### 📊 Changes **4 files changed** (+60 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `e2e/roleplay-commands.e2e.ts` (+55 -0) 📝 `packages/client/src/components/ui/ExpandedTextarea.tsx` (+2 -2) 📝 `packages/server/src/services/generation/roleplay-commands.ts` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #6069 ## Why this change Roleplay's notes and memory text editors retain lavender controls under custom Chroma colors, and the notes prompt permits lengthy scene recaps. Users need the editor to respect their theme and notes to preserve concise private state and plans for future turns. ## What changed - Expanded text editor character counts follow Chroma muted text; collapse controls and their hover states follow Chroma accent colors. - The notes prompt reserves notes for private state and plans that guide future turns, excludes scene recaps, and asks for 1–3 short bullets under 80 words. It stands on its own without referring to separately toggled commands. Existing replacement and dismissal behavior is preserved. - Extend the existing Roleplay browser regression to verify both editors across light/dark themes, saved notes and memory edits in the next provider request, canceled edits, and private audience boundaries. ## 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 - Manually verify notes and memory character counts and collapse controls follow Chroma in light/dark mode and on mobile. - Manually verify saved edits appear in the next generation prompt and canceled edits do not persist. - Passed locally: `pnpm check`, `pnpm regression:prompt`, and `node scripts/run-regressions.mjs --filter scripts/regressions/roleplay-commands.regression.ts`. - Passed locally: `pnpm smoke:ui e2e/roleplay-commands.e2e.ts e2e/chat-sweep.e2e.ts --grep 'default off, scope private notes|Notification position' --workers=1` (6/6 across desktop Chromium, Android-sized Chromium, and iPhone-sized WebKit). - Repeated after the final prompt correction: `pnpm check`, prompt/command regressions, and `pnpm smoke:ui e2e/roleplay-commands.e2e.ts --grep 'default off, scope private notes' --workers=1` (3/3). - The initial full local browser run was stopped in favor of the complete CI shards. Its notification-position failure passed on the isolated rerun across all three browsers. No full local-suite pass is claimed. - Built the Docker image and started an isolated container; `/api/health` reported `status: ok`, and the app page returned HTTP 200. Removed the temporary container afterward. CI also builds the latest prompt-only correction. - The browser regression reproduced the original color bug before the fix: the count stayed `rgb(212, 173, 252)` instead of the selected Chroma text. - The existing save path required no product-code change. Browser coverage exercises failed saves/retry, cancellation, saved text in the next actual generation request to a synthetic provider, narrator access, and unrelated-character exclusion. - Manually verify note-writing quality with a preferred live model and on a physical phone; deterministic browser fixtures cannot establish live-model compliance or real-device behavior. Prompt proof covers current and legacy command extras, disabled commands, per-character privacy, swipes, branches, and saved edits. The 80-word target is a prompt instruction; existing saved/user-edited notes are not truncated. ## 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 - [ ] Version/release files updated (only if this PR includes a version bump) Includes an Unreleased changelog entry. No version bump or user-facing documentation changes. ## UI evidence (if applicable) [Full synthetic screenshot set](https://gist.github.com/SpicyMarinara/b01c3884af2f227b2fa6abbed95619b7), including dark and light iPhone-sized WebKit. Screenshots were inspected after the final fix. | Before | After | | --- | --- | | ![Before: lavender count and collapse control](https://gist.githubusercontent.com/SpicyMarinara/b01c3884af2f227b2fa6abbed95619b7/raw/71d939e43d32ac190ae9c393542a7ee91b9604ff/before-desktop.png) | ![After: Chroma text and accent controls](https://gist.githubusercontent.com/SpicyMarinara/b01c3884af2f227b2fa6abbed95619b7/raw/6b46624528882dd1e5ab54eb27b7a3f9f70e6373/after-desktop.png) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:04 +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#7049
No description provided.