fix: Model Selector choice sync (#21628)

This commit is contained in:
Aleksander Grygier
2026-04-09 09:46:27 +02:00
committed by GitHub
parent 3ee9da0e4f
commit 9949ad08f6
4 changed files with 61 additions and 52 deletions
@@ -77,6 +77,11 @@
!modelsStore.isModelLoaded(modelsStore.selectedModelName)
) {
modelsStore.clearSelection();
const first = modelOptions().find((m) => modelsStore.loadedModelIds.includes(m.model));
if (first) {
await modelsStore.selectModelById(first.id);
}
}
// Handle URL params only if we have ?q= or ?model= or ?new_chat=true