Commit 0b17c05
fix: sync health.provider and auto-add model to enabledModels after settings save
When saving settings from the main settings panel:
1. health.provider wasn't updated, so the composer chip still showed
"未配置" (providerUnconfigured) and the send button was disabled.
2. enabledModels wasn't included in the save payload, so the model
quick-select drawer opened empty even though a model was configured.
Now handleSaveSettings() directly sets health.provider after save and
auto-merges the current model into enabledModels.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 27fce9f commit 0b17c05
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
773 | 773 | | |
774 | 774 | | |
775 | 775 | | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
776 | 782 | | |
777 | 783 | | |
778 | 784 | | |
779 | 785 | | |
780 | 786 | | |
| 787 | + | |
781 | 788 | | |
782 | 789 | | |
783 | 790 | | |
| |||
791 | 798 | | |
792 | 799 | | |
793 | 800 | | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
794 | 804 | | |
795 | 805 | | |
796 | 806 | | |
| |||
0 commit comments