Repository navigation
Commit 03e66cb
committed
fix(kimi-code): keep /logout usable for stale managed config and unrelated providers
- Surface the Kimi Code OAuth entry in the picker whenever
config.providers still references it, not only when a live token is
present. auth.logout cleans the config either way, so stale entries
can no longer become unreachable through /logout.
- When the picked provider is not the one backing the current model,
just refresh the provider/model listing and leave the session and
model selection alone. Full teardown stays for the case where the
active provider was the one being removed.1 parent a922ea7 commit 03e66cb
2 files changed
Lines changed: 107 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5375 | 5375 | | |
5376 | 5376 | | |
5377 | 5377 | | |
5378 | | - | |
5379 | | - | |
5380 | | - | |
5381 | | - | |
5382 | | - | |
| 5378 | + | |
| 5379 | + | |
| 5380 | + | |
| 5381 | + | |
5383 | 5382 | | |
5384 | 5383 | | |
5385 | | - | |
| 5384 | + | |
5386 | 5385 | | |
5387 | 5386 | | |
5388 | 5387 | | |
| 5388 | + | |
| 5389 | + | |
| 5390 | + | |
| 5391 | + | |
| 5392 | + | |
| 5393 | + | |
5389 | 5394 | | |
5390 | 5395 | | |
5391 | 5396 | | |
5392 | 5397 | | |
5393 | 5398 | | |
5394 | | - | |
| 5399 | + | |
5395 | 5400 | | |
5396 | 5401 | | |
5397 | 5402 | | |
| |||
5423 | 5428 | | |
5424 | 5429 | | |
5425 | 5430 | | |
5426 | | - | |
5427 | | - | |
| 5431 | + | |
| 5432 | + | |
| 5433 | + | |
| 5434 | + | |
| 5435 | + | |
| 5436 | + | |
| 5437 | + | |
| 5438 | + | |
| 5439 | + | |
| 5440 | + | |
| 5441 | + | |
| 5442 | + | |
| 5443 | + | |
| 5444 | + | |
| 5445 | + | |
| 5446 | + | |
5428 | 5447 | | |
5429 | 5448 | | |
5430 | 5449 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
568 | 568 | | |
569 | 569 | | |
570 | 570 | | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
571 | 577 | | |
572 | 578 | | |
573 | 579 | | |
| |||
597 | 603 | | |
598 | 604 | | |
599 | 605 | | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
600 | 679 | | |
601 | 680 | | |
602 | 681 | | |
| |||
0 commit comments