Repository navigation
Fix NSStatusItem not rendering on macOS Tahoe (26.x) - #147
Merged
Merged
Conversation
On macOS 26.4+, accessory apps may fail to render their status item if the activation policy is set to .accessory before the status item is created and populated. The status item draw code executes but nothing appears in the menu bar. Workaround: 1. Start as .regular app and call activate() to ensure window server registration 2. Set a simple SF Symbol image immediately on the status button 3. Defer the attributed title setup to ensure initial render completes 4. Switch to .accessory policy after setup to hide from Dock Fixes #146
pull Bot
referenced
this pull request
in TheTechOddBug/codeburn
Aug 10, 2026
…ition Test build for getagentseal#868. Keeps the activation policy pinned at .accessory (LSUIElement makes the :92-96 call a no-op in packaged builds anyway) and restores only the NSApp.activate(ignoringOtherApps: true) half of the #147 fix, immediately before the status item is created.
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.
Summary
.regularapp, activate, set simple image first, then switch to.accessoryProblem
On macOS 26.4.1 Tahoe, the status item draw code executes but nothing renders in the menu bar. The app process runs, no crashes, but the icon is invisible.
Solution
.regularapp and callactivate()to ensure window server registration.accessorypolicy after setup to hide from DockTest plan
Fixes #146
🤖 Generated with Claude Code