Skip to content

fix(frontend): render retained tool-result images - #1738

Open
rodboev wants to merge 2 commits into
kenn-io:mainfrom
rodboev:pr/1735-retained-image-rendering
Open

fix(frontend): render retained tool-result images#1738
rodboev wants to merge 2 commits into
kenn-io:mainfrom
rodboev:pr/1735-retained-image-rendering

Conversation

@rodboev

@rodboev rodboev commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Formatted tool output renders retained Codex PNG results between surrounding text and keeps large payloads within the output pane. Image-only results render as images, and Raw keeps retained inline results available for inspection.

The frontend projects retained input_image data URIs for PNG, JPEG, WebP, and GIF through the existing Markdown renderer and asset resolver. Migrated asset references keep their current behavior. Unsupported media, malformed blocks, and remote URLs remain stored text. The change stays in ToolBlock and its display helper, with no backend, storage, configuration, or locale changes.

PR #1729 covers ingest-time offload. This change covers retained inline images in Keep mode.

The reproduction came from #1735. It measured 10,812,829 pixels of horizontal scroll in a 1,623 pixel box, with zero image elements. Focused tests and Chromium proof cover the change and browser smoke tests confirm the fix.

Closes #1735

@roborev-ci

roborev-ci Bot commented Sep 12, 2026

Copy link
Copy Markdown

roborev: Combined Review (2beffb1)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 6m51s

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Formatted tool output fails to render retained PNGs and creates a huge base64 text line

1 participant