[PR #2633] [MERGED] Polish chat agent settings controls #5697

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

📋 Pull Request Information

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

Base: staging ← Head: codex/agent-settings-review-cleanup


📝 Commits (3)

  • 9e2386d Add quick remove buttons to roleplay agent menus
  • cd25bdb Clean up chat agent settings controls
  • 119589e Merge branch 'staging' into codex/agent-settings-review-cleanup

📊 Changes

4 files changed (+75 additions, -111 deletions)

View changed files

📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+73 -90)
📝 packages/client/src/components/chat/RoleplayHUD.tsx (+1 -18)
📝 packages/server/src/routes/generate.routes.ts (+1 -1)
📝 packages/shared/src/types/chat.ts (+0 -2)

📄 Description

Linked issue

No linked issue. Maintainer-requested cleanup; a tracking issue should be opened before merge if required.

Why this change

  • Roleplay Chat Settings had duplicated Review Agent Outputs controls, and the Injections tab had a per-chat toggle even though it is a debugging surface.
  • Added a faster way to remove active roleplay agents from their settings menus without scrolling back to the agent picker.

What changed

  • Added top-right trash buttons to active roleplay agent settings cards, with confirmation before removing an agent from the chat.
  • Kept a single main Review Agent Outputs toggle directly under Enable Agents for each chat mode.
  • Removed the duplicate writer-section Review outputs toggle.
  • Removed the Injections tab chat setting and made the Roleplay HUD Injections tab appear automatically when global Debug Mode is enabled.

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

  • Ran git diff --check.
  • Ran pnpm --filter @marinara-engine/client build.
  • Ran pnpm --filter @marinara-engine/client lint.
  • Ran pnpm --filter @marinara-engine/server lint.
  • Browser/manual UI verification still needs to be performed by a human reviewer.

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)

Not captured in this environment.

Summary by CodeRabbit

  • New Features

    • Added dedicated removal controls for all agent settings cards with confirmation dialogs.
    • Introduced group scenario configuration options for chats.
  • Bug Fixes

    • Improved narrative director removal warning logic to better detect when confirmation is needed.
    • Updated writer agent output review behavior for consistency.
  • Refactor

    • Simplified injections tab visibility determination.

🔄 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/2633 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 6/18/2026 **Status:** ✅ Merged **Merged:** 6/18/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `codex/agent-settings-review-cleanup` --- ### 📝 Commits (3) - [`9e2386d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9e2386d9930ae3238c4a4baa47d671fdc26e05a2) Add quick remove buttons to roleplay agent menus - [`cd25bdb`](https://github.com/Pasta-Devs/Marinara-Engine/commit/cd25bdb917b5abddc3813d9f2f081edcc1d9803b) Clean up chat agent settings controls - [`119589e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/119589ec816763a53d73371898dc0e2e8d7b5d4b) Merge branch 'staging' into codex/agent-settings-review-cleanup ### 📊 Changes **4 files changed** (+75 additions, -111 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+73 -90) 📝 `packages/client/src/components/chat/RoleplayHUD.tsx` (+1 -18) 📝 `packages/server/src/routes/generate.routes.ts` (+1 -1) 📝 `packages/shared/src/types/chat.ts` (+0 -2) </details> ### 📄 Description ## Linked issue No linked issue. Maintainer-requested cleanup; a tracking issue should be opened before merge if required. ## Why this change - Roleplay Chat Settings had duplicated Review Agent Outputs controls, and the Injections tab had a per-chat toggle even though it is a debugging surface. - Added a faster way to remove active roleplay agents from their settings menus without scrolling back to the agent picker. ## What changed - Added top-right trash buttons to active roleplay agent settings cards, with confirmation before removing an agent from the chat. - Kept a single main Review Agent Outputs toggle directly under Enable Agents for each chat mode. - Removed the duplicate writer-section Review outputs toggle. - Removed the Injections tab chat setting and made the Roleplay HUD Injections tab appear automatically when global Debug Mode is enabled. ## 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 - Ran `git diff --check`. - Ran `pnpm --filter @marinara-engine/client build`. - Ran `pnpm --filter @marinara-engine/client lint`. - Ran `pnpm --filter @marinara-engine/server lint`. - Browser/manual UI verification still needs to be performed by a human reviewer. ## 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) Not captured in this environment. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added dedicated removal controls for all agent settings cards with confirmation dialogs. * Introduced group scenario configuration options for chats. * **Bug Fixes** * Improved narrative director removal warning logic to better detect when confirmation is needed. * Updated writer agent output review behavior for consistency. * **Refactor** * Simplified injections tab visibility determination. <!-- 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:37 +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#5697
No description provided.