fix(app): open sole provider model picker directly

Running chats expose one provider, so an intermediate provider screen and back action are redundant. Restore the direct model-list entry behavior while preserving the multi-provider picker.
This commit is contained in:
Mohamed Boudra
2026-08-13 20:34:21 +02:00
parent 6a1cc98fdf
commit a732cc5756
4 changed files with 16 additions and 30 deletions
@@ -292,9 +292,7 @@ export function useModelBrowser({
setSearchQuery(value);
}, []);
// A pinned profiles section makes the root worth returning to, so the back
// affordance stays even when the drill-down was the only provider.
const singleProviderView = providers.length === 1 && !hasProfiles;
const singleProviderView = providers.length === 1;
const header = useMemo<SheetHeader>(() => {
if (view.kind === "all") {
return {