fix: overlay no longer transforms the app into an accessory process#516
Merged
Conversation
setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true }) flips the
whole app's macOS activation policy to UIElementApplication: the Dock
icon disappeared (electron#26350), the menu bar went with it, and the
main window stopped moving/focusing like a normal window
(electron#37487). Pass skipTransformProcessType (electron#27200) and
drop visibleOnFullScreen — the overlay keeps floating over normal
windows on all Spaces, just not above fullscreen Spaces, and the app
stays a normal windowed app.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This was referenced Jul 9, 2026
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 broke
Enabling the floating agent-status overlay made the whole app go weird: Dock icon vanished, menu bar gone, and the main window couldn't be moved or focused normally.
Root cause
setVisibleOnAllWorkspaces(true, { visibleOnFullScreen: true })on macOS transforms the entire app's activation policy betweenForegroundApplicationandUIElementApplication(accessory / LSUIElement). That single call on the overlay window demoted Agent Code itself to a background-accessory app:app.dock.show()can't reliably restore it — electron#26350Fix
Pass
skipTransformProcessType: true(electron#27200) and dropvisibleOnFullScreen. The overlay still floats above normal windows on every desktop/Space; the only loss is floating above fullscreen (green-button) Spaces. The app stays a normal windowed app — Dock icon, menu bar, movable main window. A loud comment now guards against reintroducingvisibleOnFullScreenwithout solving the transform side effect.Verification
tsc -b tsconfig.node.jsonclean (single main-process file changed)🤖 Generated with Claude Code