Fix menu bar recovery and Claude CLI startup#1742
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 24, 2026, 8:56 PM ET / 00:56 UTC. Summary Reproducibility: no. independent high-confidence runtime reproduction was established in this review. Source inspection confirms current main lacks the Control Center defaults repair and can plan Claude CLI in app/background/Auto, while the live macOS and browser-launch side effects rely on contributor-provided context. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Require fresh-bundle macOS proof for both startup fixes, then land the narrow repair if maintainers accept the Control Center defaults and Claude Auto routing behavior. Do we have a high-confidence way to reproduce the issue? No independent high-confidence runtime reproduction was established in this review. Source inspection confirms current main lacks the Control Center defaults repair and can plan Claude CLI in app/background/Auto, while the live macOS and browser-launch side effects rely on contributor-provided context. Is this the best way to solve the issue? Unclear. The latest code shape is narrow and addresses the previous CLI compatibility concern, but it is not yet the best merge path until fresh-bundle proof and maintainer acceptance of private Control Center defaults mutation are present. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ada3660e9d61. Label changesLabel justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
Additional proof/context:
Compatibility/risk notes:
Validation run locally:
|
|
Follow-up pushed in Changes:
Validation:
@clawssweeper re-review |
Summary
com.apple.controlcenter) usingNSStatusItem Visible Item-*keys.Context
I hit two related startup issues locally:
For the menu bar issue, the app already had recovery logic for stale
NSStatusItem VisibleCC ...keys, but on my macOS 26 setup the hidden state was stored undercom.apple.controlcenterasNSStatusItem Visible Item-* = 0. This PR extends the one-time repair to handle that real system state.For the Claude OAuth issue, the app background refresh could include Claude CLI as an auto-mode fallback. If Claude CLI is not authenticated, starting it can trigger the browser login flow. This PR suppresses that fallback only for app background auto refreshes, while keeping explicit CLI mode, user-initiated refreshes, and CLI runtime behavior intact.
Tests
swift test --filter ClaudeSourcePlannerTestsswift test --filter StatusItemControllerSplitLifecycleTestsmake check