Repository navigation
Edit files inline from the preview overlay - #1477
Merged
Merged
Conversation
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
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]>
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.
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.
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