You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decide: click-to-load placeholder for remote images in AI chat replies #3928
Decision needed from @malibio: do we want a click-to-load placeholder for remote images in AI chat replies?
Remote images in AI replies no longer render. That was an intended privacy trade (the chat sanitiser drops network loads, and the content security policy still blocks remote loads in the shipped app), so a reply that includes an image now shows nothing where the image would be.
Options:
Leave as is (no remote images in chat).
Show a placeholder with the image address and a "load image" click for that one image. Loading is per image and per click, never automatic.
If option 1 is the answer, close this issue. If option 2, the work is: placeholder rendering in the chat sanitiser output, a click handler that loads only that image, and a test that no remote request is made before the click.
Split out of the earlier chat HTML sanitiser follow-up; the other items of that follow-up are done and merged.
@malibio a decision is needed here: should remote images in AI chat replies stay unrendered (option 1), or get a click-to-load placeholder that loads one image per click (option 2)? If option 1, this issue can close; if option 2, the work is the placeholder in the sanitiser output, the per-image click handler, and a test that no remote request is made before the click.
Picking this up. Decision (2026-11-16): build the click-to-load placeholder. Plan: read the sanitiser, the chat reply renderer and the CSP first; no global CSP loosening; no remote request before the click.
Done in #4277 (24ce7f8). Remote images in AI chat replies show a placeholder (alt text, the host and the full address as plain text) with a Load image button; only a click loads that one image, through a new narrow command that fetches it in the app process (https only, no credentials, public addresses only with the connection pinned to the checked addresses, redirects re-checked up to 3, type allow-list with a signature check and no SVG, 5 MiB cap, one 15 s deadline, no cookies or referrer). The content security policy and the sanitiser are unchanged. Reviewed twice by an independent security review. The placeholder says the full address, query string included, is sent to that host and that it sees your IP address. A docs change is still owed for the two lines that describe this (the remote-image row of the security posture threats and the Markdown rendering line of the ACP integration page).
Activity
mstomar125 commentedon Nov 5, 2026
@malibio a decision is needed here: should remote images in AI chat replies stay unrendered (option 1), or get a click-to-load placeholder that loads one image per click (option 2)? If option 1, this issue can close; if option 2, the work is the placeholder in the sanitiser output, the per-image click handler, and a test that no remote request is made before the click.
🤖 Generated with Claude Code
mstomar125 commentedon Nov 16, 2026
Picking this up. Decision (2026-11-16): build the click-to-load placeholder. Plan: read the sanitiser, the chat reply renderer and the CSP first; no global CSP loosening; no remote request before the click.
mstomar125 commentedon Nov 16, 2026
Done in #4277 (24ce7f8). Remote images in AI chat replies show a placeholder (alt text, the host and the full address as plain text) with a Load image button; only a click loads that one image, through a new narrow command that fetches it in the app process (https only, no credentials, public addresses only with the connection pinned to the checked addresses, redirects re-checked up to 3, type allow-list with a signature check and no SVG, 5 MiB cap, one 15 s deadline, no cookies or referrer). The content security policy and the sanitiser are unchanged. Reviewed twice by an independent security review. The placeholder says the full address, query string included, is sent to that host and that it sees your IP address. A docs change is still owed for the two lines that describe this (the remote-image row of the security posture threats and the Markdown rendering line of the ACP integration page).