[PR #1009] [CLOSED] fix: add global agent enable/disable toggle and gate chat settings on active agents #4879

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1009
Author: @kolacheee
Created: 5/19/2026
Status: ❌ Closed

Base: staging ← Head: claude/crazy-lehmann-391d39


📝 Commits (3)

  • fe15511 ci: add staging issue status labels
  • 7f2b9a9 ci: cache staging issue status lookup
  • 282206f fix: add global agent enable/disable toggle and gate chat settings on active agents

📊 Changes

3 files changed (+66 additions, -20 deletions)

View changed files

📝 .github/workflows/issue-status-from-prs.yml (+6 -9)
📝 packages/client/src/components/chat/ChatSettingsDrawer.tsx (+9 -3)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+51 -8)

📄 Description

Linked issue

Closes #1008

Why this change

  • Users had no way to fully disable agents. The useToggleAgent hook and PUT /agents/toggle/:agentType server endpoint existed but were never wired to any UI button, so agents could not be moved into the "Disabled Agents" section.
  • The only "disable" toggle in the agent editor controlled prompt injection (Add as Prompt Section), not whether the agent runs.
  • Lorebook Keeper, Expression Engine Sprites, and Love Toys Control config sections always appeared in Chat Settings even when their backing agents were not active in the chat, which was confusing.

What changed

  • Wired useToggleAgent to a toggle button on every agent card in the Agents sidebar panel (both "By Category" and "By Status" views).
  • In "By Category" view, disabled agents move out of their category into a dedicated "Disabled Agents" collapsible section (collapsed by default).
  • Disabled agent cards render at reduced opacity with a grey toggle icon; enabled agents show a green toggle.
  • Gated Lorebook Keeper, Expression Engine Sprites, and Love Toys Control chat settings sections on per-chat active state — they only appear after the user adds the agent to the chat.
  • Filtered globally-disabled agents out of the per-chat agent picker so they cannot be added to a chat while disabled.
  • Manual Trackers toggle remains always visible since it is a behavior flag, not agent-backed.

Validation

  • pnpm check passes locally
  • 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

  • pnpm check passes (TypeScript, ESLint, full production build).
  • Manually verified agent toggle buttons appear and work in both "By Category" and "By Status" views.
  • Verified disabled agents move to the "Disabled Agents" section and re-enabling returns them to their category.
  • Verified Lorebook Keeper, Expression Engine Sprites, and Love Toys Control sections only appear in Chat Settings when their agent is active in the chat.
  • Verified globally-disabled agents do not appear in the per-chat agent picker.
  • Verified Manual Trackers toggle remains visible regardless of agent state.

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)

🔄 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/1009 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 5/19/2026 **Status:** ❌ Closed **Base:** `staging` ← **Head:** `claude/crazy-lehmann-391d39` --- ### 📝 Commits (3) - [`fe15511`](https://github.com/Pasta-Devs/Marinara-Engine/commit/fe15511541404e6ed20aeab6a32ce86e50006c1b) ci: add staging issue status labels - [`7f2b9a9`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7f2b9a98c27ccb68c25dbc7143f6bca25702cf4d) ci: cache staging issue status lookup - [`282206f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/282206ff7965785ad993acd8888a88ac87c1af90) fix: add global agent enable/disable toggle and gate chat settings on active agents ### 📊 Changes **3 files changed** (+66 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/issue-status-from-prs.yml` (+6 -9) 📝 `packages/client/src/components/chat/ChatSettingsDrawer.tsx` (+9 -3) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+51 -8) </details> ### 📄 Description ## Linked issue Closes #1008 ## Why this change - Users had no way to fully disable agents. The `useToggleAgent` hook and `PUT /agents/toggle/:agentType` server endpoint existed but were never wired to any UI button, so agents could not be moved into the "Disabled Agents" section. - The only "disable" toggle in the agent editor controlled prompt injection (`Add as Prompt Section`), not whether the agent runs. - Lorebook Keeper, Expression Engine Sprites, and Love Toys Control config sections always appeared in Chat Settings even when their backing agents were not active in the chat, which was confusing. ## What changed - Wired `useToggleAgent` to a toggle button on every agent card in the Agents sidebar panel (both "By Category" and "By Status" views). - In "By Category" view, disabled agents move out of their category into a dedicated "Disabled Agents" collapsible section (collapsed by default). - Disabled agent cards render at reduced opacity with a grey toggle icon; enabled agents show a green toggle. - Gated Lorebook Keeper, Expression Engine Sprites, and Love Toys Control chat settings sections on per-chat active state — they only appear after the user adds the agent to the chat. - Filtered globally-disabled agents out of the per-chat agent picker so they cannot be added to a chat while disabled. - Manual Trackers toggle remains always visible since it is a behavior flag, not agent-backed. ## Validation - [x] `pnpm check` passes locally - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm check` passes (TypeScript, ESLint, full production build). - Manually verified agent toggle buttons appear and work in both "By Category" and "By Status" views. - Verified disabled agents move to the "Disabled Agents" section and re-enabling returns them to their category. - Verified Lorebook Keeper, Expression Engine Sprites, and Love Toys Control sections only appear in Chat Settings when their agent is active in the chat. - Verified globally-disabled agents do not appear in the per-chat agent picker. - Verified Manual Trackers toggle remains visible regardless of agent state. ## 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) --- <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: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#4879
No description provided.