From 59ee6e961aeefed3f397bf148b670226f26b1f0f Mon Sep 17 00:00:00 2001 From: sabaimran Date: Sun, 19 Jan 2025 18:19:48 -0800 Subject: [PATCH] Only set hasmodified to true during model select if different from original model --- src/interface/web/app/components/chatSidebar/chatSidebar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/interface/web/app/components/chatSidebar/chatSidebar.tsx b/src/interface/web/app/components/chatSidebar/chatSidebar.tsx index 4a399c42..c394d8c2 100644 --- a/src/interface/web/app/components/chatSidebar/chatSidebar.tsx +++ b/src/interface/web/app/components/chatSidebar/chatSidebar.tsx @@ -183,7 +183,9 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) { function handleModelSelect(model: string) { setSelectedModel(model); - setHasModified(true); + if (model !== agentData?.chat_model) { + setHasModified(true); + } } return (