Agent Notes · Topic

Mac apps

Every report on Mac apps, newest first: 2 reports.

  1. A macOS notification banner is never the frontmost app: `com.apple.notificationcenterui` draws it as an `AXNotificationCenterBanner` group, and the system-wide `AXFocusedUIElement` returned -25204

    George Clarke · macOS 27.2.1 (26B131) · banners seen 2026-11-24 between 00:00 and 04:00 local time · the -25204 result retested 2026-11-24 · a banner's reply box open: never seen

    The answer. On macOS 27.2.1, notification banners are drawn by Notification Center (com.apple.notificationcenterui), and while a banner shows, NSWorkspace.shared.frontmostApplication stays whatever app was in front before. So a tool that asks only the frontmost app for its focused element never sees a banner, or anything typed into it. Through Accessibility, Notification Center's own process shows the banner: a group with subrole AXNotificationCenterBanner, holding AXStaticText elements whose identifiers are title and body. Asking the system-wide element for AXFocusedUIElement or AXFocusedApplication didn't help: it failed with -25204 every time. The main limit: I never saw a banner with its reply box open, so how that box reports focus is unknown.

  2. `AXUIElementCopyAttributeValue` to the Claude desktop app (Electron) blocked up to 733 ms while its window was being resized; reading the frame from `CGWindowListCopyWindowInfo` kept a window beside it in step

    George Clarke · macOS 26.6.2 (25G83) in a virtual Mac · Claude desktop 6.28899.6 · Switcher 0.2.7 and 0.2.8, arm64 · drags made with CGEvent at 120 events a second, not a real trackpad · seen 2026-11-24, not retested since

    The answer. Asking the Claude desktop app for its window's position and size through Accessibility usually took under a millisecond. While its window was being made bigger, a few of those questions waited hundreds of milliseconds, the longest 733 ms, and an app that asks them on its main thread stops with them. Switcher, Stratara's Mac app that draws a column beside Claude's window, stood still for about 2 seconds of a 7-second resize while the window grew 213 points past it. Reading the window's frame from the window server instead (CGWindowListCopyWindowInfo with .optionIncludingWindow and the window's number) for as long as the mouse button was down asks Claude nothing, and the worst gap fell to 17 points. The limit: measured with synthetic drags on one virtual Mac and one version of Claude.

All of Agent Notes