Skip to content

Menu bar notifier badge stays on after extension *_alert is cleared (until app restart) #271

@rquigley-sk

Description

@rquigley-sk

Description

When Status bar notifier is enabled and an Extension uses a privileged OnAppearAction script that sets the extension’s *_alert preference to true and later back to false, the popover UI can show the extension as healthy (no tile alert) while the orange menu bar badge remains visible. Quitting and relaunching Support App clears the badge.

This suggests the notifier state on the status item is not refreshed when the extension script updates alert prefs, even though the SwiftUI extension view reflects the new values.

Environment

  • Support App: 3.0.2
  • macOS: 26.4
  • Configuration: StatusBarIconNotifierEnabled true, at least one Extension row with OnAppearAction as PrivilegedScript that writes <ExtensionID> and <ExtensionID>_alert to the Support App preference domain (same pattern as Root3’s extension / Jamf samples).

Steps to reproduce

  1. Install/configure Support App from a configuration profile with Menu bar notifier enabled and an Extension whose OnAppearAction runs as a privileged script.
  2. Use a script that, on one run, sets <ExtensionID>_alert to true (and a visible extension subtitle if you want), consistent with your documented samples.
  3. Open the Support App popover so OnAppearAction runs. Confirm the orange menu bar notifier appears and the extension shows an alert if configured.
  4. Change the machine state (or adjust the script / a test flag) so that on the next popover open the script sets <ExtensionID>_alert to false and updates the extension string accordingly.
  5. Open the popover again. Confirm the extension tile shows no alert / expected “clear” text.
  6. Without quitting Support App, check the menu bar icon: the orange notifier dot often remains.
  7. Quit Support App completely and reopen — the orange dot clears.

Note for maintainers: A minimal repro is any privileged OnAppear script that flips only <ExtensionID>_alert from truefalse between two popover opens; no product-specific integrations are required.

Expected behavior

When <ExtensionID>_alert becomes false, the menu bar notifier should update on the next popover open (or as soon as prefs reflect the change), consistent with the extension tile.

Actual behavior

The menu bar orange notifier remains until the app is restarted, even though the extension UI indicates the alert is cleared.

Additional notes

  • The issue appears tied to refresh of the status item, not whether the script wrote prefs correctly (prefs can show _alert false while the badge still shows).

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