feat: display images in chat request tree nodes#17024
Merged
Conversation
Render image thumbnails in chat request nodes for both attachment-flow images (from context variables) and paste-flow images (inline #imageContext variable parts). - Render context-variable images as thumbnails below the request text - Render pasted inline images as thumbnails replacing #imageContext text labels, positioned where they were pasted in the text flow - Deduplicate images across both sources - Fix doResolve() to preserve resolver-enriched arg instead of overwriting it with the caller's original arg, so resolved image data survives variable resolution - Fix getMessages() to extract images from inline resolved variable parts in addition to context variables, so pasted images reach the LLM - Fix clearPendingImageAttachments() ordering to run after sendRequest(), ensuring the pending image registry is available during variable resolution
sdirix
approved these changes
Feb 23, 2026
Member
sdirix
left a comment
There was a problem hiding this comment.
Works for me! I only have minor comments
packages/ai-chat-ui/src/browser/chat-tree-view/chat-view-tree-widget.tsx
Show resolved
Hide resolved
2562e6d to
dbc44be
Compare
sdirix
approved these changes
Feb 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Render image thumbnails in chat request nodes for both attachment-flow images (from context variables) and paste-flow images (inline #imageContext variable parts).
How to test
On Master:
Paste an image into the chat and see that the llm does not get the image.
With the fix, the llm gets the pasted image and we now render it also in the tree view.
All pasted images are shown in line where they were pasted.
All images added via context are shown grouped at the end of the message.
Follow-ups
We need to discuss how we want to handle images especially images in the context. To my understanding files in the context aren't directly send to the llm but just offered in a list that they are there. Images behave now different.
Breaking changes
Attribution
Review checklist
nlsservice (for details, please see the Internationalization/Localization section in the Coding Guidelines)Reminder for reviewers