Skip to content

Render inline image previews - #211

Closed
bobrowadam wants to merge 1 commit into
dnouri:masterfrom
bobrowadam:bob/image-previews-pr
Closed

Render inline image previews#211
bobrowadam wants to merge 1 commit into
dnouri:masterfrom
bobrowadam:bob/image-previews-pr

Conversation

@bobrowadam

Copy link
Copy Markdown
Contributor

Adds inline image rendering for image content blocks and local image files read through tools.

This makes visual results visible directly in the Emacs chat buffer instead of showing only text placeholders.

@bobrowadam
bobrowadam force-pushed the bob/image-previews-pr branch from c398ac0 to 5023a0b Compare May 30, 2026 20:03
@conornash

conornash commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

I made a similar PR #221. Mine has some more tests, but doesn't have all your functionality. Should I try to pull your changes into my branch, or do you want to try to adapt my code to your branch?

@bobrowadam

Copy link
Copy Markdown
Contributor Author

@conornash sure of course give it a try 🙂

dnouri added a commit to conornash/pi-coding-agent that referenced this pull request Aug 30, 2026
Preview complete standalone SVG text returned by read without reopening the
tool argument path. Leave text with obvious scripts or external resources
undecoded, and keep previews display-only.

Co-authored-by: Adam Bobrow <adam@bradwell.ai>
dnouri added a commit to conornash/pi-coding-agent that referenced this pull request Aug 30, 2026
Preview complete standalone SVG text returned by read without reopening the
tool argument path. Leave text with obvious scripts or external resources
undecoded, and keep previews display-only.

Co-authored-by: Adam Bobrow <adam@bradwell.ai>
dnouri added a commit to conornash/pi-coding-agent that referenced this pull request Aug 30, 2026
Preview complete standalone SVG text returned by read without reopening the
tool argument path. Leave text with obvious scripts or external resources
undecoded, and keep previews display-only.

Co-authored-by: Adam Bobrow <adam@bradwell.ai>
dnouri added a commit that referenced this pull request Aug 30, 2026
* Keep test dependencies consistent across Emacs processes

Keep dependency installs project-local per Emacs major and pass the selected
Emacs and package directory to child batch, GUI, and benchmark processes.
Preserve the existing in-tree compile behavior.

Co-authored-by: Daniel Nouri <daniel.nouri@gmail.com>

* Display inline images from tool results (#221)

Render completed tool-result image blocks inline in graphical Emacs and as
type-and-size placeholders in terminals. Bound each returned source and the
number shown per tool, and preserve rendered previews through toggling and
cooling.

* Preview SVG results returned by read (#211)

Preview complete standalone SVG text returned by read without reopening the
tool argument path. Leave text with obvious scripts or external resources
undecoded, and keep previews display-only.

Co-authored-by: Adam Bobrow <adam@bradwell.ai>

---------

Co-authored-by: Lugh <lugh@Kaji.local>
Co-authored-by: Daniel Nouri <daniel.nouri@gmail.com>
Co-authored-by: Conor Nash <conor@nbs.consulting>
Co-authored-by: Adam Bobrow <adam@bradwell.ai>
@dnouri

dnouri commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Thanks @bobrowadam. #221 has now merged and consolidated this implementation, including returned SVG previews, while preserving your co-authorship. Closing this PR as superseded by #221.

@dnouri dnouri closed this Aug 30, 2026
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.

3 participants