Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix(frontend): Prevent making too many calls to `/git/changes` on conversation load (#8579)

sp.wackb244138ec521
diff --git a/frontend/src/context/ws-client-provider.tsx b/frontend/src/context/ws-client-provider.tsx
index 2bd3a01211..e11a267981 100644
--- a/frontend/src/context/ws-client-provider.tsx
+++ b/frontend/src/context/ws-client-provider.tsx
@@ -156,7 +156,7 @@ export function WsClientProvider({
isFileWriteAction(event) ||
isCommandAction(event)
) {
- queryClient.invalidateQueries({
+ queryClient.removeQueries({
queryKey: ["file_changes", conversationId],
});