openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
523 lines (504 loc) • 42.2 kB
HTML
<html data-openclaw-control-ui-build-id="2026.11.8-release-2d4ab292114d-2026-11-24T01-23-41.714Z-2e65f9a2d22f6f4da8a44e0345a407af48af5cd66e87e6b59583d264dc308946" lang="en">
<head><script data-cfasync="false" id="openclaw-control-ui-build-info">globalThis.OPENCLAW_CONTROL_UI_BUILD_INFO={"version":"2026.11.8","commit":"2d4ab292114df2ab9670c91c9b846f701c565bd7","builtAt":"2026-11-24T01:23:41.714Z","release":true,"commitAt":"2026-11-24T01:12:41.000Z","branch":"release-ci/de69e842e584-17511839309896164221795482887689","dirty":true,"buildId":"2026.11.8-release-2d4ab292114d-2026-11-24T01-23-41.714Z"};</script>
<meta charset="UTF-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
/>
<title>OpenClaw Control</title>
<meta name="color-scheme" content="dark light" />
<!-- These mirror the claw theme's --bg tokens for first paint; runtime theme application keeps them synchronized. -->
<meta
id="openclaw-theme-color-light"
name="theme-color"
media="(prefers-color-scheme: light)"
content="#f4f4f4"
/>
<meta
id="openclaw-theme-color-dark"
name="theme-color"
media="(prefers-color-scheme: dark)"
content="#111318"
/>
<link id="openclaw-favicon-svg" rel="icon" type="image/svg+xml" href="./favicon.svg" />
<link
id="openclaw-favicon-png"
rel="icon"
type="image/png"
sizes="32x32"
href="./favicon-32.png"
/>
<link
id="openclaw-apple-touch-icon"
rel="apple-touch-icon"
sizes="180x180"
href="./apple-touch-icon.png"
/>
<link
id="openclaw-manifest"
rel="manifest"
href="./manifest.webmanifest"
crossorigin="use-credentials"
/>
<script data-cfasync="false">
// Configure Zod before module evaluation so its JIT probe cannot violate strict CSP.
globalThis.__zod_globalConfig ??= {};
globalThis.__zod_globalConfig.jitless = true;
(function () {
// The critical frame can paint while the entry stylesheet downloads.
// Activate it before the app mounts, including when module loading stalls.
function activateBootStyles(event) {
var link = event.target;
if (link.id !== "openclaw-boot-styles") return;
link.media = "all";
document.removeEventListener("load", activateBootStyles, true);
document.removeEventListener("error", activateBootStyles, true);
}
document.addEventListener("load", activateBootStyles, true);
document.addEventListener("error", activateBootStyles, true);
var bootBase =
document.documentElement.getAttribute("data-openclaw-control-ui-base-path") || "";
var bootPath = location.pathname.slice(bootBase.length) || "/";
// Keep this data-free route selection in sync with ConnectingSplash.
var bootRoute = /^\/new\/?$/.test(bootPath)
? "new"
: /^\/(?:settings\/)?sessions\/?$/.test(bootPath)
? "sessions"
: /^\/(?:automations|cron)\/?$/.test(bootPath)
? "cron"
: /^\/settings(?:\/|$)/.test(bootPath)
? "settings"
: /^\/chat(?:\/|$)/.test(bootPath) &&
!new URLSearchParams(location.search).has("catalog")
? "chat"
: "other";
document.documentElement.setAttribute("data-openclaw-boot-route", bootRoute);
document.documentElement.toggleAttribute("data-openclaw-boot-chat", bootRoute === "chat");
var THEMES = {
claw: 1,
knot: 1,
dash: 1,
absolutely: 1,
tide: 1,
beacon: 1,
phosphor: 1,
crt: 1,
manuscript: 1,
rose: 1,
miami: 1,
};
var MODES = { system: 1, light: 1, dark: 1 };
var LEGACY = {
dark: "claw:dark",
light: "claw:light",
openknot: "knot:dark",
fieldmanual: "dash:dark",
clawdash: "dash:light",
system: "claw:system",
};
try {
var keys = Object.keys(localStorage);
var raw;
for (var i = 0; i < keys.length; i++) {
if (keys[i].indexOf("openclaw.control.settings.v1") === 0) {
raw = localStorage.getItem(keys[i]);
if (raw) break;
}
}
var s = raw ? JSON.parse(raw) : null;
if (s && typeof s.navWidth === "number" && s.navWidth >= 240 && s.navWidth <= 400) {
document.documentElement.style.setProperty(
"--openclaw-boot-nav-width",
s.navWidth + "px",
);
}
var t = s && s.theme;
var m = s && s.themeMode;
if (typeof t !== "string") t = "";
if (typeof m !== "string") m = "";
var legacy = LEGACY[t];
var theme = THEMES[t] ? t : legacy ? legacy.split(":")[0] : "claw";
var mode = MODES[m] ? m : legacy ? legacy.split(":")[1] : "system";
if (mode === "system") {
mode = window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
}
// family -> [dark, light] resolved names. Kept in lockstep with
// resolveTheme() in app/theme.ts and the files in public/themes.
var FAMILIES = {
knot: ["openknot", "openknot-light"],
dash: ["dash", "dash-light"],
absolutely: ["absolutely", "absolutely-light"],
tide: ["tide", "tide-light"],
beacon: ["beacon", "beacon-light"],
phosphor: ["phosphor", "phosphor-light"],
crt: ["crt", "crt-light"],
manuscript: ["manuscript", "manuscript-light"],
rose: ["rose", "rose-light"],
miami: ["miami", "miami-light"],
};
var pair = FAMILIES[theme];
var resolved = pair
? pair[mode === "light" ? 1 : 0]
: mode === "light"
? "light"
: "dark";
if (pair) {
// Script-created links need explicit render blocking before first paint.
// The gateway stamps the mount prefix and asset version before this runs.
var base =
document.documentElement.getAttribute("data-openclaw-control-ui-base-path") || "";
var buildId = document.documentElement.getAttribute(
"data-openclaw-control-ui-build-id",
);
var version = buildId ? "?v=" + encodeURIComponent(buildId) : "";
var palette = document.createElement("link");
palette.rel = "stylesheet";
palette.setAttribute("blocking", "render");
palette.id = "openclaw-theme-palette-" + theme;
palette.onerror = function () {
palette.remove();
};
palette.href = base + "/themes/" + theme + ".css" + version;
document.head.appendChild(palette);
}
document.documentElement.setAttribute("data-theme", resolved);
var resolvedMode = resolved.includes("light") ? "light" : "dark";
document.documentElement.setAttribute("data-theme-mode", resolvedMode);
// Plugin semantic styles select on [data-theme-resolved]; keep in lockstep.
document.documentElement.setAttribute("data-theme-resolved", resolvedMode);
} catch (e) {}
})();
</script>
<style>html,body{min-height:100%}html{color-scheme:dark;background:#111318}html[data-theme-mode=light]{color-scheme:light;background:#f4f4f4}html[data-theme=openknot]{background:#0c0c0c}html[data-theme=openknot-light]{background:#f0f0f3}html[data-theme=dash]{background:#1e1613}html[data-theme=dash-light]{background:#e8e2dc}html[data-theme=absolutely]{background:#1f1f1e}html[data-theme=absolutely-light]{background:#f3f2f1}html[data-theme=tide]{background:#14191f}html[data-theme=tide-light]{background:#edeff1}html[data-theme=beacon]{background:#050505}html[data-theme=beacon-light]{background:#f3f3f3}html[data-theme=phosphor]{background:#0e130e}html[data-theme=phosphor-light]{background:#edf0ed}html[data-theme=crt]{background:#0d0e0d}html[data-theme=crt-light]{background:#f0f0f0}html[data-theme=manuscript]{background:#25221b}html[data-theme=manuscript-light]{background:#edece6}html[data-theme=rose]{background:#1d1b28}html[data-theme=rose-light]{background:#edeae7}html[data-theme=miami]{background:#181322}html[data-theme=miami-light]{background:#f2eef1}body{background:inherit;min-height:100%;color-scheme:inherit;margin:0}openclaw-app{box-sizing:border-box;height:var(--shell-canvas-height,100dvh);padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);display:block}.connect-splash--skeleton,.content--workbench .lazy-view-state--route{--boot-ink:var(--text,#bcbcc0);--boot-line:color-mix(in srgb, var(--boot-ink) 10%, transparent);--boot-content-bg:#0e1015}.content--workbench .lazy-view-state--route{background:var(--bg-content,var(--boot-content-bg));min-height:0;position:relative;container-type:inline-size}.connect-splash.connect-splash--skeleton{box-sizing:border-box;height:100vh;height:var(--shell-content-height,calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)));background:var(--bg,inherit);opacity:1;align-items:stretch;animation:none;display:flex;position:relative;overflow:hidden}html[data-theme-mode=light] :is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route){--boot-ink:var(--text,#353535);--boot-content-bg:#f8f8f8}.connect-splash__layout{grid-template-columns:calc(var(--openclaw-boot-nav-width,258px) + 52px) minmax(0, 1fr);width:100%;height:100%;min-height:0;display:grid}.connect-splash__main{background:var(--bg-content,var(--boot-content-bg));min-width:0;height:100%;position:relative;container-type:inline-size}.connect-splash__sidebar{box-sizing:border-box;border-inline-end:1px solid var(--boot-line);flex-direction:column;gap:24px;padding:16px 20px 16px 72px;display:flex;position:relative}.connect-splash__sidebar:before{border-inline-end:1px solid var(--boot-line);content:"";width:51px;position:absolute;inset:0 auto 0 0}.connect-splash__new-session{height:32px;margin:8px 0}.connect-splash__sidebar>.skeleton-line:nth-child(2n){width:65%}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .skeleton{background:color-mix(in srgb, var(--boot-ink) 8%, transparent);border-radius:6px;position:relative;overflow:hidden}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .skeleton:after{content:none;animation:none}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .skeleton-line{height:14px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .skeleton-line--medium{width:65%}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .skeleton-line--long{width:85%}.lazy-view-state--route>.connect-splash__status{display:none}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .connect-splash__status{color:var(--boot-ink);letter-spacing:normal;-webkit-font-smoothing:auto;text-align:center;margin:0;font:14px/20px system-ui,sans-serif;display:block;position:absolute;inset:auto 18px 50px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton{box-sizing:border-box;flex-direction:column;gap:0;width:100%;min-width:0;height:100%;min-height:0;padding:0 18px 14px;display:flex}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__header{box-sizing:border-box;padding-inline:12px;border-bottom:1px solid var(--boot-line,var(--border));flex:none;align-items:center;gap:14px;height:44px;margin-inline:-18px;padding-bottom:0;display:flex}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__avatar{border-radius:50%;flex:none;width:32px;height:32px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__title{width:140px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__messages{flex-direction:column;flex:1;gap:48px;width:min(100%,48rem);margin:28px auto 0;display:flex}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__message{gap:14px;width:85%;display:grid}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__message--user{align-self:flex-end;width:48%}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__composer{box-sizing:border-box;border:1px solid var(--boot-line,var(--border));border-radius:20px;flex:none;width:min(100%,48rem);height:92px;margin:8px auto 0}@media (width>=769px){html[data-openclaw-boot-chat] #openclaw-boot-shell .loading-skeleton__composer,.connect-splash[data-chat] .loading-skeleton__composer,.content--workbench .lazy-view-state--route .loading-skeleton__composer{height:max(var(--chat-composer-min-height,88px), calc(var(--chat-composer-editor-line,calc(var(--control-ui-text-md,14px) * 1.5)) + var(--chat-composer-editor-inset-block,6px) * 5 + var(--chat-composer-send-size,32px) + 4px + 2px))}}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton{padding-top:calc(clamp(44px,5vh,52px) + clamp(20px,4vh,40px));padding-inline:36px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__header{border:0;flex-direction:column;gap:12px;height:auto;margin:0;padding:0}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__header .loading-skeleton__avatar{width:96px;height:96px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__title{width:160px;height:30px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__messages{flex:none;gap:0;margin-top:6px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__message--user{align-self:center;justify-items:center;gap:44px;width:100%}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__message--user>:first-child{width:min(100%,280px);height:20px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__message--user>:last-child{width:100%;height:32px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__message:not(.loading-skeleton__message--user){display:none}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__composer{border-radius:12px;height:144px}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings]) .connect-splash__layout{grid-template-columns:288px minmax(0,1fr)}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings]) .connect-splash__sidebar{padding-inline-start:20px}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings]) .connect-splash__sidebar:before{display:none}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton{padding:6px 20px 32px}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__header{border:0;justify-content:center;width:min(100%,1120px);height:40px;margin:0 auto;padding:0}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__header .loading-skeleton__avatar,:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__message .loading-skeleton__avatar,:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__composer{display:none}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__title{width:180px;height:26px}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__messages{flex:none;gap:24px;width:min(100%,1120px);margin-top:32px}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__message{gap:24px;width:100%}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings],html[data-openclaw-boot-route=sessions] #openclaw-boot-shell,.connect-splash[data-route=sessions],html[data-openclaw-boot-route=cron] #openclaw-boot-shell,.connect-splash[data-route=cron]) .loading-skeleton__message--user{align-self:stretch}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings]) .loading-skeleton{padding:44px clamp(28px,5vw,72px) 32px}:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings]) .loading-skeleton__header{justify-content:flex-start}@container (width>=1200px){html[data-openclaw-boot-chat] #openclaw-boot-shell .loading-skeleton,.connect-splash[data-chat] .loading-skeleton,.content--workbench .lazy-view-state--route .loading-skeleton{padding-inline-end:331px}html[data-openclaw-boot-chat] #openclaw-boot-shell .loading-skeleton__header,.connect-splash[data-chat] .loading-skeleton__header,.content--workbench .lazy-view-state--route .loading-skeleton__header{margin-inline-end:-331px}html[data-openclaw-boot-chat] #openclaw-boot-shell .connect-splash__status,.connect-splash[data-chat] .connect-splash__status,.content--workbench .lazy-view-state--route .connect-splash__status{inset-inline-end:331px}}@media (width<=900px),(width<=932px) and (height<=500px) and (orientation:landscape){.connect-splash__layout,:is(html[data-openclaw-boot-route=settings] #openclaw-boot-shell,.connect-splash[data-route=settings]) .connect-splash__layout{grid-template-columns:minmax(0,1fr)}.connect-splash__sidebar{display:none}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .connect-splash__status{inset-inline-start:18px}}@media (width<=768px){:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton{padding:0 16px 10px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__header{height:58px;margin-inline:-16px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .loading-skeleton__composer{border-radius:22px;height:52px}:is(.connect-splash--skeleton,.content--workbench .lazy-view-state--route) .connect-splash__status{bottom:26px}}@media (width<=768px),(width<=932px) and (height<=500px) and (orientation:landscape){:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton{justify-content:center;padding:76px 18px 24px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__header .loading-skeleton__avatar{width:56px;height:56px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__title{height:24px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__message--user{gap:24px}}@media (width<=768px) and (height<=500px),(width<=932px) and (height<=500px) and (orientation:landscape){:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton{padding-top:64px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__header{flex-direction:row;justify-content:center}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__header .loading-skeleton__avatar{width:36px;height:36px}:is(html[data-openclaw-boot-route=new] #openclaw-boot-shell,.connect-splash[data-route=new]) .loading-skeleton__message--user>:first-child{display:none}}body.openclaw-mount-fallback-active{--mount-fallback-bg:var(--bg,#111318);--mount-fallback-card:var(--card,#161920);--mount-fallback-text:var(--text-strong,#f4f4f5);--mount-fallback-muted:var(--muted,#8b8b94);--mount-fallback-link:var(--link,#ff7070);--mount-fallback-ring:var(--ring,#ff5c5c);color:var(--mount-fallback-text);background:var(--mount-fallback-bg);font-family:var(--font-body,ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);-webkit-font-smoothing:antialiased;margin:0}body.openclaw-mount-fallback-active openclaw-app{display:none}.mount-fallback{box-sizing:border-box;height:100dvh;padding:max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));place-items:safe center;overflow-y:auto}.mount-fallback:not([hidden]){display:grid}.mount-fallback__panel{box-sizing:border-box;border:1px solid color-mix(in srgb, var(--mount-fallback-text) 7%, transparent);background:var(--mount-fallback-card);width:min(100%,560px);box-shadow:var(--shadow-lg,0 12px 32px #0003);border-radius:20px;padding:32px}.mount-fallback__panel .mount-fallback__eyebrow{color:var(--mount-fallback-muted);letter-spacing:.08em;text-transform:uppercase;margin:0 0 16px;font-size:.78rem;font-weight:700}.mount-fallback__panel h1{color:inherit;letter-spacing:-.02em;margin:0;font-size:clamp(1.375rem,3vw,1.625rem);font-weight:650;line-height:1.25}.mount-fallback__panel p{color:var(--mount-fallback-muted);margin:12px 0 0;font-size:.9375rem;line-height:1.55}.mount-fallback__panel ul{color:var(--mount-fallback-muted);margin:18px 0 0;padding-left:1.2rem;font-size:.875rem;line-height:1.55}.mount-fallback__panel li+li{margin-top:8px}.mount-fallback__panel a{color:var(--mount-fallback-link);text-underline-offset:.18em;text-decoration-thickness:.08em}.mount-fallback__actions{flex-wrap:wrap;gap:10px;margin-top:24px;display:flex}.mount-fallback__button{appearance:none;min-height:44px;color:inherit;background:color-mix(in srgb, var(--mount-fallback-text) 8%, var(--mount-fallback-card));font:inherit;cursor:default;border:0;border-radius:10px;padding:10px 16px;font-size:.875rem;font-weight:600;line-height:1.4;transition:background .12s}@media (hover:hover){.mount-fallback__button:hover{background:color-mix(in srgb, var(--mount-fallback-text) 12%, var(--mount-fallback-card))}}.mount-fallback__button:active{background:color-mix(in srgb, var(--mount-fallback-text) 16%, var(--mount-fallback-card))}.mount-fallback__button--primary{color:var(--primary-foreground,#fff);background:var(--primary,#d13c3c)}.mount-fallback__button--primary:active{background:var(--primary-hover,#c22e2e)}@media (hover:hover){.mount-fallback__button--primary:hover{background:var(--primary-hover,#c22e2e)}}.mount-fallback__panel:focus{outline:none}.mount-fallback__button:focus-visible,.mount-fallback__panel a:focus-visible{outline:2px solid var(--mount-fallback-ring);outline-offset:3px}html[data-theme-mode=light] body.openclaw-mount-fallback-active{--mount-fallback-bg:var(--bg,#f4f4f4);--mount-fallback-card:var(--card,#fff);--mount-fallback-text:var(--text-strong,#18181b);--mount-fallback-muted:var(--muted,#64646e);--mount-fallback-link:var(--link,#b91c1c);--mount-fallback-ring:var(--ring,#dc2626)}html[data-theme-mode=light] .mount-fallback__panel{box-shadow:var(--shadow-lg,0 12px 32px #0f172a14)}@media (width<=560px){.mount-fallback__panel{padding:24px}}@media (prefers-reduced-motion:reduce){.mount-fallback__button{transition:none}}</style>
<script data-cfasync="false" type="module" crossorigin src="./assets/index-BZ-oQZzF.js"></script>
<link rel="modulepreload" crossorigin href="./assets/rolldown-runtime-CNOWq4Kh.js">
<link rel="modulepreload" crossorigin href="./assets/control-ui-connection-Bfj9beF_.js">
<link rel="preload" as="style" crossorigin href="./assets/control-ui-connection-D5QrEAFW.css"><link rel="stylesheet" crossorigin href="./assets/control-ui-connection-D5QrEAFW.css" id="openclaw-boot-styles" media="print">
<template data-openclaw-route-preloads="chat"> <link rel="modulepreload" crossorigin="" href="./assets/device-signing-runtime-Cvp1CA06.js">
<link rel="modulepreload" crossorigin="" href="./assets/chat-route-entry-CggrR8vy.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-chat-DewxEbIm.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-shared-DFTSUQQ0.js">
<link rel="modulepreload" crossorigin="" href="./assets/solid-runtime-C416s-HC.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-shared-styles-CTDFATjh.js">
<link rel="preload" as="style" crossorigin="" href="./assets/control-ui-boot-shared-styles-BorAdMVO.css">
<link rel="modulepreload" crossorigin="" href="./assets/chat-english-BpQpBjX1.js">
<link rel="modulepreload" crossorigin="" href="./assets/deferred-ui-support-D-VedBtc.js">
<link rel="modulepreload" crossorigin="" href="./assets/markdown-runtime-DmM7zNej.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-chat-styles-CEPkk0Pv.js">
<link rel="preload" as="style" crossorigin="" href="./assets/control-ui-boot-chat-styles-BoDuSoES.css">
<link rel="modulepreload" crossorigin="" href="./assets/chat-message-media-runtime-BIOBdIgm.js">
<link rel="modulepreload" crossorigin="" href="./assets/virtual-core-runtime-BYd4CRBu.js">
<link rel="preload" as="script" fetchpriority="low" crossorigin="" href="./assets/app-sidebar-online-gSvRb1ll.js">
<link rel="preload" as="script" fetchpriority="low" crossorigin="" href="./assets/chat-interaction-runtime-C1OYhfKp.js">
<link rel="preload" as="script" fetchpriority="low" crossorigin="" href="./assets/chat-live-events-runtime-B-ZyxYub.js">
<link rel="preload" as="script" fetchpriority="low" crossorigin="" href="./assets/composer-invocation-menus-C8QNiPIl.js">
<link rel="preload" as="script" fetchpriority="low" crossorigin="" href="./assets/markdown-streaming-runtime-1QtqD2KN.js">
</template>
<template data-openclaw-route-preloads="new"> <link rel="modulepreload" crossorigin="" href="./assets/device-signing-runtime-Cvp1CA06.js">
<link rel="modulepreload" crossorigin="" href="./assets/new-session-page-entry-BqKEo90G.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-new-BsNYv3zK.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-shared-DFTSUQQ0.js">
<link rel="modulepreload" crossorigin="" href="./assets/solid-runtime-C416s-HC.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-shared-styles-CTDFATjh.js">
<link rel="preload" as="style" crossorigin="" href="./assets/control-ui-boot-shared-styles-BorAdMVO.css">
<link rel="modulepreload" crossorigin="" href="./assets/chat-english-BpQpBjX1.js">
<link rel="modulepreload" crossorigin="" href="./assets/route-controls-runtime-Bx6nx3QW.js">
<link rel="modulepreload" crossorigin="" href="./assets/control-ui-boot-new-styles-C0RRkvtM.js">
<link rel="preload" as="style" crossorigin="" href="./assets/control-ui-boot-new-styles-C04N4CoB.css">
<link rel="modulepreload" crossorigin="" href="./assets/composer-invocation-menus-C8QNiPIl.js">
<link rel="modulepreload" crossorigin="" href="./assets/session-placement-startup.runtime-CDEMEgHS.js">
<link rel="preload" as="script" fetchpriority="low" crossorigin="" href="./assets/app-sidebar-online-gSvRb1ll.js">
</template>
<meta id="openclaw-navigation-preloads" content="assets/navigation-preloads-DwGWz9LU.json">
</head>
<body>
<openclaw-app>
<!-- Solid replaces this public, data-free frame in its first commit. -->
<main
id="openclaw-boot-shell"
class="connect-splash connect-splash--skeleton"
role="status"
aria-label="Loading"
>
<div class="connect-splash__layout" aria-hidden="true">
<aside class="connect-splash__sidebar">
<div class="skeleton loading-skeleton__avatar"></div>
<div class="skeleton connect-splash__new-session"></div>
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line"></div>
</aside>
<div class="connect-splash__main">
<div class="loading-skeleton" aria-hidden="true">
<div class="loading-skeleton__header">
<div class="skeleton loading-skeleton__avatar"></div>
<div class="skeleton skeleton-line loading-skeleton__title"></div>
</div>
<div class="loading-skeleton__messages">
<div class="loading-skeleton__message loading-skeleton__message--user">
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line skeleton-line--medium"></div>
</div>
<div class="loading-skeleton__message">
<div class="skeleton loading-skeleton__avatar"></div>
<div class="skeleton skeleton-line"></div>
<div class="skeleton skeleton-line skeleton-line--long"></div>
<div class="skeleton skeleton-line skeleton-line--medium"></div>
</div>
</div>
<div class="skeleton loading-skeleton__composer"></div>
</div>
<span class="connect-splash__status">Loading…</span>
</div>
</div>
</main>
</openclaw-app>
<section
id="openclaw-mount-fallback"
class="mount-fallback"
data-openclaw-mount-timeout-ms="12000"
role="alert"
aria-labelledby="openclaw-mount-fallback-title"
hidden
>
<div class="mount-fallback__panel" tabindex="-1">
<p class="mount-fallback__eyebrow">OpenClaw Control UI</p>
<h1 id="openclaw-mount-fallback-title">Control UI did not start</h1>
<p id="openclaw-mount-fallback-summary">
The browser loaded the static page, but the app bundle did not start. The gateway may be
restarting, or this page may reference assets from a different OpenClaw version.
</p>
<ul>
<li>If startup fails, OpenClaw will retry the current app bundle automatically.</li>
<li>If this persists, reload or try a clean browser profile.</li>
<li>
See
<a
href="https://docs.openclaw.ai/web/control-ui#blank-control-ui-page"
target="_blank"
rel="noopener noreferrer"
>Control UI troubleshooting</a
>.
</li>
</ul>
<div class="mount-fallback__actions">
<button
type="button"
id="openclaw-mount-retry"
class="mount-fallback__button mount-fallback__button--primary"
>
Try again
</button>
<button type="button" id="openclaw-mount-wait" class="mount-fallback__button">
Keep waiting
</button>
</div>
</div>
</section>
<script data-cfasync="false">
(function () {
var app = document.querySelector("openclaw-app");
var fallback = document.getElementById("openclaw-mount-fallback");
if (!app || !fallback) return;
var panel = fallback.querySelector(".mount-fallback__panel");
var title = document.getElementById("openclaw-mount-fallback-title");
var summary = document.getElementById("openclaw-mount-fallback-summary");
var failureSummary = summary.textContent;
var retry = document.getElementById("openclaw-mount-retry");
var wait = document.getElementById("openclaw-mount-wait");
var rawDelay = Number(fallback.getAttribute("data-openclaw-mount-timeout-ms"));
var delay = Number.isFinite(rawDelay) && rawDelay > 0 ? rawDelay : 12000;
var maxRecoveryNavigations = 3;
var timer;
var recoveryTimer;
var recoveryAttempt = 0;
var recoveryNavigation = 0;
var bootSettled = false;
var documentLoaded = document.readyState === "complete";
var recoveryController;
// The recovery page cannot import the app's drag helper when its bundle failed.
fallback.addEventListener("mousedown", function (event) {
if (event.button !== 0 || event.defaultPrevented || event.target !== fallback) return;
var drag = window.webkit?.messageHandlers?.openclawWindowDrag;
if (!drag) return;
try {
drag.postMessage({ type: "window-drag" });
event.preventDefault();
} catch (e) {}
});
try {
var initialUrl = new URL(window.location.href);
var recoveryMarker = initialUrl.searchParams.get("openclaw_mount_recovery");
// Runtime reloads pass a timestamp cache buster; count it as the first recovery navigation.
if (recoveryMarker !== null) {
var count = Number(recoveryMarker);
recoveryNavigation =
Number.isInteger(count) && count >= 1 && count <= maxRecoveryNavigations ? count : 1;
}
if (recoveryNavigation || initialUrl.searchParams.has("openclaw_http_auth")) {
initialUrl.searchParams.delete("openclaw_mount_recovery");
initialUrl.searchParams.delete("openclaw_http_auth");
window.history.replaceState(null, "", initialUrl.href);
}
} catch (e) {}
function hideFallback() {
fallback.hidden = true;
document.body.classList.remove("openclaw-mount-fallback-active");
}
function setSummary(text) {
if (summary) summary.textContent = text;
}
function cancelRecovery() {
window.clearTimeout(recoveryTimer);
if (recoveryController) recoveryController.abort();
recoveryController = undefined;
}
function scheduleRecovery() {
window.clearTimeout(recoveryTimer);
if (bootSettled) return;
var retryDelay = Math.min(15000, 1000 * Math.pow(2, Math.min(recoveryAttempt - 1, 4)));
recoveryTimer = window.setTimeout(retryCurrentDocument, retryDelay);
}
function finishRecoveryAttempt() {
recoveryController = undefined;
if (bootSettled) return;
setSummary(
"The gateway is not reachable yet. OpenClaw will keep retrying while it restarts.",
);
scheduleRecovery();
}
function retryCurrentDocument() {
if (bootSettled || recoveryController || typeof window.fetch !== "function") return;
var documentUrl = new URL(window.location.href);
if (recoveryNavigation >= maxRecoveryNavigations) {
setSummary(
"A fresh page still could not start the Control UI. Try again, then check the troubleshooting guide if the problem persists.",
);
return;
}
recoveryAttempt += 1;
documentUrl.searchParams.set("openclaw_mount_recovery", String(recoveryNavigation + 1));
var controller = new AbortController();
recoveryController = controller;
var requestTimer = window.setTimeout(function () {
controller.abort();
}, delay);
window
.fetch(documentUrl.href, {
cache: "no-store",
credentials: "same-origin",
signal: controller.signal,
})
.then(function (response) {
if (!response.ok) throw new Error("gateway unavailable");
if (!bootSettled && recoveryController === controller)
window.location.replace(documentUrl.href);
})
.catch(function () {
if (recoveryController !== controller) return;
// Network failure says nothing about worker health. Keep offline recovery.
finishRecoveryAttempt();
})
.finally(function () {
window.clearTimeout(requestTimer);
});
}
function showFallback() {
if (bootSettled) return;
title.textContent = documentLoaded
? "Control UI did not start"
: "Control UI is still loading";
fallback.setAttribute("role", documentLoaded ? "alert" : "status");
setSummary(
documentLoaded
? failureSummary
: "The browser is still loading the app. OpenClaw will keep waiting without interrupting the download.",
);
if (documentLoaded) retryCurrentDocument();
fallback.hidden = false;
document.body.classList.add("openclaw-mount-fallback-active");
if (documentLoaded && panel && typeof panel.focus === "function") {
try {
panel.focus({ preventScroll: true });
} catch (e) {
panel.focus();
}
}
}
function armFallbackTimer() {
window.clearTimeout(timer);
timer = window.setTimeout(showFallback, delay);
}
armFallbackTimer();
// The nonblocking entry sheet can outlive DOMContentLoaded. A slow
// download is not a failed bootstrap: recovery would cancel it.
document.addEventListener(
"DOMContentLoaded",
function () {
var styles = document.getElementById("openclaw-boot-styles");
function finishDocumentLoad() {
if (styles) {
styles.removeEventListener("load", finishDocumentLoad);
styles.removeEventListener("error", finishDocumentLoad);
}
documentLoaded = true;
if (!bootSettled) armFallbackTimer();
}
if (styles && styles.media === "print") {
styles.addEventListener("load", finishDocumentLoad, { once: true });
styles.addEventListener("error", finishDocumentLoad, { once: true });
} else {
finishDocumentLoad();
}
},
{ once: true },
);
function retireMountRecovery() {
bootSettled = true;
window.clearTimeout(timer);
cancelRecovery();
hideFallback();
}
window.addEventListener("openclaw-control-ui-rendered", retireMountRecovery, {
once: true,
});
// Admission rejection is terminal even while its fallback assets are still loading.
window.addEventListener("openclaw-control-ui-unsupported-browser", retireMountRecovery, {
once: true,
});
window.addEventListener(
"openclaw-control-ui-unsupported-browser-failed",
function () {
title.textContent = "Browser guidance could not load";
setSummary("Check your connection, then try again to load the browser requirements.");
fallback.querySelector("ul").hidden = true;
wait.hidden = true;
fallback.hidden = false;
document.body.replaceChildren(fallback);
document.body.classList.add("openclaw-mount-fallback-active");
retry.focus();
},
{ once: true },
);
if (retry) {
retry.addEventListener("click", function () {
cancelRecovery();
window.location.reload();
});
}
if (wait) {
wait.addEventListener("click", function () {
hideFallback();
cancelRecovery();
recoveryAttempt = 0;
armFallbackTimer();
});
}
})();
</script>
</body>
</html>