[PR #6437] [CLOSED] Add a centralized agent connection routing view #7178

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6437
Author: @SirAdoni
Created: 9/20/2026
Status: ❌ Closed

Base: staging ← Head: contrib/e04-agent-routing


📝 Commits (1)

  • 04835b3 Add centralized agent connection routing controls

📊 Changes

8 files changed (+789 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+2 -2)
➕ packages/client/src/components/agents/AgentRoutingModal.tsx (+353 -0)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+126 -0)
➕ packages/client/src/lib/agent-routing-bulk.ts (+13 -0)
📝 packages/client/src/localization/locales/en.json (+45 -1)
➕ scripts/regressions/agent-routing-bulk.regression.ts (+41 -0)
➕ scripts/regressions/agent-routing.browser.regression.mjs (+207 -0)

📄 Description

Linked issue

Closes #6435

Why this change

Users need to see which model each agent will use and change several assignments without opening every editor. A saved chat-specific media override can otherwise remain hidden behind an apparently different agent assignment.

What changed

  • Add a searchable routing view in the Agents panel showing agent assignments, inherited defaults and model names.
  • Assign a connection to individual or selected agents; support a confirmed panel-wide bulk assignment. Wait for every write before unlocking controls and identify partial failures.
  • Show current-chat Illustrator and Storyboard overrides, including legacy game scene settings even when the agent has an assignment. Clearing the scene override clears its legacy fallback too.
  • Add connection-test timing/results and shortcuts to agent settings without activating agents automatically.
  • Add semantic English localization, a changelog entry, desktop/mobile browser regression and delayed partial-failure regression.

Existing server routing and providers are retained. Host-owned map routing remains separate and belongs to the map integration contribution.

Validation

Passed all check stages individually with repository-pinned Corepack pnpm: stale-client cleanup, localization, formatting, workspace lint/type checks, E2E/token-estimation type checks and production build. The literal root check is blocked by this Windows checkout's skills symlink being represented as a text file. The actual context guard passed in an isolated copy containing the unchanged project context and skill target; no tracked skill or build-policy changes are included.

The generic desktop/mobile browser fixture passed selection, individual and bulk assignment, partial failure, stale connections, chat override precedence/reset, timed connection probes and editor navigation. A separate delayed-write regression verifies partial failure cannot unlock controls while another write remains pending. Provider responses are simulated; no paid/live provider requests were made. Privacy review and git diff --check passed.

  • 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

  • Verify real agent assignments persist after reload and select the intended provider/model.
  • Verify chat media overrides, defaults, local-model inheritance and settings navigation with installed packages.
  • Verify live connection-test failures/timeouts and light/dark/mobile presentation.
  • Complete CodeRabbit and required CI before merge. This remains draft pending manual validation.

Docs and release impact

English UI catalog and Unreleased changelog updated. No provider, configuration schema, release version or translated documentation changes.

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Browser fixtures use generic connections and fake responses. Private settings, credentials, campaign content and screenshots are excluded.

Summary by CodeRabbit

  • New Features

    • Added a central agent-routing view for assigning connections to individual agents or groups of agents.
    • Supports per-agent overrides, inherited defaults, model names, connection testing, and clearing chat-level overrides.
    • Added bulk connection assignment from the Agents panel with success and failure feedback.
    • Image/storyboard and host-owned map routing remain separate.
  • Bug Fixes

    • Connection options now display the model name when available, falling back to the provider name.
  • Tests

    • Added coverage for bulk assignment, partial failures, responsive layouts, override handling, and connection testing.

🔄 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/6437 **Author:** [@SirAdoni](https://github.com/SirAdoni) **Created:** 9/20/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `contrib/e04-agent-routing` --- ### 📝 Commits (1) - [`04835b3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/04835b3a013325f033070038ce66b911fc79ef1f) Add centralized agent connection routing controls ### 📊 Changes **8 files changed** (+789 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+2 -2) ➕ `packages/client/src/components/agents/AgentRoutingModal.tsx` (+353 -0) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+126 -0) ➕ `packages/client/src/lib/agent-routing-bulk.ts` (+13 -0) 📝 `packages/client/src/localization/locales/en.json` (+45 -1) ➕ `scripts/regressions/agent-routing-bulk.regression.ts` (+41 -0) ➕ `scripts/regressions/agent-routing.browser.regression.mjs` (+207 -0) </details> ### 📄 Description ## Linked issue Closes #6435 ## Why this change Users need to see which model each agent will use and change several assignments without opening every editor. A saved chat-specific media override can otherwise remain hidden behind an apparently different agent assignment. ## What changed - Add a searchable routing view in the Agents panel showing agent assignments, inherited defaults and model names. - Assign a connection to individual or selected agents; support a confirmed panel-wide bulk assignment. Wait for every write before unlocking controls and identify partial failures. - Show current-chat Illustrator and Storyboard overrides, including legacy game scene settings even when the agent has an assignment. Clearing the scene override clears its legacy fallback too. - Add connection-test timing/results and shortcuts to agent settings without activating agents automatically. - Add semantic English localization, a changelog entry, desktop/mobile browser regression and delayed partial-failure regression. Existing server routing and providers are retained. Host-owned map routing remains separate and belongs to the map integration contribution. ## Validation Passed all check stages individually with repository-pinned Corepack pnpm: stale-client cleanup, localization, formatting, workspace lint/type checks, E2E/token-estimation type checks and production build. The literal root check is blocked by this Windows checkout's skills symlink being represented as a text file. The actual context guard passed in an isolated copy containing the unchanged project context and skill target; no tracked skill or build-policy changes are included. The generic desktop/mobile browser fixture passed selection, individual and bulk assignment, partial failure, stale connections, chat override precedence/reset, timed connection probes and editor navigation. A separate delayed-write regression verifies partial failure cannot unlock controls while another write remains pending. Provider responses are simulated; no paid/live provider requests were made. Privacy review and `git diff --check` passed. - [ ] `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 - [ ] Verify real agent assignments persist after reload and select the intended provider/model. - [ ] Verify chat media overrides, defaults, local-model inheritance and settings navigation with installed packages. - [ ] Verify live connection-test failures/timeouts and light/dark/mobile presentation. - [ ] Complete CodeRabbit and required CI before merge. This remains draft pending manual validation. ## Docs and release impact English UI catalog and Unreleased changelog updated. No provider, configuration schema, release version or translated documentation changes. - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) Browser fixtures use generic connections and fake responses. Private settings, credentials, campaign content and screenshots are excluded. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added a central agent-routing view for assigning connections to individual agents or groups of agents. * Supports per-agent overrides, inherited defaults, model names, connection testing, and clearing chat-level overrides. * Added bulk connection assignment from the Agents panel with success and failure feedback. * Image/storyboard and host-owned map routing remain separate. * **Bug Fixes** * Connection options now display the model name when available, falling back to the provider name. * **Tests** * Added coverage for bulk assignment, partial failures, responsive layouts, override handling, and connection testing. <!-- 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:17:15 +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#7178
No description provided.