[PR #3404] [MERGED] Fix connected game scenes and summary prompts #5922

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

📋 Pull Request Information

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

Base: staging ← Head: agent/chat-game-scene-summary-context


📝 Commits (1)

  • 7e248b1 Fix connected game scenes and summary prompts

📊 Changes

23 files changed (+795 additions, -195 deletions)

View changed files

📝 CHANGELOG.md (+4 -0)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+2 -0)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+95 -42)
📝 packages/client/src/components/game/GameSurface.tsx (+34 -0)
📝 packages/client/src/components/layout/ModalRenderer.tsx (+18 -1)
➕ packages/client/src/components/modals/ScenePromptPreferencesModal.tsx (+154 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -1)
➕ packages/client/src/hooks/use-chat-summary-prompts.ts (+90 -0)
📝 packages/client/src/hooks/use-generate.ts (+31 -0)
📝 packages/client/src/hooks/use-settings-sync.ts (+4 -0)
➕ packages/client/src/lib/scene-generation.ts (+109 -0)
📝 packages/client/src/lib/slash-commands.ts (+12 -46)
📝 packages/client/src/stores/ui.store.ts (+32 -1)
📝 packages/server/src/routes/app-settings.routes.ts (+6 -2)
📝 packages/server/src/routes/chats.routes.ts (+13 -17)
📝 packages/server/src/routes/generate.routes.ts (+19 -9)
📝 packages/server/src/routes/scene.routes.ts (+45 -1)
📝 packages/server/src/services/generation/conversation-command-runtime.ts (+1 -1)
📝 packages/server/src/services/generation/conversation-scene-command-runtime.ts (+10 -58)

...and 3 more files

📄 Description

Linked issue

None. Maintainer-requested in chat; a tracking issue should be opened before final submission if the project requires one.

Why this change

  • Conversation-connected Game chats needed the same quick switch affordance that Conversation/Roleplay links already have.
  • Scene initiation could generate first-person or tense choices the user did not want, with no chance to guide the scene prompt.
  • Roleplay Chat Summary custom prompts were effectively chat-local, but the intended behavior is one global override across roleplays.
  • Conversation prompt context could lose the user's visible status/activity when a relocated context macro was detected but not actually present after prompt resolution.

What changed

  • Added Game-mode connected-chat switch buttons on desktop and mobile toolbars.
  • Added a scene prompt setup modal for user /scene and character [scene] initiation with remembered POV, tense, and optional instructions.
  • Moved Roleplay Chat Summary prompt template settings into synced app settings and updated manual/automatic summary generation to resolve the global setting.
  • Made Conversation context insertion append the status/activity block when macro replacement does not occur.
  • Updated v2.1.2 changelog entries and preserved the small editor/settings UI copy tweaks from the branch.

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

Agent-run validation:

  • pnpm check
  • pnpm regression:prompt
  • pnpm version:check
  • git diff --check
  • pnpm smoke:ui (6 passed, 2 skipped by suite)

Manual verification notes

  • Manual browser verification still needs maintainer pass-through for connected Conversation/Game switching, the scene setup modal, and global summary prompt behavior.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

CHANGELOG.md was updated under v2.1.2. Version files were already at 2.1.2 and pnpm version:check passed.

UI evidence (if applicable)

Not captured in this agent run; pnpm smoke:ui covered the browser shell smoke suite.

Summary by CodeRabbit

  • New Features

    • Added a connected-chat shortcut in Game mode.
    • Added a scene setup dialog with POV, tense, and optional prompt instructions.
    • Made scene creation follow the selected prompt preferences.
  • Changes

    • Roleplay summary prompt templates can now be managed globally across chats.
    • Scene prompt preferences are now remembered between sessions.
  • Bug Fixes

    • Conversation mode now always includes visible status/activity when appropriate.
    • Improved prompt wording and example text in editor/settings screens.

🔄 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/3404 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/9/2026 **Status:** ✅ Merged **Merged:** 7/9/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/chat-game-scene-summary-context` --- ### 📝 Commits (1) - [`7e248b1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7e248b1383fe0e19b89ed49afa31ecf597682ed8) Fix connected game scenes and summary prompts ### 📊 Changes **23 files changed** (+795 additions, -195 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+4 -0) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+2 -0) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+95 -42) 📝 `packages/client/src/components/game/GameSurface.tsx` (+34 -0) 📝 `packages/client/src/components/layout/ModalRenderer.tsx` (+18 -1) ➕ `packages/client/src/components/modals/ScenePromptPreferencesModal.tsx` (+154 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) ➕ `packages/client/src/hooks/use-chat-summary-prompts.ts` (+90 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+31 -0) 📝 `packages/client/src/hooks/use-settings-sync.ts` (+4 -0) ➕ `packages/client/src/lib/scene-generation.ts` (+109 -0) 📝 `packages/client/src/lib/slash-commands.ts` (+12 -46) 📝 `packages/client/src/stores/ui.store.ts` (+32 -1) 📝 `packages/server/src/routes/app-settings.routes.ts` (+6 -2) 📝 `packages/server/src/routes/chats.routes.ts` (+13 -17) 📝 `packages/server/src/routes/generate.routes.ts` (+19 -9) 📝 `packages/server/src/routes/scene.routes.ts` (+45 -1) 📝 `packages/server/src/services/generation/conversation-command-runtime.ts` (+1 -1) 📝 `packages/server/src/services/generation/conversation-scene-command-runtime.ts` (+10 -58) _...and 3 more files_ </details> ### 📄 Description ## Linked issue None. Maintainer-requested in chat; a tracking issue should be opened before final submission if the project requires one. ## Why this change - Conversation-connected Game chats needed the same quick switch affordance that Conversation/Roleplay links already have. - Scene initiation could generate first-person or tense choices the user did not want, with no chance to guide the scene prompt. - Roleplay Chat Summary custom prompts were effectively chat-local, but the intended behavior is one global override across roleplays. - Conversation prompt context could lose the user's visible status/activity when a relocated context macro was detected but not actually present after prompt resolution. ## What changed - Added Game-mode connected-chat switch buttons on desktop and mobile toolbars. - Added a scene prompt setup modal for user `/scene` and character `[scene]` initiation with remembered POV, tense, and optional instructions. - Moved Roleplay Chat Summary prompt template settings into synced app settings and updated manual/automatic summary generation to resolve the global setting. - Made Conversation context insertion append the status/activity block when macro replacement does not occur. - Updated v2.1.2 changelog entries and preserved the small editor/settings UI copy tweaks from the branch. ## 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` Agent-run validation: - `pnpm check` - `pnpm regression:prompt` - `pnpm version:check` - `git diff --check` - `pnpm smoke:ui` (6 passed, 2 skipped by suite) ### Manual verification notes - Manual browser verification still needs maintainer pass-through for connected Conversation/Game switching, the scene setup modal, and global summary prompt behavior. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) CHANGELOG.md was updated under v2.1.2. Version files were already at 2.1.2 and `pnpm version:check` passed. ## UI evidence (if applicable) Not captured in this agent run; `pnpm smoke:ui` covered the browser shell smoke suite. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a connected-chat shortcut in Game mode. * Added a scene setup dialog with POV, tense, and optional prompt instructions. * Made scene creation follow the selected prompt preferences. * **Changes** * Roleplay summary prompt templates can now be managed globally across chats. * Scene prompt preferences are now remembered between sessions. * **Bug Fixes** * Conversation mode now always includes visible status/activity when appropriate. * Improved prompt wording and example text in editor/settings screens. <!-- 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:05:11 +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#5922
No description provided.