fix(desktop): remount provider config panel when the provider changes

The panel instance survived a provider switch, so an in-flight fetch for the
old provider could resolve last and seed the new provider's panel with the
wrong schema — Save would then PUT those keys to the new provider's endpoint.
Key the mount on the provider name.
This commit is contained in:
Erosika 2026-07-02 18:42:31 -04:00
parent 4d4db4281e
commit 0e09cc5cd4

View file

@ -411,7 +411,7 @@ export function ConfigSettings({
value={getNested(config, key)}
/>
{key === 'memory.provider' && typeof getNested(config, key) === 'string' && getNested(config, key) ? (
<ProviderConfigPanel provider={String(getNested(config, key))} />
<ProviderConfigPanel key={String(getNested(config, key))} provider={String(getNested(config, key))} />
) : null}
</div>
))}