Skip to content

feat(chat): show the image a bot reads on its tool line - #191

Merged
httpsphl merged 1 commit into
mainfrom
feat/chat-read-image
Oct 5, 2026
Merged

httpsphl merged 1 commit into
mainfrom
feat/chat-read-image

Conversation

@httpsphl

@httpsphl httpsphl commented Oct 5, 2026

Copy link
Copy Markdown
Owner

When a bot reads an image with Read (png, jpg, gif, webp, bmp), the tool line now shows it:

  • small, beside the file name, on the line and on the folded line while the bot is reading it;
  • larger when the line opens, above the input.

The picture is read with files.read, so only images in the bot's folders show; any other path keeps the plain line. The path is found in the input even when it is cut short. No new UI text (the image's alt is the file name). Spec 15.3 updated.

Tests: readImage.test.tsx (path finding, thumbnail and larger picture, image outside the folders). Manual: ask a bot to look at an image in its work folder and check the line.

A Read of a png, jpg, gif, webp or bmp now shows the picture small on
the line (also on the folded line while the bot reads it) and larger
when the line opens. It is read with files.read, so only images in the
bot's folders show; any other path keeps the plain line.
@httpsphl
httpsphl enabled auto-merge October 5, 2026 14:22
@httpsphl
httpsphl merged commit 864bd0c into main Oct 5, 2026
4 checks passed
@httpsphl httpsphl mentioned this pull request Oct 6, 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.

1 participant