Skip to content

fix: recover app menus after temporary read failures - #121

Merged
Seb-GRAF merged 9 commits into
mainfrom
fix/120-menu-recovery
Oct 20, 2026
Merged

Seb-GRAF merged 9 commits into
mainfrom
fix/120-menu-recovery

Conversation

@Seb-GRAF

Copy link
Copy Markdown
Collaborator

Problem

A failed Accessibility read clears both App menus and Apple menu, and they stay empty until another app switch or hover. This can happen while an app is resuming after unlock. Fixes #120.

Changes

  • Keep the last complete menu list when reading the menu bar, its children or a title fails. Retry after delays of 250 ms, 500 ms, 1 s and 2 s, stopping on success. A successful empty list still clears the widgets.
  • Cancel pending retries when reading a newer app or disabling the widgets. Recheck Accessibility access during recovery, and prevent retained menus from opening commands in the previous app while the new app's menus are unavailable.
  • Refresh from the frontmost app on wake, session activation and com.apple.screenIsUnlocked; stop retries and remove observers when the store stops.
  • Update the README's App menus section. No configuration properties changed, so decoding/schema, layers, editing and examples need no changes.

Testing

  • 12 focused tests pass, including the new recovery cases and existing native rendering checks. Coverage includes menu-bar, children and partial-title read failures; failure on the first read; switching apps while retrying; disabling widgets; permission revocation; a successful empty menu; and the four-retry limit.
  • Restored the previous read-and-clear behavior temporarily with the same test inputs: both recovery tests failed, including all three failed-attribute cases. Restored the fix and reran the focused checks successfully.
  • Release app build, codesign --verify --deep --strict, commit message lint and git diff --check passed.
  • Screenshots omitted at the maintainer's request. The app was not launched; a real lock/unlock cycle, menu interaction and macOS 14/15 remain unverified. The unlock notification name was confirmed in the local macOS loginwindow binary, but it is not a public AppKit notification. Automatic retries are bounded; a longer failure waits for another app switch, hover, wake or unlock refresh.

Merging

Merge commit or rebase merge. This branch contains one fix: commit.

GPT-6 Astra via Codex in T3 Code.

albucci and others added 9 commits October 20, 2026 10:49
GlassBackground switched between two view branches whenever a widget's
background appeared or disappeared, such as when the pointer left a widget
with a hover background or its popup's open state set one. With Liquid
Glass on, SwiftUI rebuilt the widget, dismantled its popup anchor and
closed the popup. Glass now keeps one view structure and uses the identity
glass while the color is transparent.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
fix: keep a clicked popup open when glass draws behind its widget
fix: keep new beta releases in order on GitHub
@Seb-GRAF
Seb-GRAF requested a review from M4n0x as a code owner October 20, 2026 11:14
@Seb-GRAF
Seb-GRAF merged commit 961bdb2 into main Oct 20, 2026
4 checks passed
@Seb-GRAF
Seb-GRAF deleted the fix/120-menu-recovery branch October 20, 2026 11:20
Seb-GRAF added a commit that referenced this pull request Oct 20, 2026
fix: recover app menus after temporary read failures
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.

App menus and Apple menu intermittently disappear

2 participants