[GH-ISSUE #2485] [Issue]: 13-AGENT-UI-chat-activation loses default agent fallback #1229

Closed
opened 2026-10-21 05:29:23 +07:00 by bsakaguchi · 0 comments
Owner

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 enableAgents toggle and default-agent fallback. Empty activeAgentIds now 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:147 defines enableAgents.
  • packages/shared/src/types/chat.ts:151 says empty activeAgentIds uses globally enabled agents.
  • packages/client/src/components/chat/ChatSettingsDrawer.tsx:3666 and :3668 render and update the master Enable Agents toggle.
  • packages/client/src/components/chat/ChatSettingsDrawer.tsx:4605 and :4607 tell users workspace default agents are used when no per-chat overrides exist.

Actual behavior

Refactor behavior:

  • src/engine/contracts/types/chat.ts:155 and :157 keep agentOverrides/activeAgentIds, but remove enableAgents and define empty activeAgentIds as no automatic agents.
  • src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:725 and :744 derive agent enablement from activeAgentIds.length > 0.
  • src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:4227 and :4231 say agents run only when added to the chat.
  • src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:5157 and :5159 say no agents are active when the list is empty.

Steps to reproduce

  1. Compare 13-AGENT-UI-chat-activation owner paths from #2482 on upstream/main and current refactor.
  2. Inspect legacy packages/shared/src/types/chat.ts and packages/client/src/components/chat/ChatSettingsDrawer.tsx for enableAgents and empty activeAgentIds semantics.
  3. Inspect refactor src/engine/contracts/types/chat.ts and src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx for active-list-only semantics.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor @ e115d87f
  • Run mode: static trace
  • OS + version: not relevant
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not relevant
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: agents

Logs, screenshots, or video

Proof used: static trace only. Files inspected:

  • AGENTS.md
  • docs/REFACTOR_PARITY_PIPELINE.md:111
  • packages/shared/src/types/chat.ts:147
  • packages/client/src/components/chat/ChatSettingsDrawer.tsx:3656
  • packages/client/src/components/chat/ChatArea.tsx:706
  • src/engine/contracts/types/chat.ts:155
  • src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:725

Regression notes

Worked in legacy main branch. Source tracker: #2482 surface 13-AGENT-UI-chat-activation.

Acceptance criteria:

  • Decide whether active-list-only agent selection is intentional divergence or restore legacy default-agent fallback semantics.
  • If restoring parity, chat settings exposes or preserves a chat-level enabled state equivalent to legacy enableAgents.
  • If no per-chat agents are selected while agents are enabled, UI and runtime semantics use legacy default/global active agents or documented replacement defaults.
  • Empty activeAgentIds copy does not falsely imply no agents run when fallback/default agents are active.
  • 13-AGENT-UI-chat-activation in #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:

  • I DID NOT read this template and provide the requested details.
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 `enableAgents` toggle and default-agent fallback. Empty `activeAgentIds` now 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:147` defines `enableAgents`. - `packages/shared/src/types/chat.ts:151` says empty `activeAgentIds` uses globally enabled agents. - `packages/client/src/components/chat/ChatSettingsDrawer.tsx:3666` and `:3668` render and update the master Enable Agents toggle. - `packages/client/src/components/chat/ChatSettingsDrawer.tsx:4605` and `:4607` tell users workspace default agents are used when no per-chat overrides exist. ## Actual behavior Refactor behavior: - `src/engine/contracts/types/chat.ts:155` and `:157` keep `agentOverrides`/`activeAgentIds`, but remove `enableAgents` and define empty `activeAgentIds` as no automatic agents. - `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:725` and `:744` derive agent enablement from `activeAgentIds.length > 0`. - `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:4227` and `:4231` say agents run only when added to the chat. - `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:5157` and `:5159` say no agents are active when the list is empty. ## Steps to reproduce 1. Compare `13-AGENT-UI-chat-activation` owner paths from #2482 on `upstream/main` and current refactor. 2. Inspect legacy `packages/shared/src/types/chat.ts` and `packages/client/src/components/chat/ChatSettingsDrawer.tsx` for `enableAgents` and empty `activeAgentIds` semantics. 3. Inspect refactor `src/engine/contracts/types/chat.ts` and `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx` for active-list-only semantics. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [x] Roleplay mode - [x] Game mode - [x] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [x] React-free engine behavior, contracts, agents, or capability ports - [ ] Shared API wrapper or remote runtime routing - [ ] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor @ e115d87f - Run mode: static trace - OS + version: not relevant - Node + pnpm versions: not relevant - Rust version, if relevant: not relevant - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: agents ## Logs, screenshots, or video Proof used: static trace only. Files inspected: - `AGENTS.md` - `docs/REFACTOR_PARITY_PIPELINE.md:111` - `packages/shared/src/types/chat.ts:147` - `packages/client/src/components/chat/ChatSettingsDrawer.tsx:3656` - `packages/client/src/components/chat/ChatArea.tsx:706` - `src/engine/contracts/types/chat.ts:155` - `src/features/modes/shared/chat-ui/components/ChatSettingsDrawer.tsx:725` ## Regression notes Worked in legacy `main` branch. Source tracker: #2482 surface `13-AGENT-UI-chat-activation`. Acceptance criteria: - Decide whether active-list-only agent selection is intentional divergence or restore legacy default-agent fallback semantics. - If restoring parity, chat settings exposes or preserves a chat-level enabled state equivalent to legacy `enableAgents`. - If no per-chat agents are selected while agents are enabled, UI and runtime semantics use legacy default/global active agents or documented replacement defaults. - Empty `activeAgentIds` copy does not falsely imply no agents run when fallback/default agents are active. - `13-AGENT-UI-chat-activation` in #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: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:29:23 +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#1229
No description provided.