Skip to content

The agent that grows with you

fix(desktop): keep macOS HUD visible when inactive (#102573)

Gille153da9569fd9
diff --git a/apps/desktop/electron/hud-overlay.test.ts b/apps/desktop/electron/hud-overlay.test.ts
index 351a2a741a3..b08f04412dc 100644
--- a/apps/desktop/electron/hud-overlay.test.ts
+++ b/apps/desktop/electron/hud-overlay.test.ts
@@ -4,7 +4,7 @@ import { test } from 'vitest'
import { applyHudElectronOverlay } from './hud-overlay'
-test('macOS uses the floating panel level and all-spaces visibility', () => {
+test('macOS uses the floating window level and all-spaces visibility', () => {
const calls: string[] = []
const win = {
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index 56342dfb5c2..b2f47f6a0d1 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -14210,13 +14210,12 @@ function spawnHudWindow(sessionId, profile) {
minimizable: false,
maximizable: false,
fullscreenable: false,
- // Same rationale as the pet overlay: on Windows/Linux keep the helper out
- // of the taskbar/alt-tab list; on macOS use an NSPanel so the frameless
- // window never becomes the app's cmd-tab anchor.
+ // Keep the interactive macOS HUD as an ordinary NSWindow. NSPanel defaults
+ // hidesOnDeactivate to true, which removes the HUD while the user works in
+ // another app; the floating/all-spaces setup below supplies overlay behavior.
skipTaskbar: !IS_MAC,
hasShadow: false,
alwaysOnTop: true,
- type: IS_MAC ? 'panel' : undefined,
// Clips the vibrancy layer to the HUD's silhouette rather than a hard
// rectangle — the frost stops where the window's corners do.
roundedCorners: true,