From 87d46bba578efd25e59d64ec680a1886446e6c49 Mon Sep 17 00:00:00 2001 From: plind-dm <59729252+plind-dm@users.noreply.github.com> Date: Fri, 3 Apr 2026 23:15:10 +0900 Subject: [PATCH] fix(ui): use null instead of undefined when clearing extra args Clearing the extra args field set the overlay value to undefined, which gets dropped during object spread when building the PATCH payload. The existing extraArgs from the agent config survived the merge, making it impossible to clear the field. Use null so the value explicitly overwrites the existing config entry. Closes #2350 --- ui/src/components/AgentConfigForm.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/AgentConfigForm.tsx b/ui/src/components/AgentConfigForm.tsx index c3c9bdfa..8c4f2ff8 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}