mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5539] Local sidecar cannot be the default connection for agents, and there is no bulk agent connection assignment #3078
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3078
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kolacheee on GitHub (Aug 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5539
Originally assigned to: @kolacheee on GitHub.
From the same user report as #5537: the user wanted all their agents on the local sidecar. To do that they had to open every agent one by one and set its connection manually, because the app offers no other way — and along the way they concluded (reasonably, but wrongly) that a bulk option had been removed.
Two gaps combine here.
1. The defaults section cannot express "agents default to the local sidecar"
The Connections panel's defaults section ("default for Agents") builds its picker exclusively from stored connection rows and flags one row's
defaultForAgents. The local sidecar is not a row: it is a client-side pseudo-connection fabricated on the fly (createLocalSidecarConnectionOptioninpackages/client/src/lib/connection-filters.ts, id__local_sidecar__frompackages/shared/src/constants/defaults.ts:10), and its option type has nodefaultForAgentsfield at all. The defaults UI never callsappendLocalSidecarConnectionOption, so the sidecar simply never appears there — with the model downloaded or not.Server-side resolution matches: an agent with no explicit connection resolves per-agent
connectionId→ thedefaultForAgentsDB row → the chat's connection. The sidecar can only ever enter through the per-agent explicit id, so "agents default to the sidecar" is currently inexpressible in the data model, not just missing from the UI.The only workaround is setting the chat's connection to Local Model so agents inherit it — which also routes the roleplay itself through the deliberately small default model that the UI's own copy warns is not meant for roleplay. Not a real answer.
2. There is no bulk connection assignment for agents
The single bulk control that exists is "Use local model for all tracker agents" (
ConnectionsPanel.tsx:607-626) — tracker-category only, and currently buried (#5538). Agent count is catalog-driven and grows with every installed package; the Agents panel has no bulk connection control at all. So moving a full agent roster between backends — in either direction — means editing every agent by hand today. That is exactly the round trip the reporting user performed, twice.Try it yourself
Suggested directions
__local_sidecar__sentinel in thedefaultForAgentsslot (resolution already knows how to route the per-agent version of it), or synthesize a virtual row for the defaults picker that persists the sentinel.handleAssignTrackersToLocalalready does for trackers.Either half alone would have saved the reporting user the manual round trip; together they make backend experiments (exactly what the sidecar invites) cheap instead of punishing.
@kolacheee commented on GitHub (Aug 25, 2026):
Implementation starting — owner: @kolacheee. Draft PR will follow shortly on a
staging-targeted branch.@kolacheee commented on GitHub (Aug 25, 2026):
Implemented in draft PR #5542 (top of the stack #5540 → #5541 → #5542). Owner: @kolacheee.