[PR #1017] [MERGED] Fix agent enable controls #4886

Closed
opened 2026-10-22 04:11:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1017
Author: @cha1latte
Created: 5/19/2026
Status: ✅ Merged
Merged: 5/19/2026
Merged by: @cha1latte

Base: staging ← Head: fix/issue-1008-disable-agents


📝 Commits (1)

  • 8e3eed5 Fix agent enable controls

📊 Changes

5 files changed (+132 additions, -8 deletions)

View changed files

➕ docs/pr-evidence/issue-1008/after.png (+0 -0)
➕ docs/pr-evidence/issue-1008/before.png (+0 -0)
➕ docs/pr-evidence/issue-1008/editor-preserve.png (+0 -0)
📝 packages/client/src/components/agents/AgentEditor.tsx (+42 -2)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+90 -6)

📄 Description

Linked issue

Closes #1008

Why this change

  • The Agents panel already had Enabled Agents and Disabled Agents sections, but agent rows had no real enable/disable action. Editing an agent also always saved it as enabled, so a disabled agent could not be preserved.

What changed

  • Added Enable agent / Disable agent actions to built-in, status-view, and custom agent rows.
  • Added an Agent Status control to the agent editor and saved that state instead of always sending enabled: true.
  • Added committed UI evidence for the before/after proof.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Codex ran a CDP browser repro before the fix: opened Agents, switched to By Status, and confirmed Enabled/Disabled containers existed with no Enable/Disable agent controls.
  • Codex ran the same browser flow after the fix: disabled Prose Guardian, confirmed it moved to Disabled Agents, and confirmed the row exposed Enable agent.
  • Codex tested the opposite flow: re-enabled Prose Guardian and confirmed it returned to Enabled Agents with Disable agent available.
  • Codex opened the disabled agent editor, confirmed Agent Status showed Disabled, saved, and confirmed the persisted agent config stayed disabled.
  • Codex ran pnpm check successfully after the final diff.
  • Bunny review pass completed before opening this PR with no blocking findings.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

Before: no agent enable/disable controls in the status view.

Before

After: disabling Prose Guardian moves it into Disabled Agents and exposes Enable agent.

After

Editor preserve check: disabled agents open with Agent Status set to Disabled and Save preserves that state.

Editor preserve


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/1017 **Author:** [@cha1latte](https://github.com/cha1latte) **Created:** 5/19/2026 **Status:** ✅ Merged **Merged:** 5/19/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `staging` ← **Head:** `fix/issue-1008-disable-agents` --- ### 📝 Commits (1) - [`8e3eed5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8e3eed556df76010c312941407f0ce5df5c328a1) Fix agent enable controls ### 📊 Changes **5 files changed** (+132 additions, -8 deletions) <details> <summary>View changed files</summary> ➕ `docs/pr-evidence/issue-1008/after.png` (+0 -0) ➕ `docs/pr-evidence/issue-1008/before.png` (+0 -0) ➕ `docs/pr-evidence/issue-1008/editor-preserve.png` (+0 -0) 📝 `packages/client/src/components/agents/AgentEditor.tsx` (+42 -2) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+90 -6) </details> ### 📄 Description <!-- Target branch: `staging`. The default base in this UI is `main` (release branch). --> <!-- Change the base to `staging` before submitting unless this is a maintainer-approved mainline change. --> <!-- See CONTRIBUTING.md § Branches. --> ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #1008 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - The Agents panel already had Enabled Agents and Disabled Agents sections, but agent rows had no real enable/disable action. Editing an agent also always saved it as enabled, so a disabled agent could not be preserved. ## What changed <!-- List the key changes in this PR --> - Added Enable agent / Disable agent actions to built-in, status-view, and custom agent rows. - Added an Agent Status control to the agent editor and saved that state instead of always sending `enabled: true`. - Added committed UI evidence for the before/after proof. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Codex ran a CDP browser repro before the fix: opened Agents, switched to By Status, and confirmed Enabled/Disabled containers existed with no Enable/Disable agent controls. - Codex ran the same browser flow after the fix: disabled Prose Guardian, confirmed it moved to Disabled Agents, and confirmed the row exposed Enable agent. - Codex tested the opposite flow: re-enabled Prose Guardian and confirmed it returned to Enabled Agents with Disable agent available. - Codex opened the disabled agent editor, confirmed Agent Status showed Disabled, saved, and confirmed the persisted agent config stayed disabled. - Codex ran `pnpm check` successfully after the final diff. - Bunny review pass completed before opening this PR with no blocking findings. ## Docs and release impact - [x] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> Before: no agent enable/disable controls in the status view. ![Before](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8e3eed556df76010c312941407f0ce5df5c328a1/docs/pr-evidence/issue-1008/before.png) After: disabling Prose Guardian moves it into Disabled Agents and exposes Enable agent. ![After](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8e3eed556df76010c312941407f0ce5df5c328a1/docs/pr-evidence/issue-1008/after.png) Editor preserve check: disabled agents open with Agent Status set to Disabled and Save preserves that state. ![Editor preserve](https://raw.githubusercontent.com/cha1latte/Marinara-Engine/8e3eed556df76010c312941407f0ce5df5c328a1/docs/pr-evidence/issue-1008/editor-preserve.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:11:27 +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#4886
No description provided.