Skip to content

Open files in Codevisor's own lightbox instead of Quick Look - #1470

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/focaccia
Nov 24, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/focaccia

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

Why

Clicking an image in a chat on macOS sometimes showed Quick Look's "No items selected". The system Quick Look panel is shared, and it was claimed by whichever text view had focus (usually the composer), because clicking an image does not move focus.

What changed

Files now open in a viewer Codevisor owns, in place of Quick Look: an overlay over the window on macOS and a sheet on iOS. It is the existing file viewer in a read-only mode, so there is one viewer with two presentations (tab and lightbox).

  • What opens in it: images, video, markdown, code and documents, including attachments that have not been sent yet.
  • Paging: through the files of one message, or the composer's attachments.
  • Links to files: open in the lightbox. Command-click opens a tab. Right-click or long-press offers Preview, Open in New Tab, Download, Save As, Copy and Share.
  • Files with no useful preview (a zip, for example): clicking shows that menu instead.
  • Bot chats: they have no tabs, so Open in New Tab is not offered.
  • Zoom on macOS: pinch, double-click and smart magnify, with drag to pan.
  • Download on macOS: progress and result show in a native popover, on the lightbox's Download button or where the menu was opened. On iOS download is Save to Files.

Testing

  • bun run check passes, with new unit tests for file routing, menus, paging and preview kinds.
  • Tried in the macOS dev app: images, video, markdown, code, a zip, paging, zoom, menus, Command-click, download, and a bot chat.
  • Tried in the iOS simulator: chat images, a code link, the zip action list, video, composer photos paging, and Save to Files.

Not tried: PDFs, files on a remote machine, bot chats on iOS, and composer attachments in the running macOS app.

🤖 Generated with Claude Code

Clicking an image in a chat on macOS could show Quick Look's "No items
selected", because the shared system panel was claimed by whichever text
view had focus. Files now open in a viewer Codevisor owns: an overlay over
the window on macOS and a sheet on iOS. It is the file viewer in a
read-only mode, so images, video, markdown, code and documents all open in
it, and it pages through the files of one message or the composer.

- Links to files open in the lightbox; Command-click opens a tab, and
  right-click or long-press offers Preview, Open in New Tab, Download,
  Save As, Copy and Share.
- Files with no useful preview show that menu on click instead.
- Bot chats have no tabs, so they never offer Open in New Tab.
- Images zoom by pinch, double-click and smart magnify, and pan by drag.
- Download on macOS shows its progress and result in a popover, on the
  lightbox's Download button or where the menu was opened.
- Attachments that have not been sent yet can be previewed too.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@dylanplayer
dylanplayer merged commit 627cc56 into main Nov 24, 2026
@dylanplayer
dylanplayer deleted the codevisor/focaccia branch November 24, 2026 04:10
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