[PR #2574] [MERGED] Rework agents and unify chat UI styling #5670

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

📋 Pull Request Information

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

Base: staging ← Head: codex/agent-rework-ui-unification


📝 Commits (1)

  • 715ea63 Rework agents and unify chat UI styling

📊 Changes

47 files changed (+3957 additions, -1968 deletions)

View changed files

📝 packages/client/src/components/agents/AgentEditor.tsx (+336 -57)
📝 packages/client/src/components/agents/ContextInjectionPanel.tsx (+20 -189)
📝 packages/client/src/components/chat/ChatInput.tsx (+107 -8)
📝 packages/client/src/components/chat/ChatMessage.tsx (+91 -1)
📝 packages/client/src/components/chat/ChatRoleplaySurface.tsx (+31 -0)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+1237 -416)
📝 packages/client/src/components/chat/SummaryPopover.tsx (+343 -282)
📝 packages/client/src/components/modals/EditAgentModal.tsx (+3 -3)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+144 -131)
📝 packages/client/src/hooks/use-generate.ts (+113 -20)
📝 packages/client/src/lib/agent-cadence.ts (+0 -8)
📝 packages/server/src/routes/agents.routes.ts (+6 -2)
📝 packages/server/src/routes/chats.routes.ts (+12 -47)
📝 packages/server/src/routes/encounter.routes.ts (+4 -0)
📝 packages/server/src/routes/game.routes.ts (+13 -13)
📝 packages/server/src/routes/generate.routes.ts (+158 -109)
📝 packages/server/src/routes/generate/generation-replay.ts (+15 -0)
📝 packages/server/src/routes/generate/retry-agents-route.ts (+75 -8)
📝 packages/server/src/services/agents/agent-executor.ts (+140 -87)
📝 packages/server/src/services/agents/agent-pipeline.ts (+16 -2)

...and 27 more files

📄 Description

Linked issue

No linked issue yet. Maintainer-requested agent and chat UI rework.

Why this change

  • Reworks built-in agents so Roleplay, Conversation, and Game modes expose only the intended public controls while hidden/static agents stay internal.
  • Reduces prompt bloat and aligns newer agents around shared post-processing, injection, knowledge, haptic, music, and summary behavior.
  • Keeps Chat Settings agent menus and the Agents panel on shared/tokenized styling instead of one-off purple/violet UI fragments.

What changed

  • Added shared generation helpers for Immersive HTML injection, knowledge-agent source settings, and merged Prose Guardian/Continuity rewrite settings.
  • Updated agent manifests, defaults, prompt templates, execution routing, retry behavior, haptic handling, Music DJ handling, and agent storage/schema types.
  • Moved Chat Summary behavior into the Roleplay summary UI path and kept hidden infrastructure agents out of public picker/library surfaces.
  • Unified Chat Settings agent menus through shared card/toggle components and tokenized the Agents panel action/selection styling.

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

  • Local command proof run by Codex:
    • git diff --check
    • pnpm check
    • pnpm test
    • targeted built-in agent registry smoke via node --input-type=module
    • rg -n "violet|purple|fuchsia|pink" packages/client/src/components/panels/AgentsPanel.tsx || true
  • Browser click-through, light/dark mode, mobile viewport, and screenshots still need maintainer verification before treating the checklist as complete.

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)

UI evidence (if applicable)

UI surfaces were validated through build/static checks only in this pass; screenshots or recordings still need to be attached by a maintainer after browser verification.

Summary by CodeRabbit

Release Notes

  • New Features

    • Added Narrative Director storytelling control with natural/random modes for AI-guided roleplay
    • Introduced "Push Story" button to arm next character response
    • Added restore-to-original option for Prose Guardian message rewrites
    • Enabled automatic chat summaries with configurable intervals
  • Improvements

    • Enhanced haptic feedback with pattern options and sensitivity settings
    • Improved agent phase handling and configuration merging
    • Updated game scene illustration generation 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/2574 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/15/2026 **Status:** ✅ Merged **Merged:** 6/15/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/agent-rework-ui-unification` --- ### 📝 Commits (1) - [`715ea63`](https://github.com/Pasta-Devs/Marinara-Engine/commit/715ea631db8db218e99ff4041c43e9e37212b696) Rework agents and unify chat UI styling ### 📊 Changes **47 files changed** (+3957 additions, -1968 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+336 -57) 📝 `packages/client/src/components/agents/ContextInjectionPanel.tsx` (+20 -189) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+107 -8) 📝 `packages/client/src/components/chat/ChatMessage.tsx` (+91 -1) 📝 `packages/client/src/components/chat/ChatRoleplaySurface.tsx` (+31 -0) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+1237 -416) 📝 `packages/client/src/components/chat/SummaryPopover.tsx` (+343 -282) 📝 `packages/client/src/components/modals/EditAgentModal.tsx` (+3 -3) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+144 -131) 📝 `packages/client/src/hooks/use-generate.ts` (+113 -20) 📝 `packages/client/src/lib/agent-cadence.ts` (+0 -8) 📝 `packages/server/src/routes/agents.routes.ts` (+6 -2) 📝 `packages/server/src/routes/chats.routes.ts` (+12 -47) 📝 `packages/server/src/routes/encounter.routes.ts` (+4 -0) 📝 `packages/server/src/routes/game.routes.ts` (+13 -13) 📝 `packages/server/src/routes/generate.routes.ts` (+158 -109) 📝 `packages/server/src/routes/generate/generation-replay.ts` (+15 -0) 📝 `packages/server/src/routes/generate/retry-agents-route.ts` (+75 -8) 📝 `packages/server/src/services/agents/agent-executor.ts` (+140 -87) 📝 `packages/server/src/services/agents/agent-pipeline.ts` (+16 -2) _...and 27 more files_ </details> ### 📄 Description ## Linked issue No linked issue yet. Maintainer-requested agent and chat UI rework. ## Why this change - Reworks built-in agents so Roleplay, Conversation, and Game modes expose only the intended public controls while hidden/static agents stay internal. - Reduces prompt bloat and aligns newer agents around shared post-processing, injection, knowledge, haptic, music, and summary behavior. - Keeps Chat Settings agent menus and the Agents panel on shared/tokenized styling instead of one-off purple/violet UI fragments. ## What changed - Added shared generation helpers for Immersive HTML injection, knowledge-agent source settings, and merged Prose Guardian/Continuity rewrite settings. - Updated agent manifests, defaults, prompt templates, execution routing, retry behavior, haptic handling, Music DJ handling, and agent storage/schema types. - Moved Chat Summary behavior into the Roleplay summary UI path and kept hidden infrastructure agents out of public picker/library surfaces. - Unified Chat Settings agent menus through shared card/toggle components and tokenized the Agents panel action/selection styling. ## 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 - Local command proof run by Codex: - `git diff --check` - `pnpm check` - `pnpm test` - targeted built-in agent registry smoke via `node --input-type=module` - `rg -n "violet|purple|fuchsia|pink" packages/client/src/components/panels/AgentsPanel.tsx || true` - Browser click-through, light/dark mode, mobile viewport, and screenshots still need maintainer verification before treating the checklist as complete. ## 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) ## UI evidence (if applicable) UI surfaces were validated through build/static checks only in this pass; screenshots or recordings still need to be attached by a maintainer after browser verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **New Features** * Added Narrative Director storytelling control with natural/random modes for AI-guided roleplay * Introduced "Push Story" button to arm next character response * Added restore-to-original option for Prose Guardian message rewrites * Enabled automatic chat summaries with configurable intervals * **Improvements** * Enhanced haptic feedback with pattern options and sensitivity settings * Improved agent phase handling and configuration merging * Updated game scene illustration generation 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-22 04:18:20 +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#5670
No description provided.