Skip to content

AgentMenu 1.4.0

Choose a tag to compare

@nisarganag nisarganag released this 25 Aug 18:08
· 4 commits to main since this release

Notification sounds, real switches, a Liquid Glass Preferences panel — and Preferences is now a page of the popover rather than a window of its own.

Notification sounds

A Play sound toggle in Preferences, on by default.

It uses UNNotificationSound.default rather than a named system sound, because a named sound that is missing at runtime delivers silently — indistinguishable from the toggle not working. The osascript fallback path carries the setting too (sound name "Ping", present on every install); without that, sound would have been a coin-flip on whichever delivery route happened to be taken.

Deliberately not .defaultCritical, which would pierce Do Not Disturb. That is not a decision a menu bar app should make on your behalf. Focus and DND still apply, and the panel says so inline rather than leaving you to wonder why a setting you turned on made no noise.

Preferences: switches, glass, and no more separate window

Every control is a switch instead of a checkbox. .toggleStyle(.switch) is applied once at the root, so a control added later cannot quietly come back as a checkbox — which is AppKit's default and what all nine of these were.

Sections are Liquid Glass cards on macOS 26+, grouped in a GlassEffectContainer so the system blends them as one optical unit. Applied individually they are just separate frosted rectangles. The app still deploys to macOS 14, so every use is behind #available; the fallback is a real material card, not a no-op — without a background the sections lose their grouping entirely, and "looks plainer" is a fine degradation where "reads as one undifferentiated column of switches" is not.

Preferences now lives inside the popover. The separate NSWindow is deleted rather than hidden: showPreferences(), preferencesWindow, 45 lines of window setup, and the behind-window blur that only existed because it was a window. NSPopover already supplies the pane, and blurring an already-blurred surface reads as muddy rather than layered.

The header morphs instead of stacking a second bar — metrics and gear on the agent pages, "‹ Back" and PREFERENCES in settings. A second chrome row would read as a dialog inside a dialog. Cost figures are dropped from the settings bar on purpose: leaving them up while you edit a burn budget invites reading one as a preview of the other.

Settings state resets each time the popover opens. Opening the menu bar icon must always land on the agents, or it would silently defeat the attention routing that chooses which agent page to open on.

Three defects found by screenshotting the build

None were visible to the compiler or to 259 passing tests:

  1. The Preferences window collapsed to a bare 64pt titlebar, every control unreachable. NSHostingController publishes the SwiftUI content's size as preferredContentSize, and a ScrollView root reports a minimal height; the window obeyed. (Moot now that the window is gone, but it is why the ScrollView is sized the way it is.)
  2. Cards shrink-wrapped their own longest row, so section widths visibly jumped down the column.
  3. The titlebar rendered as a solid light strip above the dark panel.

Scroll indicators are .never, not .hidden — .hidden is advisory and is overridden by "Show scroll bars: Always" in System Settings, the same trap already documented for the agent pages.

Why your notifications say "Script Editor"

Investigated properly rather than guessed at, and now recorded under Known limitations.

macOS refuses an ad-hoc-signed app permission to use UNUserNotificationCenter at all:

UNErrorDomain Code=1 "Notifications are not allowed for this application"
granted=false

So AgentMenu falls back to osascript, whose display notification posts under Script Editor's identity. The app never appears in ~/Library/Preferences/com.apple.ncprefs.plist, which is why it never shows up in System Settings to be allowed in the first place.

Ruled out by testing rather than assumption: install location (same from /Applications), LaunchServices registration (same after lsregister -f), and launch path (same via open -a as when exec'd directly). The remaining variable is the ad-hoc signature, which cannot be confirmed without a Developer ID to test against — so signing is stated as the fix, not as a proven diagnosis.

The banners themselves are correct and carry sound. Only the name and icon in the header are wrong.

Still known to overstate

Sonnet 5 is priced at list ($3/$15) while its introductory rate ($2/$10) runs until 2026-08-31. That is roughly 5.5% high until then and exactly right afterwards. It is left at list so figures do not under-report once the intro lapses.

259 tests pass.


Install: download AgentMenu-1.4.0.dmg, open it, drag to Applications. Ad-hoc signed and not notarised, so macOS blocks the first launch — the README covers three ways past that.