[PR #2562] [MERGED] feat: rework agents and unify chat game UI #5660

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2562
Author: @SpicyMarinara
Created: 6/14/2026
Status: ✅ Merged
Merged: 6/14/2026
Merged by: @SpicyMarinara

Base: staging ← Head: codex/built-in-agent-management


📝 Commits (10+)

  • bf2ab04 feat: allow managing built-in agents
  • 1d41342 fix: unify chat input control styling
  • b32d5ca feat: rework built-in music and response agents
  • 50e0bf5 style: align youtube mini player with spotify
  • 5b83177 style: neutralize youtube player chrome
  • 2fc0380 fix: stabilize empty response queue selector
  • e042c05 feat: refine chat popovers and folder drag flows
  • 3759b64 fix: align chat overlay panels to toolbar buttons
  • dedf27b fix: space expanded chat settings content
  • 344c4ce fix: portal gallery image viewer

📊 Changes

110 files changed (+5610 additions, -3162 deletions)

View changed files

📝 packages/client/src/components/agents/AgentEditor.tsx (+76 -17)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+2 -2)
📝 packages/client/src/components/agents/ToolEditor.tsx (+2 -2)
📝 packages/client/src/components/chat/ActiveLorebookEntriesButton.tsx (+6 -9)
📝 packages/client/src/components/chat/ChatArea.tsx (+69 -22)
📝 packages/client/src/components/chat/ChatBranchSelector.tsx (+239 -41)
📝 packages/client/src/components/chat/ChatCommonOverlays.tsx (+13 -1)
📝 packages/client/src/components/chat/ChatConversationSurface.tsx (+13 -11)
📝 packages/client/src/components/chat/ChatFilesDrawer.tsx (+2 -2)
📝 packages/client/src/components/chat/ChatGallery.tsx (+165 -155)
📝 packages/client/src/components/chat/ChatGalleryDrawer.tsx (+31 -10)
📝 packages/client/src/components/chat/ChatInput.tsx (+78 -39)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+31 -151)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+743 -543)
➕ packages/client/src/components/chat/ChatToolbarControls.tsx (+133 -0)
📝 packages/client/src/components/chat/ConversationInput.tsx (+48 -68)
📝 packages/client/src/components/chat/ConversationMessage.tsx (+201 -77)
📝 packages/client/src/components/chat/ConversationMessageActions.tsx (+24 -2)
📝 packages/client/src/components/chat/ConversationView.tsx (+110 -169)
📝 packages/client/src/components/chat/EchoChamberPanel.tsx (+93 -19)

...and 80 more files

📄 Description

Why

Users needed built-in agents to be selectable/exportable/deletable, and the chat surfaces had drifted into inconsistent chrome across Conversation, Roleplay, and Game modes. The unified neutral UI also needed proper custom-theme hooks so self-hosters can restyle buttons, popovers, borders, and highlight states without editing source.

Maintainer request; no linked issue is attached yet.

What

  • Allows built-in/basic agents to enter Agents tab selection mode alongside custom agents, including export and soft-delete behavior.
  • Reworks built-in music/response agent plumbing around Music DJ, hidden response orchestration, commands, and prompt defaults.
  • Unifies Conversation, Roleplay, and Game toolbar/input/popover chrome around shared neutral button and panel styling.
  • Converts Gallery, Chat Settings, Session, Game Assets, branches, tracker, map, party, and widget surfaces toward the shared expandable-window UI pattern.
  • Adds Conversation and Game branch controls, including game-log branching from player inputs.
  • Updates Game prompt handling with a shared default prompt constant plus overwrite and extra-instruction support.
  • Adds --marinara-chat-chrome-* custom-theme variables and stable .marinara-chat-* selectors for shared chat/game chrome.

Validation

  • pnpm check
  • git diff --check

Manual verification

  • In the Agents tab, select visible built-in and custom agents together.
  • Export selected agents and confirm the JSON includes basic agent configs.
  • Delete a basic agent and confirm it disappears from the Agents tab and chat agent picker.
  • Restore a deleted basic agent by importing its exported JSON, then confirm it appears again.
  • Manually verify Conversation, Roleplay, and Game toolbar/input controls use neutral grey-white borders/icons instead of purple accents.
  • Manually verify Gallery, Chat Settings, Session, Game Assets, branches, tracker, map, and party popovers align to the shared expandable-window styling on desktop and mobile.
  • Manually verify custom themes can override --marinara-chat-chrome-* variables and .marinara-chat-* selectors.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added unified "Music DJ" player source selection (Spotify or YouTube)
    • Added branching from specific messages to create new chats
    • Added per-chat conversation command toggles for granular control
    • Enhanced drag-and-drop to support multi-selection across chats, characters, agents, and more
    • Added YouTube music player mobile widget
    • Added separate Game Session and Game Assets panels
    • Added custom GM instructions support for game mode
  • UI Improvements

    • Updated floating panel positioning for settings and gallery
    • Improved mobile toolbar layouts and styling
    • Refreshed icon set with updated export 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/2562 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/14/2026 **Status:** ✅ Merged **Merged:** 6/14/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/built-in-agent-management` --- ### 📝 Commits (10+) - [`bf2ab04`](https://github.com/Pasta-Devs/Marinara-Engine/commit/bf2ab0424ccb58c0caf92a3837fd29ce8da382c8) feat: allow managing built-in agents - [`1d41342`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1d4134221f8e24d328c3ed2e23e5bf82798cb395) fix: unify chat input control styling - [`b32d5ca`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b32d5ca355fe974174be282ed10111e7fab413a8) feat: rework built-in music and response agents - [`50e0bf5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/50e0bf55c7953c2789f5ed6a9c569bec5b38a644) style: align youtube mini player with spotify - [`5b83177`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5b83177cf8196fc4e5e90e30e0de717ba44b6ab0) style: neutralize youtube player chrome - [`2fc0380`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2fc0380c6d38db7fc53827ec7ba06842c8fe5e06) fix: stabilize empty response queue selector - [`e042c05`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e042c05f3530c9e5caea9c3807a0ea736e7083f5) feat: refine chat popovers and folder drag flows - [`3759b64`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3759b6477dbfa3e36a56a5ed8ad2ad842f59c719) fix: align chat overlay panels to toolbar buttons - [`dedf27b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/dedf27be945abd35d06e31d371c42374cc00ff83) fix: space expanded chat settings content - [`344c4ce`](https://github.com/Pasta-Devs/Marinara-Engine/commit/344c4ce0766839a7f946ecd7d39d1d94b3cb3648) fix: portal gallery image viewer ### 📊 Changes **110 files changed** (+5610 additions, -3162 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+76 -17) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+2 -2) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ActiveLorebookEntriesButton.tsx` (+6 -9) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+69 -22) 📝 `packages/client/src/components/chat/ChatBranchSelector.tsx` (+239 -41) 📝 `packages/client/src/components/chat/ChatCommonOverlays.tsx` (+13 -1) 📝 `packages/client/src/components/chat/ChatConversationSurface.tsx` (+13 -11) 📝 `packages/client/src/components/chat/ChatFilesDrawer.tsx` (+2 -2) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+165 -155) 📝 `packages/client/src/components/chat/ChatGalleryDrawer.tsx` (+31 -10) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+78 -39) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+31 -151) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+743 -543) ➕ `packages/client/src/components/chat/ChatToolbarControls.tsx` (+133 -0) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+48 -68) 📝 `packages/client/src/components/chat/ConversationMessage.tsx` (+201 -77) 📝 `packages/client/src/components/chat/ConversationMessageActions.tsx` (+24 -2) 📝 `packages/client/src/components/chat/ConversationView.tsx` (+110 -169) 📝 `packages/client/src/components/chat/EchoChamberPanel.tsx` (+93 -19) _...and 80 more files_ </details> ### 📄 Description ## Why Users needed built-in agents to be selectable/exportable/deletable, and the chat surfaces had drifted into inconsistent chrome across Conversation, Roleplay, and Game modes. The unified neutral UI also needed proper custom-theme hooks so self-hosters can restyle buttons, popovers, borders, and highlight states without editing source. Maintainer request; no linked issue is attached yet. ## What - Allows built-in/basic agents to enter Agents tab selection mode alongside custom agents, including export and soft-delete behavior. - Reworks built-in music/response agent plumbing around Music DJ, hidden response orchestration, commands, and prompt defaults. - Unifies Conversation, Roleplay, and Game toolbar/input/popover chrome around shared neutral button and panel styling. - Converts Gallery, Chat Settings, Session, Game Assets, branches, tracker, map, party, and widget surfaces toward the shared expandable-window UI pattern. - Adds Conversation and Game branch controls, including game-log branching from player inputs. - Updates Game prompt handling with a shared default prompt constant plus overwrite and extra-instruction support. - Adds `--marinara-chat-chrome-*` custom-theme variables and stable `.marinara-chat-*` selectors for shared chat/game chrome. ## Validation - pnpm check - git diff --check ## Manual verification - [ ] In the Agents tab, select visible built-in and custom agents together. - [ ] Export selected agents and confirm the JSON includes basic agent configs. - [ ] Delete a basic agent and confirm it disappears from the Agents tab and chat agent picker. - [ ] Restore a deleted basic agent by importing its exported JSON, then confirm it appears again. - [ ] Manually verify Conversation, Roleplay, and Game toolbar/input controls use neutral grey-white borders/icons instead of purple accents. - [ ] Manually verify Gallery, Chat Settings, Session, Game Assets, branches, tracker, map, and party popovers align to the shared expandable-window styling on desktop and mobile. - [ ] Manually verify custom themes can override `--marinara-chat-chrome-*` variables and `.marinara-chat-*` selectors. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added unified "Music DJ" player source selection (Spotify or YouTube) * Added branching from specific messages to create new chats * Added per-chat conversation command toggles for granular control * Enhanced drag-and-drop to support multi-selection across chats, characters, agents, and more * Added YouTube music player mobile widget * Added separate Game Session and Game Assets panels * Added custom GM instructions support for game mode * **UI Improvements** * Updated floating panel positioning for settings and gallery * Improved mobile toolbar layouts and styling * Refreshed icon set with updated export controls <!-- 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-22 04:18:15 +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#5660
No description provided.