Skip to content

The open-source app everyone uses to manage agents at work

fix(ui): use null instead of undefined when clearing extra args

plind-dm87d46bba578e
diff --git a/ui/src/components/AgentConfigForm.tsx b/ui/src/components/AgentConfigForm.tsx
index c3c9bdfa6f..8c4f2ff8ce 100644
--- a/ui/src/components/AgentConfigForm.tsx
+++ b/ui/src/components/AgentConfigForm.tsx
@@ -831,7 +831,7 @@ export function AgentConfigForm(props: AgentConfigFormProps) {
onCommit={(v) =>
isCreate
? set!({ extraArgs: v })
- : mark("adapterConfig", "extraArgs", v ? parseCommaArgs(v) : undefined)
+ : mark("adapterConfig", "extraArgs", v?.trim() ? parseCommaArgs(v) : null)
}
immediate
className={inputClass}