From 3de7d63ea9223a03bf62ae23b517b106e92abddb Mon Sep 17 00:00:00 2001
From: dotta
Date: Fri, 20 Mar 2026 06:27:52 -0500
Subject: [PATCH] fix: use standard toggle component for permission controls
Replace the button ("Enabled"/"Disabled") for "Can create new agents" and
the custom oversized switch for "Can assign tasks" with the same toggle
style (h-5 w-9, bg-green-600/bg-muted) used throughout Run Policy.
Co-Authored-By: Paperclip
---
ui/src/pages/AgentDetail.tsx | 31 +++++++++++++++++++------------
1 file changed, 19 insertions(+), 12 deletions(-)
diff --git a/ui/src/pages/AgentDetail.tsx b/ui/src/pages/AgentDetail.tsx
index 3e238e5e..37ac5cf5 100644
--- a/ui/src/pages/AgentDetail.tsx
+++ b/ui/src/pages/AgentDetail.tsx
@@ -1434,10 +1434,14 @@ function ConfigurationTab({
Lets this agent create or hire agents and implicitly assign tasks.