[PR #776] [MERGED] Fix smart group selector Response Orchestrator settings #4769

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/776
Author: @Promansis
Created: 5/13/2026
Status: ✅ Merged
Merged: 5/13/2026
Merged by: @Promansis

Base: main ← Head: fix/response-orchestrator-selector-settings


📝 Commits (2)

  • 6b81ee1 fix: wire smart selector to orchestrator settings (#775)
  • 1f177b4 fix: wire smart selector to orchestrator settings (#775)

📊 Changes

2 files changed (+327 additions, -4 deletions)

View changed files

📝 packages/server/src/routes/generate.routes.ts (+135 -4)
📝 packages/server/test/generate-hidden-regenerate.test.ts (+192 -0)

📄 Description

Linked issue

Closes #775

Why this change

  • Smart group chats use a hidden speaker-selection call to decide which character responds next.
  • That selector was using the chat/default connection plumbing with a small fixed budget instead of the saved Response Orchestrator agent connection and settings.
  • Users configuring Response Orchestrator could therefore see no effect on the actual hidden chooser call.

What changed

  • Resolved the Response Orchestrator config for smart group speaker selection without enabling unrelated pipeline agents.
  • Applied the configured Response Orchestrator provider/model, temperature, max-token budget, and provider max-token override to the hidden chooser call.
  • Reused an already-resolved active Response Orchestrator agent to avoid duplicate Local Model/default-agent billing warnings.
  • Added a regression test proving the selector uses the Response Orchestrator connection/settings while main generation stays on the chat connection.
  • Awaited the fake provider HTTP server shutdowns in the regression test.

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

  • Codex ran pnpm --filter @marinara-engine/server test -- test/generate-hidden-regenerate.test.ts; all 292 server tests passed.
  • Codex ran pnpm check; it passed.
  • Codex ran docker build -t marinara-engine:response-orchestrator-selector .; it passed.
  • Human manual verification: configured/tested the smart group Response Orchestrator path and confirmed it works.

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, release, or version files changed.

UI evidence (if applicable)

N/A. Server-side routing/configuration fix; no UI changes.

Summary by CodeRabbit

  • New Features

    • Enhanced "smart" group speaker selection to use dedicated orchestrator agent's model and token budget settings.
    • Added configurable token-clamping with provider-specific maximum token overrides.
    • Improved fallback behavior when orchestrator configuration is unavailable.
  • Tests

    • Added test coverage for smart group speaker selector routing and agent integration.

Review Change Stack


🔄 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/776 **Author:** [@Promansis](https://github.com/Promansis) **Created:** 5/13/2026 **Status:** ✅ Merged **Merged:** 5/13/2026 **Merged by:** [@Promansis](https://github.com/Promansis) **Base:** `main` ← **Head:** `fix/response-orchestrator-selector-settings` --- ### 📝 Commits (2) - [`6b81ee1`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b81ee1c24302cb211908bed75f507e1b47f39b3) fix: wire smart selector to orchestrator settings (#775) - [`1f177b4`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1f177b4cd4d011730845876b3471cedf185918a1) fix: wire smart selector to orchestrator settings (#775) ### 📊 Changes **2 files changed** (+327 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/routes/generate.routes.ts` (+135 -4) 📝 `packages/server/test/generate-hidden-regenerate.test.ts` (+192 -0) </details> ### 📄 Description ## Linked issue Closes #775 ## Why this change - Smart group chats use a hidden speaker-selection call to decide which character responds next. - That selector was using the chat/default connection plumbing with a small fixed budget instead of the saved Response Orchestrator agent connection and settings. - Users configuring Response Orchestrator could therefore see no effect on the actual hidden chooser call. ## What changed - Resolved the Response Orchestrator config for smart group speaker selection without enabling unrelated pipeline agents. - Applied the configured Response Orchestrator provider/model, temperature, max-token budget, and provider max-token override to the hidden chooser call. - Reused an already-resolved active Response Orchestrator agent to avoid duplicate Local Model/default-agent billing warnings. - Added a regression test proving the selector uses the Response Orchestrator connection/settings while main generation stays on the chat connection. - Awaited the fake provider HTTP server shutdowns in the regression test. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Codex ran `pnpm --filter @marinara-engine/server test -- test/generate-hidden-regenerate.test.ts`; all 292 server tests passed. - Codex ran `pnpm check`; it passed. - Codex ran `docker build -t marinara-engine:response-orchestrator-selector .`; it passed. - Human manual verification: configured/tested the smart group Response Orchestrator path and confirmed it works. ## Docs and release impact - [x] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [x] Version/release files updated (only if this PR includes a version bump) No docs, release, or version files changed. ## UI evidence (if applicable) N/A. Server-side routing/configuration fix; no UI changes. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Enhanced "smart" group speaker selection to use dedicated orchestrator agent's model and token budget settings. * Added configurable token-clamping with provider-specific maximum token overrides. * Improved fallback behavior when orchestrator configuration is unavailable. * **Tests** * Added test coverage for smart group speaker selector routing and agent integration. [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/776) <!-- 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:10:29 +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#4769
No description provided.