mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2485] [Issue]: 13-AGENT-UI-chat-activation loses default agent fallback #1229
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#1229
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 @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2485
Summary
13-AGENT-UI-chat-activation parity gap: refactor chat settings removed the legacy chat-level
enableAgentstoggle and default-agent fallback. EmptyactiveAgentIdsnow means no automatic agents, while legacy used globally enabled/default agents when chat agents were enabled and no per-chat overrides existed.Expected behavior
Legacy parity for
13-AGENT-UI-chat-activation: chat settings should preserve chat-level agent enablement and default active-agent fallback semantics, or provide an intentional-divergence record if the refactor intentionally moved to explicit per-chat agent selection only.Legacy behavior:
packages/shared/src/types/chat.ts:147definesenableAgents.packages/shared/src/types/chat.ts:151says emptyactiveAgentIdsuses globally enabled agents.packages/client/src/components/chat/ChatSettingsDrawer.tsx:3666and:3668render and update the master Enable Agents toggle.packages/client/src/components/chat/ChatSettingsDrawer.tsx:4605and:4607tell users workspace default agents are used when no per-chat overrides exist.Actual behavior
Refactor behavior:
src/engine/contracts/types/chat.ts:155and:157keepagentOverrides/activeAgentIds, but removeenableAgentsand define emptyactiveAgentIdsas no automatic agents.src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:725and:744derive agent enablement fromactiveAgentIds.length > 0.src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:4227and:4231say agents run only when added to the chat.src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:5157and:5159say no agents are active when the list is empty.Steps to reproduce
13-AGENT-UI-chat-activationowner paths from #2482 onupstream/mainand current refactor.packages/shared/src/types/chat.tsandpackages/client/src/components/chat/ChatSettingsDrawer.tsxforenableAgentsand emptyactiveAgentIdssemantics.src/engine/contracts/types/chat.tsandsrc/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsxfor active-list-only semantics.Impact area
Environment
e115d87fLogs, screenshots, or video
Proof used: static trace only. Files inspected:
AGENTS.mddocs/REFACTOR_PARITY_PIPELINE.md:111packages/shared/src/types/chat.ts:147packages/client/src/components/chat/ChatSettingsDrawer.tsx:3656packages/client/src/components/chat/ChatArea.tsx:706src/engine/contracts/types/chat.ts:155src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:725Regression notes
Worked in legacy
mainbranch. Source tracker: #2482 surface13-AGENT-UI-chat-activation.Acceptance criteria:
enableAgents.activeAgentIdscopy does not falsely imply no agents run when fallback/default agents are active.13-AGENT-UI-chat-activationin #2482 links this issue after completion.Additional context
This issue covers only
13-AGENT-UI-chat-activation. Runtime activation semantics were noted but not traced broadly because the batch was limited to the UI surface.Template check
Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: