Skip to content

The agent that grows with you

fix(desktop): correct Quick Entry shadow artifacts on macOS

Brooklyn Nicholson13b9feea33ac
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index 049a2cb2aa5..56fe2a551b1 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -14154,7 +14154,14 @@ function spawnQuickEntryWindow() {
// of the taskbar/alt-tab list; on macOS use an NSPanel so the frameless
// capture window never becomes the app's cmd-tab anchor.
skipTaskbar: !IS_MAC,
- hasShadow: true,
+ // macOS derives a transparent window's native shadow from its alpha
+ // content, but the boot HTML paints an OPAQUE background before the
+ // renderer forces transparency (quick-entry-root.tsx) — the OS then
+ // caches a full-frame shadow that renders as a stray detached blur blob
+ // behind the card (#99172). The card draws its own CSS box-shadow, so the
+ // native one only double-paints; the other transparent overlays (pet,
+ // HUD) already run shadowless. Other platforms keep it.
+ hasShadow: !IS_MAC,
alwaysOnTop: true,
type: IS_MAC ? 'panel' : undefined,
hiddenInMissionControl: IS_MAC,
diff --git a/apps/desktop/src/app/quick-entry/quick-entry-app.tsx b/apps/desktop/src/app/quick-entry/quick-entry-app.tsx
index 62442840c81..7f99e8b7fb8 100644
--- a/apps/desktop/src/app/quick-entry/quick-entry-app.tsx
+++ b/apps/desktop/src/app/quick-entry/quick-entry-app.tsx
@@ -89,7 +89,11 @@ export function QuickEntryApp() {
background: 'var(--ui-bg-elevated, var(--background))',
border: '1px solid var(--ui-stroke-secondary, rgba(127,127,127,0.35))',
borderRadius: 12,
- boxShadow: '0 18px 48px rgba(0,0,0,0.38)',
+ // Shadow budget is capped by the 12px transparent padding around the
+ // card: extent (offset + blur) beyond 12px gets clipped by the fixed
+ // 640x168 window bounds, slicing the gradient into a hard edge.
+ // 2 + 8 = 10px stays inside the padding and fades out cleanly.
+ boxShadow: '0 2px 8px rgba(0,0,0,0.22)',
display: 'flex',
flexDirection: 'column',
gap: 8,