Skip to content

fix(chat): keep no images in the rendered chat answer - #4053

Merged
marevol merged 1 commit into
mainfrom
fix/chat-markdown-images
Dec 5, 2026
Merged

marevol merged 1 commit into
mainfrom
fix/chat-markdown-images

Conversation

@marevol

@marevol marevol commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Summary

The html_content of a chat answer no longer keeps <img> elements. A browser loads an image as soon as it shows the answer, from whatever address the answer names, and the answer text comes from a language model working on crawled content. The bundled theme already left images out; now the server-side rendering does too, so other clients get the same result.

A client that showed such images now shows the text without them. UPGRADING.md says so.

Testing

MarkdownRendererTest has a new case for a Markdown image and an HTML img, which fails without the change. MarkdownRendererTest and ChatClient*Test pass.

A browser loads an image as soon as it shows the answer, from whatever
address the answer names. The bundled theme already left images out; the
server-side rendering now does the same, so every client gets that.
@marevol marevol added this to the 15.10.0 milestone Dec 5, 2026
@marevol marevol self-assigned this Dec 5, 2026
@marevol
marevol merged commit 7c9a61d into main Dec 5, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant