Repository navigation
Add a menu bar mode to the macOS app - #1518
Merged
Merged
Conversation
General settings has a "Menu bar mode" switch for a Mac that is only used from other devices. It is the mode sandbox images already ran in: no Dock icon, no window at launch, no chat notifications, and a menu bar item that opens the window, Settings, or quits. Switching it asks first and restarts the app, because the mode picks which app definition runs. "Sandbox mode" is renamed to menu bar mode, and sandbox images now turn on the same CodevisorRunsInMenuBar default. The old CodevisorRunsAsSandbox default still starts the mode, so images built before this keep working, and switching the mode off clears it. The menu bar icon is drawn from a mark sized at 18pt, since the menu bar ignores font sizing on a symbol and drew it smaller than its neighbours. Co-Authored-By: Claude Fable 5.2 <[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.
What
General settings gets a "Menu bar mode" switch, for a Mac that is only used from other devices.
It is the mode macOS sandbox images already ran in, now under one name:
Switching it asks first and restarts the app, because the mode decides which app definition runs. A menu bar item in the regular app definition stops macOS saving the main window's frame, so the two definitions stay separate.
Details
CodevisorRunsInMenuBar. The oldCodevisorRunsAsSandboxdefault still starts the mode, so images built before this keep working; switching the mode off clears it.Tested
In the dev app:
Not exercised: clicking the menu bar item's menu (unchanged apart from the rename), and notification suppression (the dev app has no notification permission; same check as before).
Not in this change
🤖 Generated with Claude Code