From b89eff0332fb577b1f8407d79804163e4c7b09c2 Mon Sep 17 00:00:00 2001 From: ethan Date: Mon, 1 Dec 2025 11:50:39 +1100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20fix:=20dispatch=20providers-conf?= =?UTF-8?q?ig-changed=20on=20coupon=20save?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ProvidersSection was not notifying useModelLRU when provider configs (like mux-gateway coupon) were saved. This caused models to only appear after navigating away and back to ChatInput. _Generated with mux_ --- .../components/Settings/sections/ProvidersSection.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/browser/components/Settings/sections/ProvidersSection.tsx b/src/browser/components/Settings/sections/ProvidersSection.tsx index ba9e863c1..47ac21593 100644 --- a/src/browser/components/Settings/sections/ProvidersSection.tsx +++ b/src/browser/components/Settings/sections/ProvidersSection.tsx @@ -116,6 +116,9 @@ export function ProvidersSection() { setConfig(cfg); setEditingField(null); setEditValue(""); + + // Notify other components about the change + window.dispatchEvent(new Event("providers-config-changed")); } finally { setSaving(false); } @@ -127,6 +130,9 @@ export function ProvidersSection() { await window.api.providers.setProviderConfig(provider, [field], ""); const cfg = await window.api.providers.getConfig(); setConfig(cfg); + + // Notify other components about the change + window.dispatchEvent(new Event("providers-config-changed")); } finally { setSaving(false); }