[PR #5583] [MERGED] feat: play as saved characters in chat #6835

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5583
Author: @Gunterlie
Created: 8/27/2026
Status: ✅ Merged
Merged: 8/31/2026
Merged by: @Gunterlie

Base: staging ← Head: casting-call


📝 Commits (10+)

  • b500338 feat: play as characters in chat
  • e551c2d feat: group character identity choices
  • 7ab592d feat: refine character identity pickers
  • d72b23b fix: complete character identity routing
  • 4557dc7 fix: complete character identity routing
  • 302988d fix: constrain character identity menus
  • 5fd3e3d fix: stabilize persona menu scrolling
  • 0bff1ac fix: close character identity review gaps
  • cbb1fb5 fix: normalize chat identity creation
  • 71e2d08 fix: align character identity consumers

📊 Changes

46 files changed (+2198 additions, -461 deletions)

View changed files

📝 CHANGELOG.md (+15 -0)
📝 e2e/core-flows.e2e.ts (+1 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+55 -1)
📝 packages/client/src/components/chat/ChatMessage.tsx (+12 -8)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+204 -26)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+195 -22)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+38 -19)
📝 packages/client/src/components/chat/QuickConnectionSwitcher.tsx (+1 -1)
📝 packages/client/src/components/chat/QuickPersonaSwitcher.tsx (+255 -34)
📝 packages/client/src/components/chat/QuickSwitcherMobile.tsx (+249 -36)
📝 packages/client/src/components/chat/chat-area.types.ts (+3 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+17 -0)
📝 packages/client/src/hooks/use-chats.ts (+7 -0)
📝 packages/client/src/hooks/use-generate.ts (+63 -15)
📝 packages/client/src/lib/app-update-prompt.ts (+3 -1)
➕ packages/client/src/lib/character-identity-groups.ts (+56 -0)
📝 packages/client/src/lib/chat-macros.ts (+24 -2)
📝 packages/client/src/localization/locales/en.json (+7 -0)
📝 packages/client/src/stores/ui.store.ts (+12 -2)
📝 packages/server/src/db/schema/chats.ts (+1 -0)

...and 26 more files

📄 Description

Linked issue

Closes #5581

Why this change

Users can switch between saved Personas, but multi-viewpoint scenes require duplicating character data into a Persona. This change lets users play as existing character cards while keeping the current chat and historical identity attribution.

What changed

  • Added an opt-in setting to show characters in Persona pickers.
  • Added collapsed, folder-aware character identity choices with folder artwork.
  • Added character identity support to Conversation and Roleplay chat setup and switching surfaces.
  • Added source-aware prompt, preview, snapshot, scene, memory, lorebook, awareness, extension, import, gallery, and encounter routing.
  • Added identity transition notices.
  • Game mode remains out of scope.

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

  • Automated validation completed with pnpm check and pnpm regression:prompt.
  • Manual browser verification remains for the contributor.

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)

UI evidence (if applicable)

Manual screenshots or recordings remain to be attached after browser verification.

Summary by CodeRabbit

  • New Features

    • Added character cards as selectable chat identities alongside standard Personas.
    • Added grouped browsing, search, avatars, editing, and quick switching on desktop and mobile.
    • Added an opt-in setting to show characters in Persona pickers.
    • Character identities now work across setup, scenes, imports, branches, prompts, memory, sprites, and lorebooks.
    • Relocated Advanced Message Tools for easier access.
  • Bug Fixes

    • Improved identity consistency across history, galleries, previews, macros, and extensions.
    • Preserved selected identities and historical details during chat changes and imports.
    • Improved scrolling, profile routing, sprites, gallery behavior, quick-picker states, and app update prompts.

🔄 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/5583 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 8/27/2026 **Status:** ✅ Merged **Merged:** 8/31/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `casting-call` --- ### 📝 Commits (10+) - [`b500338`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b5003384f5fe4a804c7020b39c88d56a4b64c68e) feat: play as characters in chat - [`e551c2d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e551c2da692fefd26446001030d7d91128062e36) feat: group character identity choices - [`7ab592d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7ab592d0c54cc619e5b2c3a96c59891547cf7cda) feat: refine character identity pickers - [`d72b23b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d72b23b3e9520af1daf4c034d9d60ee2c34f41d7) fix: complete character identity routing - [`4557dc7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4557dc7aaae4f4b9c738366fc5c5787ba688c5d0) fix: complete character identity routing - [`302988d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/302988d6e58f9be62a083fcf320e08c444b2767a) fix: constrain character identity menus - [`5fd3e3d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5fd3e3dd656893f483ca0ccda0b75b467510d4e5) fix: stabilize persona menu scrolling - [`0bff1ac`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0bff1ac8f46af8063103e30d754b5712786146c2) fix: close character identity review gaps - [`cbb1fb5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cbb1fb5e3780d5b93a16a67f7950109d3e65b0c7) fix: normalize chat identity creation - [`71e2d08`](https://github.com/Pasta-Devs/Marinara-Engine/commit/71e2d08541c8bedf3ea10cd3c4174c35d4c37397) fix: align character identity consumers ### 📊 Changes **46 files changed** (+2198 additions, -461 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+15 -0) 📝 `e2e/core-flows.e2e.ts` (+1 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+55 -1) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+12 -8) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+204 -26) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+195 -22) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+38 -19) 📝 `packages/client/src/components/chat/QuickConnectionSwitcher.tsx` (+1 -1) 📝 `packages/client/src/components/chat/QuickPersonaSwitcher.tsx` (+255 -34) 📝 `packages/client/src/components/chat/QuickSwitcherMobile.tsx` (+249 -36) 📝 `packages/client/src/components/chat/chat-area.types.ts` (+3 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+17 -0) 📝 `packages/client/src/hooks/use-chats.ts` (+7 -0) 📝 `packages/client/src/hooks/use-generate.ts` (+63 -15) 📝 `packages/client/src/lib/app-update-prompt.ts` (+3 -1) ➕ `packages/client/src/lib/character-identity-groups.ts` (+56 -0) 📝 `packages/client/src/lib/chat-macros.ts` (+24 -2) 📝 `packages/client/src/localization/locales/en.json` (+7 -0) 📝 `packages/client/src/stores/ui.store.ts` (+12 -2) 📝 `packages/server/src/db/schema/chats.ts` (+1 -0) _...and 26 more files_ </details> ### 📄 Description ## Linked issue Closes #5581 ## Why this change Users can switch between saved Personas, but multi-viewpoint scenes require duplicating character data into a Persona. This change lets users play as existing character cards while keeping the current chat and historical identity attribution. ## What changed - Added an opt-in setting to show characters in Persona pickers. - Added collapsed, folder-aware character identity choices with folder artwork. - Added character identity support to Conversation and Roleplay chat setup and switching surfaces. - Added source-aware prompt, preview, snapshot, scene, memory, lorebook, awareness, extension, import, gallery, and encounter routing. - Added identity transition notices. - Game mode remains out of scope. ## 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 - Automated validation completed with pnpm check and pnpm regression:prompt. - Manual browser verification remains for the contributor. ## Docs and release impact - [ ] No docs changes needed - [x] 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) ## UI evidence (if applicable) Manual screenshots or recordings remain to be attached after browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added character cards as selectable chat identities alongside standard Personas. * Added grouped browsing, search, avatars, editing, and quick switching on desktop and mobile. * Added an opt-in setting to show characters in Persona pickers. * Character identities now work across setup, scenes, imports, branches, prompts, memory, sprites, and lorebooks. * Relocated Advanced Message Tools for easier access. * **Bug Fixes** * Improved identity consistency across history, galleries, previews, macros, and extensions. * Preserved selected identities and historical details during chat changes and imports. * Improved scrolling, profile routing, sprites, gallery behavior, quick-picker states, and app update prompts. <!-- 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:14:08 +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#6835
No description provided.