mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-02 11:31:34 +00:00
A gateway in-place update can leave a document whose hashed entry CSS 404s while the app JS still boots, rendering a fully unstyled page that no existing safety net catches (vite:preloadError only covers dynamic imports; the index.html mount fallback only checks the custom element). Add a CSS sentinel (--openclaw-css-ok) checked at document load plus a capture-phase stylesheet error listener; on detection reuse the existing stale-chunk auto-reload (one per build id, gateway probe), and fall back to an inline-styled banner with a Reload button when auto-reload is unavailable.