From 52224bc4aa4527d12cb3d19dd25f7b8f5536e8c3 Mon Sep 17 00:00:00 2001 From: Forgotten Date: Fri, 20 Feb 2026 14:16:21 -0600 Subject: [PATCH] feat: extract Permissions & Configuration pane, flatten Run Policy - Move Advanced Adapter Settings into standalone Permissions & Configuration pane - Convert create-mode Run Policy from collapsible to regular section - Remove unused adapterAdvancedOpen and heartbeatOpen state Co-Authored-By: Claude Opus 4.6 --- ui/src/components/AgentConfigForm.tsx | 42 ++++++++++++--------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/ui/src/components/AgentConfigForm.tsx b/ui/src/components/AgentConfigForm.tsx index 683ce033..f281a570 100644 --- a/ui/src/components/AgentConfigForm.tsx +++ b/ui/src/components/AgentConfigForm.tsx @@ -270,9 +270,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) { }; // Section toggle state — advanced always starts collapsed - const [adapterAdvancedOpen, setAdapterAdvancedOpen] = useState(false); const [runPolicyAdvancedOpen, setRunPolicyAdvancedOpen] = useState(false); - const [heartbeatOpen, setHeartbeatOpen] = useState(!isCreate); const [cwdPickerNotice, setCwdPickerNotice] = useState(null); // Popover states @@ -529,14 +527,15 @@ export function AgentConfigForm(props: AgentConfigFormProps) { - {/* Advanced adapter section — collapsible in both modes */} - {isLocal && ( - setAdapterAdvancedOpen(!adapterAdvancedOpen)} - > -
+
+ + {/* ---- Permissions & Configuration ---- */} + {isLocal && ( +
+
+ Permissions & Configuration +
+
)} -
- - )} -
+ + + )} {/* ---- Run Policy ---- */} {isCreate ? ( - } - open={heartbeatOpen} - onToggle={() => setHeartbeatOpen(!heartbeatOpen)} - bordered - > -
+
+
+ + Run Policy +
+
- +
) : (