Description
/export-session produces an HTML file (~2MB with session data) that opens in the browser but displays nothing — blank page with the dark theme background, no messages rendered.
Environment
- OpenClaw 2026.3.8
- macOS, Discord channel
Steps to Reproduce
- Run
/export-session in any Discord channel with an active session
- Open the resulting HTML file in a browser
- Page is blank — styled but no content
Root Cause
The {{MARKED_JS}}, {{HIGHLIGHT_JS}}, and {{JS}} template placeholders in src/auto-reply/reply/export-html/template.html were reformatted by Prettier into multi-line JS block statements. The generateHtml() function uses .replace('{{MARKED_JS}}', ...) which requires contiguous strings, so the replacement silently fails and the vendor JS + app code are never injected into the HTML.
Introduced in 9d403fd.
Fix
PR #41861 — collapses placeholders to single-line format with prettier-ignore guards.
Description
/export-sessionproduces an HTML file (~2MB with session data) that opens in the browser but displays nothing — blank page with the dark theme background, no messages rendered.Environment
Steps to Reproduce
/export-sessionin any Discord channel with an active sessionRoot Cause
The
{{MARKED_JS}},{{HIGHLIGHT_JS}}, and{{JS}}template placeholders insrc/auto-reply/reply/export-html/template.htmlwere reformatted by Prettier into multi-line JS block statements. ThegenerateHtml()function uses.replace('{{MARKED_JS}}', ...)which requires contiguous strings, so the replacement silently fails and the vendor JS + app code are never injected into the HTML.Introduced in 9d403fd.
Fix
PR #41861 — collapses placeholders to single-line format with
prettier-ignoreguards.