## Why
Composer thumbnails and transcript tool previews read and decoded files
during rendering. A JPEG whose decoded pixels exceeded the 32 MiB
allocation budget could lose its preview even when the encoded file fit
within the file size limit.
## What changed
- Load visible composer thumbnails and transcript previews on background
workers and request a redraw when the result is ready. Reuse prepared
tool previews when the viewport changes size.
- Share the sidebar's scaled JPEG fallback with composer and transcript
previews. Preserve the oriented source aspect ratio and enforce the
encoded file size limit separately from the decode budget.
- Check that the owning thread has a local workspace before reading an
inspected image. Generated artifacts can still load from the daemon host.
## Testing
Cover large JPEG previews in the composer and transcript, thumbnail
refresh after an attachment is replaced, text fallback for oversized
PNGs, and an inspected path shared by local and remote workspaces.
GitOrigin-RevId: f2c8948a9abaa2527932423224b6ebeda3e122ae
## Why
Markdown image references in assistant replies showed only their alt text,
so users had to open the referenced file to see the image.
## What changed
- Show previews in place of alt text in rich transcript views on supported
terminals, including in side conversations. For example,
`` can display the chart directly in the reply.
- Confirm that the conversation uses a local workspace before loading
visible images off the render thread. Keep alt text as the fallback
when a preview is unavailable, and preserve it for copying and Find.
## Testing
Add a transcript snapshot covering inline placement and fallback text,
plus tests for selection across previews, text-only Find layout, and
terminal image sizing.
GitOrigin-RevId: 6a3473d340b8771066d1f249f3d3363e1ca9f3bd