Skip to content

Accessibility calls on the main thread can stall the bar on a hung app #225

Closed

Description

@Seb-GRAF

What happens

Window clearance and the app-menu widgets make synchronous Accessibility calls on the main actor. When an app is hung, each call waits for its timeout, and the bar stops responding meanwhile.

  • Window clearance. Every app activation, launch or Space change schedules every running, unhidden app. adjustWindows then reads the window list and several attributes of each window. Each call can wait up to 0.1 s on a hung app, so an app with many windows adds up.
  • Opening an app menu. menuNeedsUpdate reads the title, enabled state, mark and children of every item, on the main thread. The 0.1 s timeout is set only on the app element. AXUIElementSetMessagingTimeout applies only to the element it is set on, so the menu items fall back to the global default of about 6 s per call.

Steps to reproduce

  1. Turn on Keep windows clear of StableBar, or add the app-menu widget.
  2. Make an app stop responding, for example by pausing it with kill -STOP <pid>.
  3. Switch apps, or open that app's menu from the bar.

Expected

The bar stays responsive. A hung app only delays its own windows or menu.

Environment

Found by reading the code on current main. No reporter environment.

Evidence

Read on main at 4160f7f. Not measured and not reproduced in a running app.

Diagnosis

Related

Triaged by Claude Code via T3 Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 22, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.6.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

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

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions