Commit d6efc3b
committed
fix(ui): stop discarding recently used models over a missing API key
The model picker pruned the stored list of recently used models down to
whatever providers were resolvable at that moment, and saved the result.
Since a provider configured through an environment variable is only
visible when Crush is launched from a shell that exported it, opening the
picker could permanently drop history for providers that were merely
temporarily absent. Unresolvable entries are now skipped when drawing the
list and left in the config.
💘 Generated with Crush1 parent 26f062e commit d6efc3b
1 file changed
Lines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
448 | 448 | | |
449 | 449 | | |
450 | 450 | | |
451 | | - | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
452 | 457 | | |
453 | 458 | | |
454 | 459 | | |
| |||
460 | 465 | | |
461 | 466 | | |
462 | 467 | | |
463 | | - | |
464 | 468 | | |
465 | 469 | | |
466 | 470 | | |
467 | 471 | | |
468 | 472 | | |
469 | 473 | | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | 474 | | |
478 | 475 | | |
479 | 476 | | |
| |||
0 commit comments