Skip to content

Commit 41b3ef6

Browse files
committed
fix: use composerSettings instead of settings in onProviderModelSelect
The model picker displays models based on composerSettings (which incorporates the active thread's environment server config), but the onProviderModelSelect handler was resolving model selections against the primary environment's settings. This mismatch could cause model selections to silently fail when the active thread's environment has custom models or instance config that differs from the primary environment. Use composerSettings consistently so display and selection logic agree.
1 parent 7cfef5f commit 41b3ef6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/web/src/components/ChatView.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4449,7 +4449,7 @@ function ChatViewContent(props: ChatViewProps) {
44494449
}
44504450
const resolvedModel = resolveAppModelSelectionForInstance(
44514451
instanceId,
4452-
settings,
4452+
composerSettings,
44534453
providerStatuses,
44544454
model,
44554455
);
@@ -4491,7 +4491,7 @@ function ChatViewContent(props: ChatViewProps) {
44914491
setComposerDraftModelSelection,
44924492
setStickyComposerModelSelection,
44934493
providerStatuses,
4494-
settings,
4494+
composerSettings,
44954495
],
44964496
);
44974497
const onEnvModeChange = useCallback(

0 commit comments

Comments
 (0)