From c20ef0e4b69abb947809da77e21149421feb9ce1 Mon Sep 17 00:00:00 2001 From: yiling Date: Mon, 22 Jun 2026 09:27:37 +0800 Subject: [PATCH] fix(settings): prioritize actual agent type when editing agent configurations --- packages/webui/components/settings/AgentFormDialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webui/components/settings/AgentFormDialog.tsx b/packages/webui/components/settings/AgentFormDialog.tsx index f4c4fda0..1ff196b1 100644 --- a/packages/webui/components/settings/AgentFormDialog.tsx +++ b/packages/webui/components/settings/AgentFormDialog.tsx @@ -116,7 +116,7 @@ export function AgentFormDialog({ const form = useForm({ defaultValues: { name: initialValues?.name || '', - type: type || initialValues?.type || 'chat', + type: initialValues?.type || type || 'chat', avatar: initialValues?.avatar || AVAILABLE_AVATARS[0], providerId: initialValues?.providerId || '', modelId: initialValues?.modelId || '',