[PR #6026] [MERGED] Fix assigned Roleplay and Game workflows, visuals, and command context #7033

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

📋 Pull Request Information

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

Base: staging ← Head: codex/assigned-issue-sweep-20260910


📝 Commits (6)

  • d6606a2 Track assigned issue sweep in Unreleased notes
  • 40af1f1 Fix assigned Roleplay and Game workflows and command context
  • 7c902df Verify sweep controls and preserve compatible context and scroll handling
  • 0a42b25 Cover model macros in preset and chat previews
  • 0de2524 Finish browser proof and keep context matching linear
  • 286cd95 Use the current persistence schema in legacy migration proof

📊 Changes

32 files changed (+972 additions, -99 deletions)

View changed files

📝 CHANGELOG.md (+13 -1)
📝 e2e/assigned-chat-sweep.e2e.ts (+166 -4)
📝 e2e/core-flows.e2e.ts (+2 -1)
📝 e2e/roleplay-vn.e2e.ts (+113 -3)
📝 packages/client/src/components/chat/ChatHelpOverlay.tsx (+2 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+3 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+53 -30)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+95 -9)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+17 -2)
📝 packages/client/src/components/chat/SpriteOverlay.tsx (+11 -2)
📝 packages/client/src/components/game/GameSurface.tsx (+1 -1)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+21 -0)
📝 packages/client/src/components/ui/AvatarGenerationModal.tsx (+4 -4)
📝 packages/client/src/hooks/use-characters.ts (+3 -0)
📝 packages/client/src/hooks/use-settings-sync.ts (+2 -0)
📝 packages/client/src/lib/ui-persistence.ts (+1 -1)
📝 packages/client/src/localization/locales/en.json (+6 -0)
📝 packages/client/src/stores/ui.store.ts (+19 -1)
📝 packages/server/src/routes/characters.routes.ts (+4 -4)
📝 packages/server/src/routes/chats.routes.ts (+6 -0)

...and 12 more files

📄 Description

Linked issue

Closes #6018
Closes #6019
Closes #6020
Closes #6021
Closes #6022
Closes #6023
Closes #6024
Closes #6025
Closes #6027

Why this change

Restore the assigned Roleplay and Game workflows reported by @SpicyMarinara: automatic Illustrator stopped running when commands were enabled, character and DM controls were missing or stale, and Visual Novel history/art ignored the intended presentation. Keep private command state in the tracker Context block and make character-sheet dimensions independent of backgrounds.

What changed

  • Pass the selected model into preset assembly for generation, dry run, preset preview, and chat preview.
  • Restore the DM switch under Connected Chats using the existing command permissions. Keep Reply actions and their Help legend in Conversation.
  • Apply Illustrator cadence independently of command availability. An explicit turn illustration replaces the automatic decision; manual-only and disabled agents remain respected.
  • Clean deleted library cards from Game party/setup membership in the existing deletion transaction, count surviving cards, and use the full library for Game setup pickers.
  • Add independent, persisted/synced character-sheet dimensions. Existing background dimensions carry over once for compatibility.
  • Use compact Visual Novel history controls attached to the box, open at the newest message (including late-loading images), preserve configured sprite sizes, fade inactive sprites, and reuse attachment previews/lightboxes above the message behind sprites.
  • Merge private command notes/reminders into the existing tracker Context at the final responder boundary. Preserve character privacy, use the requested narrator wording, retain the newest three active reminders per character, and explain when to request an illustration.

Outside-contributor work remains excluded: #5963 / #5965, #5868 and #5869 / #5872, #5836 / #5837, #5833 / #5835, and #5856 / #5771. Translation follow-ups #5968 and #5834 were implemented in merged docs-i18n PR #5993 and depend on those source PRs. #5779 is a contributor notice.

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

Automated evidence: pnpm check (format, TypeScript, lint, localization, build), pnpm version:check, and pnpm regression:prompt passed. The final focused browser run passed 67 tests, with 2 intentional mobile skips for the 4K desktop case, across desktop Chromium, mobile Chromium, and mobile WebKit. The standard Dockerfile rebuilt successfully; its fresh isolated container serves built app assets and reports healthy /api/health.

Real-route regressions capture requests at a deterministic local provider and verify selected/overridden model names, both preview paths, Illustrator interval 3, interval 0/manual-only, the disabled master switch, and explicit commands replacing automatic decisions. Storage fixtures verify party deletion across chats while preserving history, NPCs, and unrelated modes. Image-size proofs cover legacy defaults, independent settings, clamping, migration, synchronization selection, and reload. Prompt proofs cover all three Context formats, character/narrator privacy, history exclusion, literal note contents, malformed Context text, and per-character reminder eviction/update order.

All hosted checks passed on the final commit, including 244/244 Node regression files, all ten browser shards and their project gates, build/lint/localization, container checks, and CodeQL. CodeRabbit completed its review. The legacy UI migration browser proof also passed locally using the shared current preference version.

The local full Node suite encounters a pre-existing macOS symlink assertion in mari-guard-sibling-paths.regression.ts, reproduced on untouched staging; hosted Linux passes. Checkboxes remain unchecked as required for AI-generated PRs.

Manual verification notes

  • Manually verify Illustrator with a real configured image provider at interval 3, manual-only interval 0, and an explicit illustration command.
  • Manually verify the DM switch, Conversation-only Reply/Help, and Game library/party controls on your own chats.
  • Manually verify Visual Novel history, sprite settings, and image taps on physical desktop/mobile devices.
  • Manually verify independent character-sheet/background dimensions with the preferred image provider.
  • Manually verify the requested narrator instruction and private notes/reminders in an assembled Roleplay prompt.

Browser automation uses isolated fixture data on desktop Chromium, mobile Chromium, and mobile WebKit. Model calls use deterministic local fixture providers; no paid image-provider run or physical-phone check is claimed.

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)

CHANGELOG Unreleased and canonical English UI copy are updated. UI preference schema advances to 100 for migration; the app version remains 2.4.5. No user documentation paths changed.

UI evidence (if applicable)

All 21 after screenshots and fixture details. Original before screenshots.

Desktop scene layering:

Desktop scene layering

Mobile scene and expanded history (WebKit):

Mobile Visual Novel scene with compact arrow, turn art, and inactive sprite fading Mobile history opened at the newest turn with the collapse arrow attached to the box

Independent character-sheet dimensions · Game library pickers · Light-theme history


🔄 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/6026 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/10/2026 **Status:** ✅ Merged **Merged:** 9/10/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/assigned-issue-sweep-20260910` --- ### 📝 Commits (6) - [`d6606a2`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d6606a2290bcdcf0a328d3e842d942ab847abfc5) Track assigned issue sweep in Unreleased notes - [`40af1f1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/40af1f1315d8e5e92e92368b0a5c96e3d3687c34) Fix assigned Roleplay and Game workflows and command context - [`7c902df`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7c902df09e7462cd82961a62a28906a1dc8e663c) Verify sweep controls and preserve compatible context and scroll handling - [`0a42b25`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0a42b25cd14c4b18a4226bdb8568facb2b9ba459) Cover model macros in preset and chat previews - [`0de2524`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0de252439e5264162a470aeae3c0a2a8c729febe) Finish browser proof and keep context matching linear - [`286cd95`](https://github.com/Pasta-Devs/Marinara-Engine/commit/286cd958c08372952237dfdc8a0994055c72c0b7) Use the current persistence schema in legacy migration proof ### 📊 Changes **32 files changed** (+972 additions, -99 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+13 -1) 📝 `e2e/assigned-chat-sweep.e2e.ts` (+166 -4) 📝 `e2e/core-flows.e2e.ts` (+2 -1) 📝 `e2e/roleplay-vn.e2e.ts` (+113 -3) 📝 `packages/client/src/components/chat/ChatHelpOverlay.tsx` (+2 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+3 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+53 -30) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+95 -9) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+17 -2) 📝 `packages/client/src/components/chat/SpriteOverlay.tsx` (+11 -2) 📝 `packages/client/src/components/game/GameSurface.tsx` (+1 -1) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+21 -0) 📝 `packages/client/src/components/ui/AvatarGenerationModal.tsx` (+4 -4) 📝 `packages/client/src/hooks/use-characters.ts` (+3 -0) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+2 -0) 📝 `packages/client/src/lib/ui-persistence.ts` (+1 -1) 📝 `packages/client/src/localization/locales/en.json` (+6 -0) 📝 `packages/client/src/stores/ui.store.ts` (+19 -1) 📝 `packages/server/src/routes/characters.routes.ts` (+4 -4) 📝 `packages/server/src/routes/chats.routes.ts` (+6 -0) _...and 12 more files_ </details> ### 📄 Description ## Linked issue Closes #6018 Closes #6019 Closes #6020 Closes #6021 Closes #6022 Closes #6023 Closes #6024 Closes #6025 Closes #6027 ## Why this change Restore the assigned Roleplay and Game workflows reported by @SpicyMarinara: automatic Illustrator stopped running when commands were enabled, character and DM controls were missing or stale, and Visual Novel history/art ignored the intended presentation. Keep private command state in the tracker Context block and make character-sheet dimensions independent of backgrounds. ## What changed - Pass the selected model into preset assembly for generation, dry run, preset preview, and chat preview. - Restore the DM switch under Connected Chats using the existing command permissions. Keep Reply actions and their Help legend in Conversation. - Apply Illustrator cadence independently of command availability. An explicit turn illustration replaces the automatic decision; manual-only and disabled agents remain respected. - Clean deleted library cards from Game party/setup membership in the existing deletion transaction, count surviving cards, and use the full library for Game setup pickers. - Add independent, persisted/synced character-sheet dimensions. Existing background dimensions carry over once for compatibility. - Use compact Visual Novel history controls attached to the box, open at the newest message (including late-loading images), preserve configured sprite sizes, fade inactive sprites, and reuse attachment previews/lightboxes above the message behind sprites. - Merge private command notes/reminders into the existing tracker Context at the final responder boundary. Preserve character privacy, use the requested narrator wording, retain the newest three active reminders per character, and explain when to request an illustration. Outside-contributor work remains excluded: #5963 / #5965, #5868 and #5869 / #5872, #5836 / #5837, #5833 / #5835, and #5856 / #5771. Translation follow-ups #5968 and #5834 were implemented in merged docs-i18n PR #5993 and depend on those source PRs. #5779 is a contributor notice. ## 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` Automated evidence: `pnpm check` (format, TypeScript, lint, localization, build), `pnpm version:check`, and `pnpm regression:prompt` passed. The final focused browser run passed **67 tests**, with 2 intentional mobile skips for the 4K desktop case, across desktop Chromium, mobile Chromium, and mobile WebKit. The standard Dockerfile rebuilt successfully; its fresh isolated container serves built app assets and reports healthy `/api/health`. Real-route regressions capture requests at a deterministic local provider and verify selected/overridden model names, both preview paths, Illustrator interval 3, interval 0/manual-only, the disabled master switch, and explicit commands replacing automatic decisions. Storage fixtures verify party deletion across chats while preserving history, NPCs, and unrelated modes. Image-size proofs cover legacy defaults, independent settings, clamping, migration, synchronization selection, and reload. Prompt proofs cover all three Context formats, character/narrator privacy, history exclusion, literal note contents, malformed Context text, and per-character reminder eviction/update order. All hosted checks passed on the final commit, including **244/244 Node regression files**, all ten browser shards and their project gates, build/lint/localization, container checks, and CodeQL. CodeRabbit completed its review. The legacy UI migration browser proof also passed locally using the shared current preference version. The local full Node suite encounters a pre-existing macOS symlink assertion in `mari-guard-sibling-paths.regression.ts`, reproduced on untouched staging; hosted Linux passes. Checkboxes remain unchecked as required for AI-generated PRs. ### Manual verification notes - [ ] Manually verify Illustrator with a real configured image provider at interval 3, manual-only interval 0, and an explicit illustration command. - [ ] Manually verify the DM switch, Conversation-only Reply/Help, and Game library/party controls on your own chats. - [ ] Manually verify Visual Novel history, sprite settings, and image taps on physical desktop/mobile devices. - [ ] Manually verify independent character-sheet/background dimensions with the preferred image provider. - [ ] Manually verify the requested narrator instruction and private notes/reminders in an assembled Roleplay prompt. Browser automation uses isolated fixture data on desktop Chromium, mobile Chromium, and mobile WebKit. Model calls use deterministic local fixture providers; no paid image-provider run or physical-phone check is claimed. ## 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) CHANGELOG Unreleased and canonical English UI copy are updated. UI preference schema advances to 100 for migration; the app version remains 2.4.5. No user documentation paths changed. ## UI evidence (if applicable) [All 21 after screenshots and fixture details](https://gist.github.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096). [Original before screenshots](https://github.com/Pasta-Devs/Marinara-Engine/issues/6024). Desktop scene layering: ![Desktop scene layering](https://gist.githubusercontent.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096/raw/bdb3368190123f7e64c673dcb0cb673947ea36c8/desktop-chromium-vn-scene-layering.png) Mobile scene and expanded history (WebKit): <img src="https://gist.githubusercontent.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096/raw/efa2e2f56542e5c495d6ca26e1ea440ab1c9008c/mobile-webkit-vn-scene-layering.png" width="280" alt="Mobile Visual Novel scene with compact arrow, turn art, and inactive sprite fading" /> <img src="https://gist.githubusercontent.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096/raw/53a051e0a2911f6023aa5c5a5e4d2b8aee6a5c18/mobile-webkit-vn-history-bottom.png" width="280" alt="Mobile history opened at the newest turn with the collapse arrow attached to the box" /> [Independent character-sheet dimensions](https://gist.githubusercontent.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096/raw/d451809b90ecdf0467bad0d7ed3b80827493ab97/mobile-chromium-independent-character-sheet-size.png) · [Game library pickers](https://gist.githubusercontent.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096/raw/5ca611e5aac9caa4c05dc4cf3c433fb1d278a69b/desktop-chromium-game-library-pickers.png) · [Light-theme history](https://gist.githubusercontent.com/SpicyMarinara/bb1338fed4efdc3b0a583f7d2839c096/raw/a49d6202bb8da65fe21c5b2d069e7e833c5d9576/desktop-chromium-history-light.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:15:55 +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#7033
No description provided.