mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3669] [Issue]: v2.3 migration re-enables agents disabled per chat #1980
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#1980
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 @Xelvanis on GitHub (Jul 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3669
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The one-time legacy capability migration can turn a chat's Enable Agents master switch back on during the v2.3 upgrade. A chat that deliberately has
enableAgents: falsecan therefore resume running its previously selected agents after the migration adds an extracted capability ID.The
enableAgents: trueassignment appears intended to keep extracted Hierarchical Maps available, but it also reactivates every other ID already retained inactiveAgentIds.Expected behavior
Upgrading should preserve the chat's existing
enableAgentsvalue exactly. Package installation and capability availability should not change the user's per-chat decision to disable agent execution.Non-pipeline capabilities such as Hierarchical Maps and Conversation games should use capability-specific installed/selected state rather than forcing the global agent master switch on.
Actual behavior
migrateLegacyChatCapabilitySelections()adds legacy capability IDs and, whenever the active ID set grows, writes:For Roleplay, Game, and Visual Novel chats, adding
hierarchical-mapstherefore enables the master switch. Existing selected agents such as Illustrator, Narrative Director, trackers, or custom agents can run again on the next generation.The behavior is also conditional: if the capability ID is already present, the function exits before changing
enableAgents. That makes the preserved switch state depend on whether the migration happened to add an ID.Steps to reproduce
enableAgents: falseand at least one selected agent inactiveAgentIds, such asillustrator.hierarchical-mapstoactiveAgentIds.Minimal state transition:
Environment
stagingat77f9f2a61e3647cad9f41399430648a00a735210)Logs, screenshots, or video
No log error is produced. The migration reports only the number of chats updated.
Relevant implementation:
legacy-capability-chat-migration.tsapp.tsmigration callerGameSurface.tsxMaps gateAdditional context
This was introduced by commit
5610c23fin PR #3613.The stated compatibility contract points in the opposite direction:
docs/development/optional-agent-packages.mdsays existing per-chat configuration remains in place.docs/agents/agents-overview.mddefines Enable Agents as the master switch and says no agent runs while it is off.Conversation games already derive availability from installed capability packages without using
enableAgents, so forcing the master switch is not needed for that migration branch. Hierarchical Maps currently uses both the capability ID and master switch, which appears to be the coupling that led to this side effect.Suggested correction:
enableAgentsvalue unchanged during migration.enableAgents: falsewith retained built-in and custom agent IDs.Impact: an upgrade can silently resume paid model calls and agent side effects that the user explicitly disabled.
Template check
@SpicyMarinara commented on GitHub (Jul 16, 2026):
Resolved in #3678: legacy capability selection migration now preserves the existing Enable Agents master switch while keeping selected Hierarchical Maps available. Migration regressions and the full validation suite pass.