Skip to content

fix: overlay no longer transforms the app into an accessory process#516

Merged
Juliusolsson05 merged 1 commit into
mainfrom
fix/overlay-dock-icon
Jul 9, 2026
Merged

fix: overlay no longer transforms the app into an accessory process#516
Juliusolsson05 merged 1 commit into
mainfrom
fix/overlay-dock-icon

Conversation

@Juliusolsson05

Copy link
Copy Markdown
Owner

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 between ForegroundApplication and UIElementApplication (accessory / LSUIElement). That single call on the overlay window demoted Agent Code itself to a background-accessory app:

  • Dock icon disappears and app.dock.show() can't reliably restore it — electron#26350
  • Overlay windows corrupting app state via this transform — electron#37487

Fix

Pass skipTransformProcessType: true (electron#27200) and drop visibleOnFullScreen. 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 reintroducing visibleOnFullScreen without solving the transform side effect.

Verification

  • tsc -b tsconfig.node.json clean (single main-process file changed)
  • Behavior fix is macOS-runtime-only — please confirm in the live app: toggle the overlay on, check the Dock icon stays and the main window drags normally.

🤖 Generated with Claude Code

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>
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