From 9bc962bc652b68226a520dc820e41a1b8531cac9 Mon Sep 17 00:00:00 2001 From: RAJVEER42 Date: Mon, 8 Jun 2026 20:52:20 +0530 Subject: [PATCH 1/2] fix(ui): prevent model name edit pencil from submitting the form The "Edit Auto-Generated Name" pencil button had no explicit type, so as a child of the form it defaulted to type="submit" and fired the updateModelConfig action on click. Set type="button" so it only toggles name editing, matching the sibling fetch-models button. Fixes #1947 Signed-off-by: RAJVEER42 --- ui/src/components/models/new/BasicInfoSection.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/src/components/models/new/BasicInfoSection.tsx b/ui/src/components/models/new/BasicInfoSection.tsx index fbd6327b5f..1cd00c4e20 100644 --- a/ui/src/components/models/new/BasicInfoSection.tsx +++ b/ui/src/components/models/new/BasicInfoSection.tsx @@ -88,6 +88,7 @@ export const BasicInfoSection: React.FC = ({ )} {errors.name &&

{errors.name}

} + {isEditMode && ( +

+ The name can't be changed after a model is created. +

+ )}