From 6b64039fcbc05c93e24bda914614ccd10933a03b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 12 Dec 2025 15:01:20 +0000 Subject: [PATCH] fix(mac): keep webchat boot dots --- .../Clawdis/Resources/WebChat/bootstrap.js | 3 +- .../Resources/WebChat/webchat.bundle.js | 2 +- .../macos/Sources/Clawdis/WebChatWindow.swift | 34 ++++++++++++++++++- 3 files changed, 36 insertions(+), 3 deletions(-) diff --git a/apps/macos/Sources/Clawdis/Resources/WebChat/bootstrap.js b/apps/macos/Sources/Clawdis/Resources/WebChat/bootstrap.js index b97788463..b317a29c9 100644 --- a/apps/macos/Sources/Clawdis/Resources/WebChat/bootstrap.js +++ b/apps/macos/Sources/Clawdis/Resources/WebChat/bootstrap.js @@ -13,7 +13,8 @@ const logStatus = (msg) => { try { console.log(msg); const el = document.getElementById("app"); - if (el && !el.dataset.booted) el.textContent = msg; + // Keep the animated boot loader visible; don't overwrite it with status text. + if (el && !el.dataset.booted) el.dataset.status = msg; } catch { // Ignore logging failures—never block bootstrap. } diff --git a/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js b/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js index 63ca20c54..e49db5fa5 100644 --- a/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js +++ b/apps/macos/Sources/Clawdis/Resources/WebChat/webchat.bundle.js @@ -196364,7 +196364,7 @@ const logStatus = (msg) => { try { console.log(msg); const el = document.getElementById("app"); - if (el && !el.dataset.booted) el.textContent = msg; + if (el && !el.dataset.booted) el.dataset.status = msg; } catch {} }; const randomId = () => { diff --git a/apps/macos/Sources/Clawdis/WebChatWindow.swift b/apps/macos/Sources/Clawdis/WebChatWindow.swift index 7d0d0ec93..f0d4e366f 100644 --- a/apps/macos/Sources/Clawdis/WebChatWindow.swift +++ b/apps/macos/Sources/Clawdis/WebChatWindow.swift @@ -133,6 +133,36 @@ final class WebChatWindowController: NSWindowController, WKNavigationDelegate, N private func loadPlaceholder() { let html = """ + + + - Connecting to web chat… +
+ +
"""