Repository navigation
fix(native): keep apps that turn Accessibility off visible on macOS 27 - #520
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Root cause (#502)
Little Snitch turns Accessibility off for its apps. Its agent (
at.obdev.littlesnitch.agent) answers with onlyAXFrame,AXSize,AXPosition(noAXRole), andAXExtrasMenuBarreturnskAXErrorNoValue(-25212).AccessibilityMenuBarInventory.readturned 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:
AXRole; Finder and others return -25212 for extras but list a roleat.obdev.littlesnitch.agent(probe, no Hidden Bar)at.obdev.littlesnitchhides it, so macOS matches the agent's bundle id fineFix
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.VM check (Release-Direct, Developer ID W777S7V8TN, installed with
scripts/install-local.sh --app)#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.