Fix remote image viewing and better previews in threads - #406
Merged
Merged
Conversation
Load Markdown file images from the attached host and resolve relative paths against the thread working directory. Use the same source for standalone rendering, inline rendering and intrinsic measurement. Configure native HTTP(S) loading with certificate roots that work on Android. Limit standalone images to 240 logical pixels high while preserving their aspect ratio. Add a focused host-loading regression and document the image contract. Select the existing ring provider explicitly in the TLS proxy test so it continues to run with the HTTP adapter's combined Rustls features. (cherry picked from commit f4b335a)
(cherry picked from commit 02c9dfb)
(cherry picked from commit ff2eeab)
(cherry picked from commit 791e0ff)
Tryanks
force-pushed
the
pr/agent-thread-images
branch
from
September 11, 2026 05:40
fb8f2f7 to
8c347d5
Compare
Tryanks
enabled auto-merge (squash)
September 11, 2026 05:40
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.
Images in agent replies could fail to appear when viewing a thread from another device. Tcode was looking for those files on the viewing device instead of the machine running the thread. It now reads them from that machine and uses the thread’s working folder to find files whose paths do not include a full location.
Web images still load on the viewing device, using the new reqwest library. Images stored on the machine running the thread use Tcode’s existing file reader.
Images fit within the available space and open in a larger viewer when clicked. Images that link somewhere still open their link. Links to image files get a preview button, and the image only loads when you open it. You can reach and open images with the keyboard. While the viewer is open, keyboard navigation stays inside it and returns to the original control when it closes.
The new test covers different file locations, previews loading only when opened, and keyboard navigation into and out of the image viewer.
Implemented with GPT-6 Astra in Tcode