Skip to content

Commit a07ac9a

Browse files
committed
fix: remove incorrect isUserAction=false from apiModelId sync
The useEffect that syncs apiModelId with selectedModelId was incorrectly passing isUserAction=false, which prevented the save button from enabling when users selected a different model. Since this effect responds to all selectedModelId changes (including user selections), it should use the default isUserAction=true behavior.
1 parent 68de733 commit a07ac9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ const ApiOptions = ({
190190
// Update `apiModelId` whenever `selectedModelId` changes.
191191
useEffect(() => {
192192
if (selectedModelId && apiConfiguration.apiModelId !== selectedModelId) {
193-
setApiConfigurationField("apiModelId", selectedModelId, false)
193+
setApiConfigurationField("apiModelId", selectedModelId)
194194
}
195195
}, [selectedModelId, setApiConfigurationField, apiConfiguration.apiModelId])
196196

0 commit comments

Comments
 (0)