Skip to content

Click an image in a thread to view it full size - #107

Merged
currentbits merged 2 commits into
mainfrom
coder/click-an-image-in-a-thread-to-view-it-fu-29e74a
Aug 16, 2026
Merged

currentbits merged 2 commits into
mainfrom
coder/click-an-image-in-a-thread-to-view-it-fu-29e74a

Conversation

@currentbits

Copy link
Copy Markdown
Owner

Fixes #78.

Images in a thread — tool output screenshots, attachment thumbnails, markdown images — rendered at a constrained size with no way to inspect them. This adds a lightbox.

What changed

  • One delegated handler on the thread body (ThreadView.tsx): any <img> in the timeline opens the lightbox, so new image sources need no extra wiring. That covers tool output, user-message attachment thumbs and markdown images in a single place instead of a click handler per call site.
  • ImageLightbox: overlay showing the image; clicking it toggles fit-to-window ↔ native resolution (the overlay scrolls when zoomed). Dismissible via Escape (reusing the existing useEscapeClose hook), the backdrop, or the close button.
  • Keyboard + affordances: thread images get tabIndex={0} and cursor: zoom-in, and the body's onKeyDown opens the lightbox on Enter/Space so it isn't mouse-only.

Notes

  • Zoom controls and reveal-in-Finder/copy (the issue's nice-to-haves) are skipped: tool images reach the renderer as data URLs with no path on disk, so "reveal" would need a new IPC channel.
  • Composer thumbnails (pre-send) are unchanged; the issue is scoped to images already in a thread.

Verification

  • tsc --noEmit clean.

  • Renderer suite: 682/682 pass, including a new test in test/threadView.test.tsx that clicks a tool image, asserts the lightbox renders that source, and asserts Escape dismisses it.

  • PR created by the Claude Code agent

Willem and others added 2 commits August 16, 2026 13:50
… Planboard: let agents write their plan steps directly, not o
Delegated click on the thread body: any <img> in the timeline — tool
output, attachment thumbnails, markdown — opens a lightbox. Clicking the
image toggles fit-to-window / native resolution; backdrop, close button
and Escape dismiss.

Co-Authored-By: Claude Opus 5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@currentbits
currentbits merged commit 1e0b51e into main Aug 16, 2026
1 check passed
@currentbits
currentbits deleted the coder/click-an-image-in-a-thread-to-view-it-fu-29e74a branch October 3, 2026 16:07
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.

Click an image in a thread to view it full-size

1 participant