Skip to content

Fix HTML preview rendering in Tracy panel#48

Closed
zraly wants to merge 4 commits intonextras:masterfrom
zraly:codex/fix-html-preview-upstream
Closed

Fix HTML preview rendering in Tracy panel#48
zraly wants to merge 4 commits intonextras:masterfrom
zraly:codex/fix-html-preview-upstream

Conversation

@zraly
Copy link
Copy Markdown
Contributor

@zraly zraly commented Apr 9, 2026

Fixes #47.

Summary

  • load Preview HTML through a dedicated server-side preview endpoint
  • stop writing preview HTML into the iframe document client-side
  • keep HTML preview rendering on the same server-side path used for rendered message previews
  • update the regression test to assert the preview endpoint contract

Why

The regression was not in MIME parsing itself. The extracted HTML was correct, but the Tracy panel preview still reconstructed the iframe document client-side. That was fragile for full HTML emails containing <head> and <style> and could render parts of the document as source text instead of HTML.

@zraly zraly closed this Apr 9, 2026
@zraly
Copy link
Copy Markdown
Contributor Author

zraly commented Apr 9, 2026

Reopened from a clean branch based on current upstream/master: #49

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.

Preview HTML does not work

1 participant