From 3b0b97bc8094ee49a19c27f06fb82fde25279567 Mon Sep 17 00:00:00 2001 From: Arjun Komath Date: Sat, 28 Mar 2026 15:14:22 +1100 Subject: [PATCH] Add loading screen with enter setup option --- src/public/loading.html | 88 ++++++++++++++++++++++++++++++++++++++--- src/server.js | 4 ++ 2 files changed, 87 insertions(+), 5 deletions(-) diff --git a/src/public/loading.html b/src/public/loading.html index f35da5a..27c886d 100644 --- a/src/public/loading.html +++ b/src/public/loading.html @@ -3,12 +3,33 @@ - - 🦞 OpenClaw — Starting Up + OpenClaw +
@@ -18,9 +39,66 @@ OpenClaw
-
-

OpenClaw is starting up

-

This page will auto-refresh when the gateway is ready.

+ +
+
+

OpenClaw is starting up

+

Please wait while the gateway initializes.

+
+ + + + diff --git a/src/server.js b/src/server.js index 35a362d..b638895 100644 --- a/src/server.js +++ b/src/server.js @@ -1359,6 +1359,10 @@ proxy.on("proxyReqWs", (proxyReq, req, socket, options, head) => { }); app.use(async (req, res) => { + if (req.path === "/") { + return res.sendFile(path.join(process.cwd(), "src", "public", "loading.html")); + } + if (!isConfigured() && !req.path.startsWith("/setup")) { return res.redirect("/setup"); }