Skip to content

fix(native): keep apps that turn Accessibility off visible on macOS 27 - #520

Merged
tieubao merged 1 commit into
developfrom
fix/third-party-visible
Nov 16, 2026
Merged

tieubao merged 1 commit into
developfrom
fix/third-party-visible

Conversation

@tieubao

@tieubao tieubao commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

Root cause (#502)

Little Snitch turns Accessibility off for its apps. Its agent (at.obdev.littlesnitch.agent) answers with only AXFrame, AXSize, AXPosition (no AXRole), and AXExtrasMenuBar returns kAXErrorNoValue (-25212). AccessibilityMenuBarInventory.read turned that into "no items", so the agent was never in the allow list and macOS 27 hid its icon on every collapse, wherever it sat. It only showed when the agent started after Hidden Bar (the launch path allows apps it has not read yet), which is why it looked random.

Evidence, mac-ui VM, macOS 27.2.1, Hidden Bar 1.13.0:

check result
AX attribute names, every running app only Little Snitch and its agent lack AXRole; Finder and others return -25212 for extras but list a role
1.13.0 log at collapse, agent running, icon right of the arrow agent absent from both visible and hidden lists; icon hidden
assessment hold allowing at.obdev.littlesnitch.agent (probe, no Hidden Bar) icon stays; allowing nothing or only at.obdev.littlesnitch hides it, so macOS matches the agent's bundle id fine

Fix

An app element that lists attributes but no role is read as refusing Accessibility (AppRead.refused, not re-read) and gets the same unreadable item an app that never answers gets: it counts visible. Its position is unknown, so it no longer hides by position; with pinned sections (default on) Settings > Icons can set it Hidden.

Tests

  • AccessibilityInventoryRetryTests: a refusing app is kept visible without a re-read; only a role-less attribute list counts as a refusal.
  • PinnedSectionsTests.testAnUnplaceableAppShowsUntilPinnedHidden.
  • Full suite in the VM after rebasing on develop: 674 passed (direct), 440 passed (App Store), 0 failed. Negative control (classifier forced to false): 1 failure.

VM check (Release-Direct, Developer ID W777S7V8TN, installed with scripts/install-local.sh --app)

  • Little Snitch, Shifty, Lunar, f.lux right of the arrow: all stay visible on collapse (1.13.0 hid Little Snitch).
  • Arrow moved right of them: Shifty, Lunar, f.lux hide; Little Snitch hides once set to Hidden in Settings > Icons.

#514

Not reproduced: Shifty, Lunar and f.lux all have normal Accessibility and stay visible right of the arrow on 1.13.0. The reporter's app is unknown; if it also turns Accessibility off, this fixes it.

Little Snitch and its agent answer Accessibility with a frame and no role,
so AXExtrasMenuBar returns no value and the inventory dropped them. The
agent was never in the allow list and macOS hid its icon on every collapse,
wherever it sat (#502). An app element that lists attributes but no role is
now read as refusing Accessibility and kept visible, like an app that never
answers; Settings > Icons can still pin it hidden.

Measured in the mac-ui VM on 27.2.1: an assessment hold that allows
at.obdev.littlesnitch.agent keeps its icon, so the bundle matching works;
only the read was missing it.
@tieubao
tieubao merged commit 52ce204 into develop Nov 16, 2026
3 checks passed
@tieubao
tieubao deleted the fix/third-party-visible branch November 16, 2026 13:35
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