Skip to content

Menu bar icon hidden when too many status bar items (notch overflow) #54

@Tomas2D

Description

@Tomas2D

Problem

The Clawdboard menu bar icon can be pushed behind the MacBook Pro notch when the user has many other status bar items. The icon renders correctly (confirmed via logs), but macOS hides it due to insufficient space.

This is especially likely because:

  1. The rendered dots image grows with active sessions — up to 8 dots (8px each + 4px spacing = ~100px) plus the optional usage ring (~20px)
  2. Unbundled executables (swift run) get lower menu bar placement priority than .app bundles
  3. MacBooks with notch have limited menu bar space on the left side

Repro

  1. Have a MacBook Pro with notch and many menu bar items
  2. Run mise run run (or swift run Clawdboard)
  3. The app starts, logs confirm the StatusBarWindow is created and the label is rendering, but the icon is not visible
  4. Close some other menu bar items → the icon appears

Possible solutions

  • Cap the maximum rendered image width or use a more compact representation (e.g., single icon with badge count instead of individual dots)
  • Use NSStatusBar.system.statusItem(withLength:) directly for more control over sizing
  • Investigate if setting LSUIElement at runtime helps unbundled binaries get proper menu bar priority
  • Add a fallback: if the icon width exceeds a threshold, collapse to a compact mode

Workarounds

  • Use the bundled version: scripts/bundle.sh && open .build/Clawdboard.app
  • Close some menu bar items to make space
  • Cmd-drag other icons to free up space near the notch

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