Skip to content

MacOs menubar does not retrieve Claude Team subscription #115

Closed

Description

@aletundo

Hello,

Despite I'm on the latest version of the bar and of codeburn, it seems unable to fetch my subscriptions (Team plan)

codeburn --version
0.8.1
codeburn menubar --force
Looking up the latest CodeBurn Menubar release...
Downloading CodeBurnMenubar-v0.8.2.zip...
Unpacking...
Launching CodeBurn Menubar...

  Ready. /Users/aletundo/Applications/CodeBurnMenubar.app

I'm logged in Claude Code (both CLI and Desktop app on MacOS Sequoia 15.7.4 (24G517)) and retried many times, still no luck.

Image

Activity

  1. changed the title [-]MacOs menubar does retrieve Claude subscriptions[/-] [+]MacOs menubar does not retrieve Claude Team subscription[/+] on Apr 20, 2026
  2. toby-thanathip commented on Apr 22, 2026

    @toby-thanathip

    I'm facing the same issue on 0.8.4

  3. calvindotsg commented on Apr 22, 2026

    @calvindotsg

    Thanks for shipping the Swift menubar — happy to share what I found while digging into this on my install.

    Same symptom: Claude $XX.XX renders fine in the menubar header (local JSONL parse, no auth), but the Plan tab shows "No Claude subscription connected — Sign in with Claude Code, then click Retry". Retry never succeeds.

    Environment

    • codeburn CLI 0.8.7
    • CodeBurnMenubar.app v0.8.7
    • macOS 26.4.1 (build 25E253), Apple Silicon
    • Claude Code 2.1.117 (native installer at ~/.local/bin/claude)
    • Signed in to Claude Code, Max plan active

    Reproducer on an affected install

    ls -la ~/.claude/.credentials.json 2>&1
    # -> ls: /Users/<username>/.claude/.credentials.json: No such file or directory
    
    security find-generic-password -s "Claude Code-credentials" 2>&1 \
      | grep -E '"acct"|"svce"'
    # "acct"<blob>="<username>"
    # "svce"<blob>="Claude Code-credentials"

    Two things to note from that output:

    1. ~/.claude/.credentials.json does not exist. On this Claude Code version (2.1.117, native installer on macOS), credentials live in Keychain only — the file-path branch is never hit.
    2. The single Claude Code-credentials keychain row has acct = <macOS login username>, not the literal string "default".

    Why the Plan tab is empty

    SubscriptionClient.readKeychainCredentials() filters keychain rows against a hardcoded allowlist:

    The allowlist is ["default"], but Claude Code's keychain writer stamps kSecAttrAccount with the macOS login username, not "default". So the one valid row is filtered out before parseCredentials runs, SubscriptionError.noCredentials is thrown, and PlanNoCredentialsView renders. Retry re-enters the same path with the same outcome.

    This matches what @aletundo (Team plan) and @toby-thanathip (0.8.4) are seeing — different plans, different versions, same acct mismatch.

    Fix direction is yours to decide — just wanted to give you a concrete reproducer and the exact lines. Happy to test any patch you'd like verified against this setup.

  4. aletundo commented on Apr 22, 2026

    @aletundo
    Author

    Thanks @calvindotsg for taking the time (I didn't have these days unfortunately) for going so deep!

  5. iamtoruk commented on Apr 22, 2026

    @iamtoruk
    Member

    On it right now

  6. iamtoruk commented on Apr 22, 2026

    @iamtoruk
    Member
    Image

    Fixed in mac-v0.8.8 (just shipped).

    The root cause was exactly what @calvindotsg diagnosed: the keychain lookup filtered on kSecAttrAccount == "default", but Claude Code 2.1.x writes the macOS login username instead. The one valid credential row was silently dropped before it ever reached the parser.

    Changes in mac-v0.8.8:

    • Removed the hardcoded account allowlist. The service name (Claude Code-credentials) is sufficient to scope the query.
    • Collapsed the two-phase keychain enumeration into a single SecItemCopyMatching call.
    • Hardened the App Nap opt-out at the process level (separate fix, same release).

    To update: quit the menubar and run npx codeburn menubar --force. The Plan tab should load on the next launch.

    Thanks @calvindotsg for the thorough root cause analysis, saved us real time. And thanks @aletundo and @toby-thanathip for reporting.

  7. calvindotsg commented on Apr 22, 2026

    @calvindotsg

    Confirmed fixed on my install. Thanks for the quick turnaround, @iamtoruk — and appreciate the kind words, glad the root cause analysis was useful.

    Update path from the tap:

    pkill -f CodeBurnMenubar
    codeburn menubar --force

    Verified:

    • CFBundleShortVersionString → v0.8.8
    • strings CodeBurnMenubar | grep -c expectedKeychainAccounts → 0 (allowlist string no longer in the binary)
    • Plan tab now renders 5-hour window, 7-day total, and 7-day Sonnet gauges against the same acct = <username> keychain row that 0.8.7 was dropping.

    The single-query simplification in SubscriptionClient.readKeychainCredentials() (kSecMatchLimitOne + kSecReturnData) is a nice follow-on — one prompt instead of four, and the service-name scope is sufficient given Claude Code is the only writer to Claude Code-credentials. Appreciate the App Nap hardening as a bonus in the same release.

  8. aletundo commented on Apr 22, 2026

    @aletundo
    Author

    I also upgrade and I confirm it works. It's slightly inconsistent on the 5h window with the internal Claude Code Account & Usage , but I can live with it.

  9. added a commit that references this issue on Apr 22, 2026
    3d063c9
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions