π OpenHands: AI-Driven Development
fix: prevent LLM settings reset when page loses focus during initial setup (#8928)
llamantinoabec074a66bd
diff --git a/frontend/src/hooks/query/use-settings.ts b/frontend/src/hooks/query/use-settings.tsindex 7cff880696..e47877b077 100644--- a/frontend/src/hooks/query/use-settings.ts+++ b/frontend/src/hooks/query/use-settings.ts@@ -45,6 +45,7 @@ export const useSettings = () => {// would want to show the modal immediately if the// settings are not foundretry: (_, error) => error.status !== 404,+ refetchOnWindowFocus: false,staleTime: 1000 * 60 * 5, // 5 minutesgcTime: 1000 * 60 * 15, // 15 minutesenabled: !isOnTosPage && !!userIsAuthenticated,