fix(ui): cycle through all thinking variants (#2848)

This commit is contained in:
Nimo Beeren
2026-08-26 18:46:22 +03:00
committed by GitHub
parent edec60faff
commit 9717fc5a54
2 changed files with 19 additions and 3 deletions
+3 -3
View File
@@ -1904,12 +1904,12 @@ export const useConfigStore = create<ConfigStore>()(
}
const index = variantKeys.indexOf(current);
if (index === -1 || index === variantKeys.length - 1) {
get().setCurrentVariant(undefined);
if (index === -1) {
get().setCurrentVariant(variantKeys[0]);
return;
}
get().setCurrentVariant(variantKeys[index + 1]);
get().setCurrentVariant(variantKeys[(index + 1) % variantKeys.length]);
},
setSelectedProvider: (providerId: string) => {