Only set hasmodified to true during model select if different from original model

This commit is contained in:
sabaimran
2025-01-19 18:19:48 -08:00
parent e982398c2c
commit 59ee6e961a

View File

@@ -183,8 +183,10 @@ function ChatSidebarInternal({ ...props }: ChatSideBarProps) {
function handleModelSelect(model: string) { function handleModelSelect(model: string) {
setSelectedModel(model); setSelectedModel(model);
if (model !== agentData?.chat_model) {
setHasModified(true); setHasModified(true);
} }
}
return ( return (
<Sidebar <Sidebar