[PR #3697] [MERGED] Allow custom agents in every chat mode #6056

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3697
Author: @SpicyMarinara
Created: 7/16/2026
Status: ✅ Merged
Merged: 7/16/2026
Merged by: @SpicyMarinara

Base: staging ← Head: agent/issue-3692-custom-agents-all-modes


📝 Commits (2)

  • 07cdc6a Allow custom agents in every chat mode
  • f372ae1 Remove obsolete agent mode gate input

📊 Changes

6 files changed (+19 additions, -9 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/server/src/routes/chats.routes.ts (+0 -1)
📝 packages/server/src/routes/generate.routes.ts (+0 -1)
📝 packages/server/src/routes/generate/dry-run-route.ts (+0 -1)
📝 packages/server/src/routes/generate/generate-route-utils.ts (+1 -3)
📝 scripts/regressions/prompt.regression.ts (+17 -3)

📄 Description

Linked issue

Closes #3692

Why this change

  • Conversation generation forcibly disabled the entire agent pipeline even when Enable Agents was on and a custom agent was explicitly attached.
  • The shared mode policy already permits user-authored agents in every chat mode and separately filters official packages by compatibility, so the global Conversation veto contradicted both the UI and documented behavior.

What changed

  • Removed the Conversation-only veto from the generation agent master gate.
  • Preserved the Enable Agents master switch, impersonation blocking, and per-mode official-agent availability rules.
  • Added regression coverage for Conversation, Roleplay, legacy Visual Novel, and Game modes, including custom-agent availability.
  • Updated the Unreleased changelog.

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

Automated validation completed:

  • pnpm install
  • pnpm regression:prompt
  • pnpm check
  • pnpm version:check

Manual verification notes

  • Manually verify that a selected post-processing custom agent runs in a Conversation chat when Enable Agents is on.
  • Manually verify that disabling Enable Agents still prevents it from running.

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)

The Unreleased changelog is updated. Existing custom-agent documentation already states the intended all-mode behavior.

UI evidence (if applicable)

No UI changes.

Summary by CodeRabbit

  • New Features

    • Selected custom agents can now run in Conversation, Roleplay, and Game chat modes when agents are enabled.
    • Official packages continue to follow their existing mode-specific availability rules.
  • Bug Fixes

    • Improved agent availability handling across supported chat modes while preserving impersonation restrictions.
  • Tests

    • Expanded regression coverage for agent behavior and mode-specific availability.

🔄 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/3697 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/16/2026 **Status:** ✅ Merged **Merged:** 7/16/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/issue-3692-custom-agents-all-modes` --- ### 📝 Commits (2) - [`07cdc6a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/07cdc6afdfc72d167d24dbd79936b06ae09a70d7) Allow custom agents in every chat mode - [`f372ae1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f372ae1fab6e33ce6d281f85121d032543bd314d) Remove obsolete agent mode gate input ### 📊 Changes **6 files changed** (+19 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/server/src/routes/chats.routes.ts` (+0 -1) 📝 `packages/server/src/routes/generate.routes.ts` (+0 -1) 📝 `packages/server/src/routes/generate/dry-run-route.ts` (+0 -1) 📝 `packages/server/src/routes/generate/generate-route-utils.ts` (+1 -3) 📝 `scripts/regressions/prompt.regression.ts` (+17 -3) </details> ### 📄 Description ## Linked issue Closes #3692 ## Why this change - Conversation generation forcibly disabled the entire agent pipeline even when **Enable Agents** was on and a custom agent was explicitly attached. - The shared mode policy already permits user-authored agents in every chat mode and separately filters official packages by compatibility, so the global Conversation veto contradicted both the UI and documented behavior. ## What changed - Removed the Conversation-only veto from the generation agent master gate. - Preserved the **Enable Agents** master switch, impersonation blocking, and per-mode official-agent availability rules. - Added regression coverage for Conversation, Roleplay, legacy Visual Novel, and Game modes, including custom-agent availability. - Updated the Unreleased changelog. ## 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` Automated validation completed: - `pnpm install` - `pnpm regression:prompt` - `pnpm check` - `pnpm version:check` ### Manual verification notes - Manually verify that a selected post-processing custom agent runs in a Conversation chat when **Enable Agents** is on. - Manually verify that disabling **Enable Agents** still prevents it from running. ## 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) The Unreleased changelog is updated. Existing custom-agent documentation already states the intended all-mode behavior. ## UI evidence (if applicable) No UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Selected custom agents can now run in Conversation, Roleplay, and Game chat modes when agents are enabled. * Official packages continue to follow their existing mode-specific availability rules. * **Bug Fixes** * Improved agent availability handling across supported chat modes while preserving impersonation restrictions. * **Tests** * Expanded regression coverage for agent behavior and mode-specific availability. <!-- 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:06:41 +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#6056
No description provided.