Skip to content

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

🛜 feat: Enable Network Requests in Offline Mode (#11107)

Danny Avila43c2c20dd75a
diff --git a/client/src/App.jsx b/client/src/App.jsx
index 23651d750c..fe280f7129 100644
--- a/client/src/App.jsx
+++ b/client/src/App.jsx
@@ -18,6 +18,16 @@ const App = () => {
const { setError } = useApiErrorBoundary();
const queryClient = new QueryClient({
+ defaultOptions: {
+ queries: {
+ // Always attempt network requests, even when navigator.onLine is false
+ // This is needed because localhost is reachable without WiFi
+ networkMode: 'always',
+ },
+ mutations: {
+ networkMode: 'always',
+ },
+ },
queryCache: new QueryCache({
onError: (error) => {
if (error?.response?.status === 401) {