Skip to content

macOS 27: native hiding (assessment mode) blocks clock → Notification Center and hides Now Playing / privacy indicators while collapsed #437

Closed as not planned

Description

@fabioconte22

Environment

  • macOS 27.0 Golden Gate (26A428)
  • Hidden Bar 1.11.1, direct download build (NativeVisibilityEngine)

Summary

On macOS 27 the direct build hides icons through MBAssessmentModeAssertion from the private MenuBarClientCore framework (the menu-bar part of assessment/exam mode). While that assertion is active (arrow collapsed), macOS also applies other assessment-mode restrictions that Hidden Bar cannot opt out of:

While collapsed Result
Clicking the clock to open Notification Center ❌ Nothing happens (the clock stays visible but inert)
Notification Center via two-finger swipe from the trackpad edge ✅ Works
Now Playing, Live Activities ❌ Hidden
Microphone-in-use and screen-recording indicators ❌ Hidden
Control Center, Wi-Fi, Bluetooth, Sound, Apple menu, app menus, Spotlight/screenshot shortcuts ✅ Work

Expanding the arrow releases the assertion and everything is back to normal.

Steps to reproduce

  1. macOS 27, direct build, Accessibility permission granted.
  2. Start playing music (e.g. Spotify) so Now Playing appears in the menu bar.
  3. Collapse the arrow.
  4. Click the clock → Notification Center does not open. Now Playing is gone.

Why this looks like an OS-level policy, not a Hidden Bar bug

MBAssessmentModeConfiguration only exposes allowedSystemItems and allowedBundleIdentifiers (checked via the ObjC runtime on 27.0), so there is no option for Notification Center or activity indicators.

I wrote a standalone test program that calls activateWithConfiguration:completionHandler: directly (8 s each, then invalidate), with Now Playing visible via Spotify:

# allowedSystemItems allowedBundleIdentifiers Now Playing
1 0..<64 (as Hidden Bar) none hidden
2 0..<64 com.apple.controlcenter, com.apple.MenuBarAgent, com.apple.systemuiserver hidden
3 0..<1024 none hidden
4 0..<1024 the three system bundles above hidden
5 0..<64 com.spotify.client hidden
6 0..<1024 system bundles + every running app hidden (all other icons stay visible)

No errors were returned. Even with everything allowed (test 6), Now Playing is hidden, so macOS removes it as part of assessment mode no matter what the allow-list says.

Minimal repro (Objective-C)
dlopen("/System/Library/PrivateFrameworks/MenuBarClientCore.framework/MenuBarClientCore", RTLD_NOW);
id config = ((id (*)(id, SEL, NSArray *, NSArray *))objc_msgSend)(
    [NSClassFromString(@"MBAssessmentModeConfiguration") alloc],
    @selector(initWithAllowedSystemItems:allowedBundleIdentifiers:),
    systemItems, bundleIdentifiers);
id assertion = [[NSClassFromString(@"MBAssessmentModeAssertion") alloc] init];
((void (*)(id, SEL, id, void (^)(NSError *)))objc_msgSend)(
    assertion, @selector(activateWithConfiguration:completionHandler:), config,
    ^(NSError *error) { /* active: observe the menu bar, then call -invalidate */ });

Impact

  • The microphone and screen-recording indicators are privacy features. Hiding them while collapsed means users can't tell whether something is recording them.
  • Clicking the clock to open Notification Center is a common action and fails silently.

Possible directions

  • Document these limitations in the manual / release notes for macOS 27.
  • Look for a mechanism other than assessment mode. MenuBarClientCore also contains VisibilityRestrictionAssertion (it has an allowList ivar and MBAssessmentModeAssertion seems to wrap an assertion), but it is a Swift-only class with no usable ObjC API, so I could not test it.

Activity

  1. khallmark commented on Sep 26, 2026

    @khallmark
    Contributor

    Found this same issue. Wonder if Opus can fix it. Just gave it access to Ghidra.

  2. khallmark commented on Sep 26, 2026

    @khallmark
    Contributor

    Thanks for the detailed report and the repro. It made this quick to confirm. I reproduced it on 27.0 (26A428) and looked at what MenuBarAgent does with the request.

    Why there's no opt-out. MBAssessmentModeAssertion sends acquireAssertionWithID:origin:allowedSystemItems:allowedBundleIdentifiers: to MenuBarAgent (com.apple.MenuBarAgent.visibility-restriction) with origin 1 (assessmentMode). MenuBarAgent combines the origins of all live restrictions and applies the matching mode on top of the allow-list. I sent the same allow-list under the other two origins it knows:

    origin result
    0 userSessionTransition accepted, but the allow-list is ignored and nothing hides
    1 assessmentMode hides as expected, with the side effects you listed
    2 campoDrag rejected (VisibilityRestrictionError.activation)

    So no origin gives the allow-list without assessment mode. Your test 6 already shows that no allow-list keeps Now Playing. For the record, 0..<64 resolves to just 9 named system items: battery, bluetooth, clock, displays, keyboard, volume, wifi, screenMirroring, primaryBentoBox. The clock is owned by MenuBarAgent and exposes no Accessibility actions, so it can't be pressed on the user's behalf either.

    On the privacy indicators, a refinement. While collapsed, the menu-bar capsule that names the recording app is hidden. In my test that was the orange mic capsule. The small colored dot in the top-right corner of the screen stayed visible (orange for the mic, green for the camera).

    Proposed fix (not in a release yet):

    • While any app uses the microphone or a camera, Hidden Bar holds no restriction, so the whole bar, including the capsule, shows. Hiding resumes when capture stops. Detection uses public CoreAudio per-process "is running input" and CoreMediaIO "running somewhere". It doesn't request mic or camera permission: a hardened test app with no mic permission and no audio-input entitlement still detected a Voice Memos recording, with no prompt. Screen recording has no public signal, so it isn't covered.
    • The manual and changelog now document what goes missing while collapsed on macOS 27 (Now Playing, Live Activities, clock → Notification Center). For Notification Center, use the two-finger trackpad swipe, or expand first.

    If Apple adds a non-assessment origin or a public API, native hiding can switch to it.

  3. khallmark commented on Sep 26, 2026

    @khallmark
    Contributor

    Honestly I think this is a bug we should report to Apple.

  4. fabioconte22 commented on Sep 26, 2026

    @fabioconte22
    Author

    Honestly I think this is a bug we should report to Apple.

    I agree

  5. khallmark commented on Sep 26, 2026

    @khallmark
    Contributor

    Reported to apple with id FB24954202

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions