Skip to content

Add a menu bar mode to the macOS app - #1518

Merged
dylanplayer merged 1 commit into
mainfrom
codevisor/tostada
Nov 28, 2026
Merged

dylanplayer merged 1 commit into
mainfrom
codevisor/tostada

Conversation

@dylanplayer

Copy link
Copy Markdown
Member

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:

  • no Dock icon and no window at launch
  • a Codevisor menu bar item with Open Codevisor, Settings…, and Quit
  • no chat notifications on that Mac

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

  • "Sandbox mode" is renamed to menu bar mode throughout.
  • Sandbox images now write CodevisorRunsInMenuBar. The old CodevisorRunsAsSandbox default still starts the mode, so images built before this keep working; switching the mode off clears it.
  • The menu bar icon is drawn from the mark sized at 18pt. The menu bar ignores font sizing on a symbol and drew it smaller than its neighbours.

Tested

In the dev app:

  • turning the switch on restarts with no Dock icon, no window, and the menu bar icon; Cancel changes nothing
  • in the mode, the main window and Settings open, and closing the window leaves the app running
  • turning it off restarts as a regular app with its window where it was
  • the old sandbox default alone still starts the mode, and switching off removes it
  • Swift lint and the sandbox image tests pass

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

  • The app does not open at login, so after a reboot screen sharing and computer use stay off until it is opened.
  • Update checks, connection recovery, and browser hosting still run from the main window, so they do not run while no window is open.

🤖 Generated with Claude Code

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]>
@dylanplayer
dylanplayer merged commit 4db60ec into main Nov 28, 2026
@dylanplayer
dylanplayer deleted the codevisor/tostada branch November 28, 2026 06:57
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