Commit c19730e
committed
fix: enable Requesty refresh models with credentials
The existing flushRouterModels pattern doesn't work for Requesty because
it doesn't pass API credentials. This caused the 'Refresh Models' button
to return stale cached data instead of fresh models.
This fix:
- Adds a 'refresh: true' flag to requestRouterModels handler
- When refresh=true with a provider filter, flushes cache WITH credentials
- Updates Requesty.tsx to use this new pattern instead of flushRouterModels
The approach reuses existing infrastructure while ensuring the credential-
aware cache flush works for providers like Requesty that require apiKey
and baseUrl for API calls.
Supersedes #102641 parent 2bb3755 commit c19730e
File tree
2 files changed
+10
-3
lines changed- src/core/webview
- webview-ui/src/components/settings/providers
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
790 | 790 | | |
791 | 791 | | |
792 | 792 | | |
| 793 | + | |
| 794 | + | |
| 795 | + | |
793 | 796 | | |
794 | 797 | | |
795 | 798 | | |
| |||
887 | 890 | | |
888 | 891 | | |
889 | 892 | | |
| 893 | + | |
| 894 | + | |
| 895 | + | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
890 | 899 | | |
891 | 900 | | |
892 | 901 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | | - | |
| 129 | + | |
132 | 130 | | |
133 | 131 | | |
134 | 132 | | |
| |||
0 commit comments