Skip to content

Edit files inline from the preview overlay - #1477

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/biscotti
Nov 25, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/biscotti

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

Files that can be edited now show a pencil button in the preview overlay's top bar on macOS and iOS. It switches the overlay to the editable source, and the eye button switches back to the rendered preview (or read-only source for code). Read-only, binary, oversized and attached files get no pencil.

  • The overlay now opens the same document tabs use, with viewing as a mode of the pane instead of a separate read-only copy, so edits share autosave, drafts and conflict detection with tabs.
  • Because it holds the live document, the overlay re-reads the file when opened and every 3 seconds, like tabs.
  • Tabs and the overlay share the "changed elsewhere" and error banners.

Verified in the macOS and iOS dev apps: editing markdown and Swift files from the overlay saves to disk, read-only files show no pencil, the pencil appears live when a file becomes writable, and tabs still edit as before.

🤖 Generated with Claude Code

Files that can be edited now show a pencil button in the preview
overlay's top bar on macOS and iOS. It switches the overlay to the
editable source, and the eye button switches back to the rendered
preview (or read-only source for code). Read-only, binary, oversized
and attached files get no pencil.

- The overlay now opens the same document tabs use, with viewing as a
  mode of the pane instead of a separate read-only copy, so edits share
  autosave, drafts and conflict detection with tabs.
- Because it holds the live document, the overlay re-reads the file when
  opened and every 3 seconds, like tabs.
- Tabs and the overlay share the "changed elsewhere" and error banners.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@dylanplayer
dylanplayer merged commit 498a658 into main Nov 25, 2026
@dylanplayer
dylanplayer deleted the codevisor/biscotti branch November 25, 2026 22:52
dylanplayer added a commit that referenced this pull request Nov 26, 2026
…d-only copy (#1486)

#1477 made the overlay open the same document tabs use, in a viewing mode,
so the document reports the machine's writability and the pane decides
whether it can be edited. The lightbox test still expected the document
itself to be read-only, which failed every Build on main since.

The overlay now has two tests: a writable file opens read-only, the pencil
makes it editable and the eye turns it back; a file the machine won't let
you edit gets no pencil. Each fixture uses its own machine id so the shared
document store doesn't hand one test another's document.

Co-authored-by: Claude Opus 5.5 <[email protected]>
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