CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

App fails to launch with "not responding" error on macOS after fresh install (v0.16.1)

Open pokibao opened this issue 11 months ago • 6 comments

Description

After downloading CodexBar v0.16.1 from the GitHub releases page and installing to /Applications, the app fails to launch with the error message:

"你不能打开应用程序 'CodexBar',因为它没有响应。" (Translation: "You cannot open the application 'CodexBar' because it is not responding.")

Steps to Reproduce

  1. Download CodexBar-0.16.1.zip from releases
  2. Unzip and move CodexBar.app to /Applications
  3. Double-click to launch
  4. Error dialog appears immediately

Environment

  • macOS version: macOS Sequoia (Darwin 25.2.0)
  • CodexBar version: 0.16.1
  • Chip: Apple Silicon (M-series)

Attempted Workarounds

  • killall CodexBar - no running process found
  • xattr -cr /Applications/CodexBar.app - still fails
  • Right-click → Open - same error

Expected Behavior

App should launch normally after fresh install.

pokibao avatar Dec 31 '25 12:12 pokibao

Environment

  • macOS 14.7.3 (M3 / Apple Silicon)
  • Installed via Homebrew cask from GitHub instructions
  • Bundle ID: com.steipete.codexbar

Symptoms

  • App launches (process visible in Activity Monitor), but no Dock icon and no menu bar icon appears.
  • No visible UI; appears as a background UI element.
  • Running /Applications/Codexbar.app/Contents/MacOS/Codexbar originally failed with env: gemini: No such file or directory.
  • After installing gemini CLI, launching still shows no UI.

Logs / Findings

  • log stream shows repeated XPC failure: failed to do a bootstrap look-up: xpc_error=[3: No such process] for com.steipete.codexbar-spks.
  • App bundle appears to be missing the helper/service: find /Applications/Codexbar.app/Contents -name "*.xpc" only shows Sparkle:
    • Sparkle.framework/.../Downloader.xpc
    • Sparkle.framework/.../Installer.xpc
  • No CodexBar-specific XPC service found.

Hypothesis

  • The Homebrew cask install appears incomplete or missing the codexbar-spks helper, so the app runs without UI.

Next Steps

  • Will try uninstalling and reinstalling via direct GitHub release DMG (and remove quarantine) to see if helper is present and app works.

lpcode808 avatar Jan 01 '26 10:01 lpcode808

There's no XPC in CodexBar.app except for Sparkle, so that’s not the issue. Not sure what’s going on.

steipete avatar Jan 01 '26 10:01 steipete

Update with new findings (v0.17.0, macOS 14.7.3, M3):

What I tried:

  • Clean uninstall + reinstall via Homebrew (brew fetch/install). App bundle now present in /Applications.
  • Menu bar set to always show, no Bartender/Hidden Bar/Ice, single display.
  • Reset prefs + relaunch (defaults delete com.steipete.codexbar, remove plist).
  • killall SystemUIServer, relaunch.
  • Granted Screen Recording / Accessibility / Input Monitoring.
  • CodexBarCLI works (prints help/usage).

Symptoms persist:

  • CodexBar runs (Activity Monitor), but no Dock icon (expected) and no visible menu bar icon.

New evidence:

  • AppleScript shows the menu-bar item exists but has zero size/position. Command: osascript -e 'tell application "System Events" to tell process "CodexBar" to get {name, position, size} of menu bar items of menu bar 1'

Output (trimmed): Apple, CodexBar, File, Edit, View, Window, Help, 0, 33, 0, 33, 0, 33, ... 0, 0, 0, 0

Interpretation: The status item seems to be created but ends up with zero size (invisible). That would explain why it never shows even with plenty of menu-bar space.

lpcode808 avatar Jan 02 '26 10:01 lpcode808

Same issue on macOS 15.6 + CodexBar 0.17.0 / 0.18.0-beta.3

Environment

  • macOS: 15.6 (Build 24G84)
  • Chip: Apple Silicon (M-series, 16 cores)
  • Display: 3024 × 1964 Retina (MacBook Pro with notch)
  • CodexBar versions tested: 0.17.0 (stable) and 0.18.0-beta.3 (beta) — both affected
  • Install method: Homebrew cask (brew install --cask codexbar) and manual GitHub release download

Symptoms

  • Process runs normally (visible in Activity Monitor / ps aux)
  • No menu bar icon appears — plenty of space in the menu bar (only ~6 system icons)
  • CodexBar CLI works fine (codexbar cost --provider claude returns correct data)
  • No crash reports generated

Diagnostics performed

  1. Preferences reset: defaults delete com.steipete.codexbar — no effect
  2. Cache cleanup: Removed ~/Library/WebKit/com.steipete.codexbar, ~/Library/HTTPStorages/com.steipete.codexbar — no effect
  3. SystemUIServer restart: killall SystemUIServer — no effect
  4. NSStatusItem position reset: deleted NSStatusItem Preferred Position Item-0 — no effect
  5. Quarantine removal: xattr -cr /Applications/CodexBar.app — no effect
  6. Brew reinstall: brew reinstall --cask codexbar — no effect
  7. Downgrade to 0.17.0 stable: same issue

Key error logs from log show

# Login item permission denied
Failed to update login item: Error Domain=SMAppServiceErrorDomain Code=1 "Operation not permitted"

# Group container prefs unreadable
Couldn't read values in CFPrefsPlistSource (Domain: group.com.steipete.codexbar, User: kCFPreferencesAnyUser, ByHost: Yes, Container: (null))

# Main thread blocking (Fatal, 12+ occurrences on beta, 0 on stable after cache clean)
This method should not be called on the main thread as it may lead to UI unresponsiveness.

# Icon symbol load failure
Failed to get symbol for <private>

# WebKit entitlement missing
Failed to acquire RBS assertion 'XPCConnectionTerminationWatchdog' - originator doesn't have entitlement com.apple.runningboard.assertions.webkit

Consistent with #106 findings

This matches @lpcode808's report — the menu bar item likely exists but has zero size. The NSStatusItem Visible Item-0 = 1 preference is set correctly, but the icon never renders.

No Bartender/Hidden Bar/Ice running. Menu bar has ample space.

luzhuang avatar Feb 20 '26 09:02 luzhuang

I have the same issue on Mac Laptop, M2 Pro, OS 26.3.1, CLI works but no ability to access app / UI. Tried all things above suggested

anthonyjclarke avatar Mar 09 '26 19:03 anthonyjclarke

Closing as fixed on current main. This old fresh-install/no-visible-menu-item report matches the zero-size/hidden status item class that was later fixed by the menu-bar visibility work (#861): CodexBar now avoids reusing macOS autosaved hidden menu-extra state from affected builds. I also validated today that the freshly packaged current build launches and stays visible/running. If a current build still launches with no menu-bar item, please file a fresh issue with the current version/build and defaults read com.steipete.codexbar output.

steipete avatar May 10 '26 13:05 steipete