Skip to content

Fix HTML preview rendering in Tracy panel#49

Open
zraly wants to merge 2 commits intonextras:masterfrom
zraly:codex/fix-html-preview-upstream-v2
Open

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

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
  • avoid injecting a new <base> tag when the email already defines one
  • update tests for the new preview endpoint behavior

Why

The regression does not seem to be in MIME extraction itself. The extracted HTML is correct, but the Tracy panel preview was still reconstructing the iframe document client-side, which is fragile for full HTML emails containing <head> and <style>.

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