mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 21:04:23 +01:00
Fix session caching - enable refetch on focus and reconnect
This commit is contained in:
1 parent
08e3414677
commit
ec1d96a77d
3 files changed
+11
-6
No files matched your search
@@ -333,8 +333,6 @@ export const useSSE = (opcodeUrl: string | null | undefined, directory?: string)
|
||||
setIsConnected(true)
|
||||
setError(null)
|
||||
resetReconnectDelay()
|
||||
queryClient.invalidateQueries({ queryKey: ['opencode', 'sessions', opcodeUrl, directory] })
|
||||
queryClient.invalidateQueries({ queryKey: ['opencode', 'messages', opcodeUrl] })
|
||||
}
|
||||
|
||||
eventSource.onerror = () => {
|
||||
|
||||
Reference in new issue
Block a user