[PR #2606] [MERGED] [codex] Polish chat agents, game setup, and settings UX #5689

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

📋 Pull Request Information

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

Base: staging ← Head: codex/chat-agents-game-settings-polish


📝 Commits (2)

  • a34282d Polish chat agents and setup flows
  • be6cac3 Address CodeRabbit review findings

📊 Changes

115 files changed (+9422 additions, -3946 deletions)

View changed files

📝 package.json (+1 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+196 -117)
📝 packages/client/src/components/agents/RegexScriptEditor.tsx (+29 -22)
📝 packages/client/src/components/agents/SecretPlotPanel.tsx (+165 -361)
📝 packages/client/src/components/agents/ToolEditor.tsx (+27 -21)
📝 packages/client/src/components/characters/CharacterEditor.tsx (+28 -36)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+7 -7)
➕ packages/client/src/components/chat/AgentAddSetupFields.tsx (+1492 -0)
📝 packages/client/src/components/chat/ChatArea.tsx (+89 -26)
📝 packages/client/src/components/chat/ChatGallery.tsx (+20 -4)
📝 packages/client/src/components/chat/ChatInput.tsx (+64 -37)
📝 packages/client/src/components/chat/ChatMessage.tsx (+54 -7)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+69 -92)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+1485 -852)
📝 packages/client/src/components/chat/ChatSetupWizard.tsx (+184 -88)
📝 packages/client/src/components/chat/ConversationInput.tsx (+13 -4)
📝 packages/client/src/components/chat/ConversationMessageShared.tsx (+36 -5)
📝 packages/client/src/components/chat/HomeAchievements.tsx (+21 -13)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+9 -2)
📝 packages/client/src/components/chat/NewChatConnectionGate.tsx (+5 -8)

...and 80 more files

📄 Description

Linked issue

No linked issue. Maintainer requested this bundled chat, roleplay, game setup, and settings polish pass directly.

Why this change

This bundles the recent Marinara chat, agent, setup wizard, settings, and library workflow fixes into one reviewable PR so the current staging work can be reviewed and merged together.

What changed

  • Added PDF/file attachment support and related chat file handling improvements.
  • Folded Secret Plot Driver behavior into Narrative Director roleplay settings and removed legacy built-in agent entries that should no longer appear.
  • Updated roleplay agent setup/settings UI, including added-agent menus, navigation links, Echo Chamber settings, write-approval flow, and mode-specific agent availability.
  • Expanded game setup/settings for widgets, GM instructions, and prompt editing while removing roleplay-only agent toggles from game mode.
  • Polished shared editor/settings chrome, presets controls, color presets, regex/function editor buttons, and selection actions.
  • Improved folder-aware search across chats and library tabs.
  • Updated server/shared prompt, agent, provider, and chat preset plumbing to support the new agent/settings behavior.

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

Command validation run locally:

pnpm --filter @marinara-engine/client exec eslint src/components/agents/RegexScriptEditor.tsx src/components/agents/ToolEditor.tsx
pnpm --filter @marinara-engine/client exec tsc --noEmit
git diff --check
pnpm check

Manual verification notes

Browser/app click-through and screenshots were not captured in this pass. This PR should still receive manual UI verification before release because it touches several chat, roleplay, game, and settings surfaces.

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)

No docs or version bump are included.

UI evidence (if applicable)

Not captured in this pass.

Summary by CodeRabbit

  • New Features

    • Added PDF support for chat/file attachments end-to-end
    • Introduced agent write approval flow for lorebook and summary updates (with an approval queue)
    • Narrative Director secret plot maintenance with configurable run interval
    • Custom HUD widgets and extra GM instructions in game setup
    • Roleplay “scrollable avatars”, automatic chat summaries toggle, and “invisible” user status
    • Illustrator character-appearance notes and separate expressions vs full-body sprite placement
  • UI/Style Updates

    • Rolled out new unified “mari-*” editor/chrome styling and improved mobile layouts; enhanced chat import UI
  • Improvements

    • Improved attachment previews/removal, sprite placement persistence, and selection-mode bulk actions

🔄 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/2606 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/17/2026 **Status:** ✅ Merged **Merged:** 6/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/chat-agents-game-settings-polish` --- ### 📝 Commits (2) - [`a34282d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/a34282d77aed965034ed7decf423c475e73502f5) Polish chat agents and setup flows - [`be6cac3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/be6cac34abb54430f5bac204682955781d185023) Address CodeRabbit review findings ### 📊 Changes **115 files changed** (+9422 additions, -3946 deletions) <details> <summary>View changed files</summary> 📝 `package.json` (+1 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+196 -117) 📝 `packages/client/src/components/agents/RegexScriptEditor.tsx` (+29 -22) 📝 `packages/client/src/components/agents/SecretPlotPanel.tsx` (+165 -361) 📝 `packages/client/src/components/agents/ToolEditor.tsx` (+27 -21) 📝 `packages/client/src/components/characters/CharacterEditor.tsx` (+28 -36) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+7 -7) ➕ `packages/client/src/components/chat/AgentAddSetupFields.tsx` (+1492 -0) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+89 -26) 📝 `packages/client/src/components/chat/ChatGallery.tsx` (+20 -4) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+64 -37) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+54 -7) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+69 -92) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+1485 -852) 📝 `packages/client/src/components/chat/ChatSetupWizard.tsx` (+184 -88) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+13 -4) 📝 `packages/client/src/components/chat/ConversationMessageShared.tsx` (+36 -5) 📝 `packages/client/src/components/chat/HomeAchievements.tsx` (+21 -13) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+9 -2) 📝 `packages/client/src/components/chat/NewChatConnectionGate.tsx` (+5 -8) _...and 80 more files_ </details> ### 📄 Description ## Linked issue No linked issue. Maintainer requested this bundled chat, roleplay, game setup, and settings polish pass directly. ## Why this change This bundles the recent Marinara chat, agent, setup wizard, settings, and library workflow fixes into one reviewable PR so the current staging work can be reviewed and merged together. ## What changed - Added PDF/file attachment support and related chat file handling improvements. - Folded Secret Plot Driver behavior into Narrative Director roleplay settings and removed legacy built-in agent entries that should no longer appear. - Updated roleplay agent setup/settings UI, including added-agent menus, navigation links, Echo Chamber settings, write-approval flow, and mode-specific agent availability. - Expanded game setup/settings for widgets, GM instructions, and prompt editing while removing roleplay-only agent toggles from game mode. - Polished shared editor/settings chrome, presets controls, color presets, regex/function editor buttons, and selection actions. - Improved folder-aware search across chats and library tabs. - Updated server/shared prompt, agent, provider, and chat preset plumbing to support the new agent/settings behavior. ## 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` Command validation run locally: ```bash pnpm --filter @marinara-engine/client exec eslint src/components/agents/RegexScriptEditor.tsx src/components/agents/ToolEditor.tsx pnpm --filter @marinara-engine/client exec tsc --noEmit git diff --check pnpm check ``` ### Manual verification notes Browser/app click-through and screenshots were not captured in this pass. This PR should still receive manual UI verification before release because it touches several chat, roleplay, game, and settings surfaces. ## 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) No docs or version bump are included. ## UI evidence (if applicable) Not captured in this pass. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added PDF support for chat/file attachments end-to-end * Introduced agent write approval flow for lorebook and summary updates (with an approval queue) * Narrative Director secret plot maintenance with configurable run interval * Custom HUD widgets and extra GM instructions in game setup * Roleplay “scrollable avatars”, automatic chat summaries toggle, and “invisible” user status * Illustrator character-appearance notes and separate expressions vs full-body sprite placement * **UI/Style Updates** * Rolled out new unified “mari-*” editor/chrome styling and improved mobile layouts; enhanced chat import UI * **Improvements** * Improved attachment previews/removal, sprite placement persistence, and selection-mode bulk actions <!-- 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:33 +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#5689
No description provided.