fix(providers): prevent stale models during refresh

Provider settings sheets can remain mounted while hidden, so the old display cache could survive into a different provider. Scope the cache to the active provider identity and remount the sheet when that identity changes.
This commit is contained in:
Mohamed Boudra
2026-06-25 18:41:57 +07:00
parent f13c496ebc
commit 2692211ef9
4 changed files with 126 additions and 14 deletions
@@ -18,6 +18,7 @@ export function ProviderSettingsHost() {
return (
<ProviderDiagnosticSheet
key={`${serverId}:${provider}`}
provider={provider}
serverId={serverId}
visible={visible}