[GH-ISSUE #2166] [Issue]: Global agent enable/disable was removed (panel toggle and editor Agent Status gone; saving forces enabled:true) #1076

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

Originally created by @Romuromylus on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2166

Originally assigned to: @cha1latte on GitHub.

Summary

The legacy app let users globally enable or disable any built-in or custom agent from the Agents panel and from the agent editor's "Agent Status" control, persisting the enabled flag so a disabled agent did not run. The refactor's Agents panel has no enable/disable toggle (only regex scripts retain one), the editor's Agent Status control is gone, and the editor hardcodes enabled: true on save, so a previously-disabled agent is silently re-enabled the moment it is saved.

Expected behavior

A user can globally enable/disable any built-in or custom agent (from the panel and the editor), the choice persists, and a disabled agent does not run. Saving an agent preserves its enabled state.

Actual behavior

The Agents panel exposes no agent enable/disable control. The editor has no "Agent Status" toggle and its save payload hardcodes enabled: true, so there is no UI path to disable an agent and saving re-enables a disabled one. The backend still supports it (agent_toggle_by_type command, enabled column, and an unused agentApi.toggleByType binding with zero callers), so this is a UI-orphaned capability. (Per-chat agent membership via the chat settings drawer is a separate feature and exists in both branches.)

Steps to reproduce

  1. Open the Agents panel and try to disable a built-in or custom agent globally: no control exists.
  2. Open the agent editor: no "Agent Status" toggle; saving sends enabled: true.
  3. Any agent previously disabled is re-enabled on next save.

Impact area

  • Catalog resources
  • React-free engine behavior, contracts, agents, or capability ports

Environment

  • Branch or commit: refactor @ 93555d4b
  • Run mode: Tauri desktop
  • OS + version: Windows 11
  • Node + pnpm versions: n/a (static parity audit, main vs refactor)
  • Rust version, if relevant: n/a
  • Remote Runtime URL configured? not relevant

Regression notes

Worked in legacy (main @ c49f1d95). main: panel toggle packages/client/src/components/panels/AgentsPanel.tsx:172-180,418-465,671-684 (+ Enabled/Disabled sections), editor "Agent Status" packages/client/src/components/agents/AgentEditor.tsx:231,801-834,529. refactor @ 93555d4b: src/features/catalog/agents/components/AgentsPanel.tsx has only Edit / Edit+Delete (toggle at :282 is regex-only); src/features/catalog/agents/components/AgentEditor.tsx:512 hardcodes enabled: true; agentApi.toggleByType (src/shared/api/agent-api.ts:21) has no callers.

Originally created by @Romuromylus on GitHub (Jun 4, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2166 Originally assigned to: @cha1latte on GitHub. ## Summary The legacy app let users globally enable or disable any built-in or custom agent from the Agents panel and from the agent editor's "Agent Status" control, persisting the `enabled` flag so a disabled agent did not run. The refactor's Agents panel has no enable/disable toggle (only regex scripts retain one), the editor's Agent Status control is gone, and the editor hardcodes `enabled: true` on save, so a previously-disabled agent is silently re-enabled the moment it is saved. ## Expected behavior A user can globally enable/disable any built-in or custom agent (from the panel and the editor), the choice persists, and a disabled agent does not run. Saving an agent preserves its enabled state. ## Actual behavior The Agents panel exposes no agent enable/disable control. The editor has no "Agent Status" toggle and its save payload hardcodes `enabled: true`, so there is no UI path to disable an agent and saving re-enables a disabled one. The backend still supports it (`agent_toggle_by_type` command, `enabled` column, and an unused `agentApi.toggleByType` binding with zero callers), so this is a UI-orphaned capability. (Per-chat agent membership via the chat settings drawer is a separate feature and exists in both branches.) ## Steps to reproduce 1. Open the Agents panel and try to disable a built-in or custom agent globally: no control exists. 2. Open the agent editor: no "Agent Status" toggle; saving sends `enabled: true`. 3. Any agent previously disabled is re-enabled on next save. ## Impact area - [x] Catalog resources - [x] React-free engine behavior, contracts, agents, or capability ports ## Environment - Branch or commit: refactor @ 93555d4b - Run mode: Tauri desktop - OS + version: Windows 11 - Node + pnpm versions: n/a (static parity audit, main vs refactor) - Rust version, if relevant: n/a - Remote Runtime URL configured? not relevant ## Regression notes Worked in legacy (main @ c49f1d95). main: panel toggle `packages/client/src/components/panels/AgentsPanel.tsx:172-180,418-465,671-684` (+ Enabled/Disabled sections), editor "Agent Status" `packages/client/src/components/agents/AgentEditor.tsx:231,801-834,529`. refactor @ 93555d4b: `src/features/catalog/agents/components/AgentsPanel.tsx` has only Edit / Edit+Delete (toggle at `:282` is regex-only); `src/features/catalog/agents/components/AgentEditor.tsx:512` hardcodes `enabled: true`; `agentApi.toggleByType` (`src/shared/api/agent-api.ts:21`) has no callers.
bsakaguchi 2026-10-21 05:26:22 +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#1076
No description provided.