Skip to content

Decide: click-to-load placeholder for remote images in AI chat replies #3928

Done

Description

@mstomar125

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:

  1. Leave as is (no remote images in chat).
  2. 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.

🤖 Generated with Claude Code

Activity

  1. mstomar125 commented on Nov 5, 2026

    @mstomar125
    ContributorAuthor

    @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

  2. self-assigned this
    on Nov 16, 2026
  3. mstomar125 commented on Nov 16, 2026

    @mstomar125
    ContributorAuthor

    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.

  4. mstomar125 commented on Nov 16, 2026

    @mstomar125
    ContributorAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions