From 94a35194df502ac29260c472458c90e12d6cbb6c Mon Sep 17 00:00:00 2001 From: Wesley Tanner <137104411+fireball71@users.noreply.github.com> Date: Thu, 29 Oct 2026 16:51:22 -0500 Subject: [PATCH] refresh provider caches on config and stream refreshes --- frontend/src/contexts/EventContext.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/contexts/EventContext.tsx b/frontend/src/contexts/EventContext.tsx index 9e38d4b0..cbdd5a67 100644 --- a/frontend/src/contexts/EventContext.tsx +++ b/frontend/src/contexts/EventContext.tsx @@ -1193,6 +1193,7 @@ export function EventProvider({ children }: { children: React.ReactNode }) { break case 'config.updated': invalidateQueryKeysDebounced(queryClient, [['opencode', 'config'], ['opencode-config']]) + invalidateProviderCachesDebounced(queryClient) break case 'ssh.host-key-request': setSSHHostKeyRequest(event.properties) @@ -1233,6 +1234,7 @@ export function EventProvider({ children }: { children: React.ReactNode }) { void syncRunningShells(collectTrackedDirectories()) invalidateChildSessionCaches(queryClient) invalidateQueryKeysDebounced(queryClient, LOCATION_CATALOG_QUERY_KEYS) + invalidateProviderCachesDebounced(queryClient) startStatusPoll() } else { streamConnectedRef.current = false @@ -1259,6 +1261,7 @@ export function EventProvider({ children }: { children: React.ReactNode }) { void syncRunningShells(directories) invalidateChildSessionCaches(queryClient) invalidateQueryKeysDebounced(queryClient, LOCATION_CATALOG_QUERY_KEYS) + invalidateProviderCachesDebounced(queryClient) } const initialDirectories = [...new Set((reposRef.current ?? []).map(r => r.fullPath))]