Skip to content

fix: restore compact JS placeholders in session export template#1008

Open
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-49961-fix-session-export-placeholders
Open

fix: restore compact JS placeholders in session export template#1008
BingqingLyu wants to merge 2 commits into
mainfrom
fork-pr-49961-fix-session-export-placeholders

Conversation

@BingqingLyu

@BingqingLyu BingqingLyu commented Apr 27, 2026

Copy link
Copy Markdown
Owner

Fixes openclaw#49957

The session export template at src/auto-reply/reply/export-html/template.html had its JS placeholders reformatted into multi-line blocks. This prevented the .replace() calls in the export logic from finding and injecting the vendored JS, resulting in empty exports in the browser.

This PR restores the single-line format.

Automated formatters like Prettier can expand the single-line placeholders into multi-line blocks with semicolons. This prevents the literal string replacement in the export code from matching.
…r corruption

This prevents Prettier from reformatting {{PLACEHOLDER}} blocks into multi-line scripts, which breaks the string-replacement logic in the export command. Follow-up to PR openclaw#49961.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Session export HTML is empty due to reformatted JS placeholders in template

2 participants