Repository navigation
Keep the macOS inspector closed unless the user opens it (851-4454) - #1450
Merged
Merged
Conversation
The inspector could open by itself, for example while the pane menu was open to close a split: SwiftUI reported the column as expanded through the inspector binding, and the binding saved that as the setting. The saved setting is now the only source of truth. Only the toggle (toolbar, View menu, Option-Command-B) and the command palette open the inspector. A column that expands on its own is not saved and is collapsed back. Dragging the divider closed still saves it closed. SwiftUI's late reports of the toggle's own changes are compared against the live setting, not a value captured in an earlier render. Co-Authored-By: Claude Opus 5.5 <[email protected]>
dylanplayer
added a commit
that referenced
this pull request
Nov 25, 2026
Grabbing the right edge of the window opened the inspector and snapped it shut again, even without moving the mouse: SavedInspector treated the column reporting itself open as unrequested and forced it closed. The inspector binding is back to the plain .inspector(isPresented:) it used before #1450, so the column opens, closes, and is dragged the way macOS does it, and whatever it reports is saved. 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.
The macOS inspector could open by itself, for example while the pane's ••• menu was open to close a split. SwiftUI reported the inspector column as expanded through the
.inspectorbinding, and the binding saved that as the setting (851-4454).The saved setting is now the only source of truth:
SavedInspector/SavedInspectorColumnin CodevisorUI own the column binding;SavedInspectorColumnTestscovers drag-close, an unrequested expand, and late reports.Tophatted in the dev app: split → ••• → Close repeatedly in wide and narrow windows (inspector stays closed), toolbar / ⌥⌘B / palette still open it, AppKit-initiated expands collapse back, divider drag closes and saves.
🤖 Generated with Claude Code