CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Opening Codex bar on the menu bar of my Mac causes a temporary freeze.

Open kiankyars opened this issue 5 months ago • 15 comments

I'm not sure if this is an issue with my Mac or others, but when I click on the Codex bar to see my overview in the menu bar on my Mac, it often freezes my computer for a few seconds. Has anybody else encountered this issue?

kiankyars avatar Jun 08 '26 22:06 kiankyars

Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed June 8, 2026, 6:51 PM ET / 22:51 UTC.

Summary Keep this open: current main has several unreleased menu performance fixes, but the fresh report lacks enough diagnostics to prove the temporary menu-click freeze is already fixed or to scope a narrow repair.

Reproducibility: no. The issue describes an intermittent freeze but does not include environment details or profiling data, and this read-only review did not run a live macOS UI reproduction.

Ways to help us reproduce this

  • Add a screenshot or short recording showing the behavior.
  • Add expected vs actual behavior.

Next step The item needs reporter diagnostics or maintainer profiling before a focused fix PR can be scoped safely.

Review details

Best possible solution:

Keep this open and ask for version, macOS/hardware details, enabled providers, whether Merge Icons/Overview is enabled, and a Time Profiler sample or spindump captured during the freeze; then fix the specific main-thread menu-open hotspot with focused state/model tests.

Do we have a high-confidence way to reproduce the issue?

No. The issue describes an intermittent freeze but does not include environment details or profiling data, and this read-only review did not run a live macOS UI reproduction.

Is this the best way to solve the issue?

Unclear. A narrow performance fix in the menu-open path is likely the right shape, but the current evidence is not enough to choose between menu layout caching, hosted view sizing, provider snapshot computation, or another main-thread hotspot.

AGENTS.md: found and applied where relevant.

Remaining risk / open question:

  • The report is fresh and user-visible, but source inspection cannot distinguish menu layout, SwiftUI hosted view sizing, provider/account display computation, stale release behavior, or system-specific AppKit behavior without local diagnostics.

Codex review notes: model gpt-5.5, reasoning high; reviewed against 100c8d3a90c7.

Label changes

Label changes:

  • add P2: A temporary UI freeze on menu open is a normal-priority availability/performance bug report with limited current evidence and no data-loss or security signal.
  • add impact:crash-loop: The issue is about a user-visible temporary hang in the macOS menu bar app when opening the menu.
  • add issue-rating: 🦪 silver shellfish: Current issue advisory state selects this label.
  • add clawsweeper:needs-info: Current issue advisory state selects this label.
  • add clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.
  • add clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.

Label justifications:

  • P2: A temporary UI freeze on menu open is a normal-priority availability/performance bug report with limited current evidence and no data-loss or security signal.
  • impact:crash-loop: The issue is about a user-visible temporary hang in the macOS menu bar app when opening the menu.
Evidence reviewed

What I checked:

  • issue report: The supplied issue body reports an intermittent freeze when opening the CodexBar menu, with no comments, version, macOS/hardware details, enabled providers, settings, logs, sample, or spindump included.
  • menu-open source path: menuWillOpen still does synchronous menu-open bookkeeping and calls refreshMenuForOpenIfNeeded before registering the menu as open and scheduling later refresh work, so a menu-open performance bug is plausible but not source-reproducible from this report alone. (Sources/CodexBar/StatusItemController+Menu.swift:75, 100c8d3a90c7)
  • current responsiveness safeguard: Menu tracking avoids prewarming the closed merged menu because doing a full main-thread populateMenu there can cause freezes; this confirms nearby performance work exists but addresses a specific closed-menu path rather than proving this report fixed. (Sources/CodexBar/StatusItemController+MenuTracking.swift:51, 100c8d3a90c7)
  • test coverage: Existing tests cover that opening a fresh menu does not start provider refresh work and that missing data defers automatic refresh until after menu tracking ends. (Tests/CodexBarTests/StatusMenuOpenRefreshTests.swift:8, 100c8d3a90c7)
  • release status: CHANGELOG.md lists menu performance fixes under 0.32.5 Unreleased, while the latest release in the prompt is v0.32.4; these fixes may help affected users but are not enough evidence to close this specific fresh issue as implemented. (CHANGELOG.md:3, 100c8d3a90c7)
  • history provenance: Recent history around the central menu files includes menu-readiness and hosted-chart performance fixes after v0.32.4, plus earlier merged-menu close/height-cache work. (Sources/CodexBar/StatusItemController+Menu.swift:75, 322c8f8c2d36)

Likely related people:

  • Peter Steinberger: Blame and log show recent menu-open readiness fixes, merge commits for related menu performance PRs, and the current-main formatting/changelog updates in the affected status controller area. (role: recent area contributor and merger; confidence: high; commits: 7e73b414ecc8, 322c8f8c2d36, c81a9f28c4f5; files: Sources/CodexBar/StatusItemController+Menu.swift, Sources/CodexBar/StatusItemController+MenuTracking.swift, CHANGELOG.md)
  • Yuxin Qiao: Recent commits changed root menu-open readiness handling, menu readiness signature cost, and hosted chart measurement in the same menu responsiveness surface. (role: recent performance contributor; confidence: high; commits: 37c8e8c82ee2, 8da0cfc2564a, b7744f2014d3; files: Sources/CodexBar/StatusItemController+Menu.swift, Sources/CodexBar/StatusItemController+MenuRefreshScheduling.swift, Tests/CodexBarTests/StatusMenuOpenRefreshTests.swift)
  • hhh2210: History shows menu-card height caching and closed merged-menu rebuild deferral work tied to prior menu freezes and latency in the affected menu tracking paths. (role: merged-menu performance contributor; confidence: high; commits: ef17fbd45d91, 10239cc617cf, 7c083fab0c08; files: Sources/CodexBar/StatusItemController+MenuTracking.swift, Tests/CodexBarTests/StatusMenuOpenRefreshTests.swift, Tests/CodexBarTests/StatusMenuClosedPreparationTests.swift)
  • Nicolas Hidemaru Ogoshi / 大越ニコラス秀丸: Blame shows recent changes avoiding closed menu rebuilds during data refresh, which is adjacent to menu-open responsiveness and deferred rebuild behavior. (role: recent adjacent contributor; confidence: medium; commits: 4652e40682a8; files: Sources/CodexBar/StatusItemController+MenuTracking.swift, Tests/CodexBarTests/StatusMenuClosedPreparationTests.swift)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

clawsweeper[bot] avatar Jun 08 '26 22:06 clawsweeper[bot]

Yes the bar is very sluggish. It hangs. Rainbow wheel of death alot. I'm on M5 Pro Max too with 48GB. It just gets unresponsive. I only have codex/claude/deepseek and openrouter in the menu

marcvig avatar Jun 08 '26 23:06 marcvig

Yes the bar is very sluggish. It hangs. Rainbow wheel of death alot. I'm on M5 Pro Max too with 48GB. It just gets unresponsive. I only have codex/claude/deepseek and openrouter in the menu

That's good to know. I'm on an M5 fyi.

kiankyars avatar Jun 08 '26 23:06 kiankyars

I get this issue on my M4 Mini but not on my M3 MacBook. Both computers are running the latest versions of macOS and all applications

jrdinatl avatar Jun 09 '26 00:06 jrdinatl

I have the same issue on my M3 MacBook Pro.

flywww avatar Jun 09 '26 07:06 flywww

I have the same issue on MacBook Pro M4 Pro with 48 GB

obadasemary avatar Jun 09 '26 08:06 obadasemary

This may share the same root family as #1325: synchronous Codex account/provider projection and menu rebuild work happening while AppKit is tracking the menu. I posted the concrete fix prompt and validation checklist here: https://github.com/steipete/CodexBar/issues/1325#issuecomment-4658665264

A focused local patch made account/provider switching materially better in an ad-hoc test build, so this looks like a CodexBar menu-tracking bug rather than reinstall/keychain noise.

flutterrausch avatar Jun 09 '26 10:06 flutterrausch

Funny how month long critical issue keeps coming back as if app is not used by people who wrote it because it's barely useable for this month.

vrnvorona avatar Jun 09 '26 11:06 vrnvorona

I have this issue on my M1 Macbook Air

sdubois avatar Jun 09 '26 14:06 sdubois

Same issue on M3 Pro. Also, it glitches out Dock, so only killAll Dock helps.

32i avatar Jun 09 '26 18:06 32i

I have the same issue on an m5 pro macbook pro with 64 gigs of memory, even when I have nothing opened. It is highly unresponse most times.

FernandoIGD avatar Jun 09 '26 23:06 FernandoIGD

It's almost unusable now, started to happen 2-3 app updates ago

makoni avatar Jun 10 '26 04:06 makoni

Same on M2 Max. 64GB RAM FWIW: switching desktops (Ctrl + ← or →) breaks the spinning rainbow wheel of death freeze.

wwjamieson3 avatar Jun 10 '26 04:06 wwjamieson3

I agree this started to happen around 2 or 3 last updates ago. In the meantime it helped me a bit to disable the monthly estimations setting.

byrondelgado avatar Jun 10 '26 14:06 byrondelgado

Closing this older freeze report as superseded by the focused performance fixes released in v0.33.0. Current post-release verification and any remaining hangs are tracked in #1387 and #1414.

Please attach a fresh sample there if the issue remains on 0.33.0 or newer.

steipete avatar Jun 11 '26 06:06 steipete