You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
MacOs menubar does not retrieve Claude Team subscription #115
changed the title [-]MacOs menubar does retrieve Claude subscriptions[/-][+]MacOs menubar does not retrieve Claude Team subscription[/+]on Apr 20, 2026
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:
~/.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.
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.
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.
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.
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.
Activity
[-]MacOs menubar does retrieve Claude subscriptions[/-][+]MacOs menubar does not retrieve Claude Team subscription[/+]toby-thanathip commentedon Apr 22, 2026
I'm facing the same issue on
0.8.4calvindotsg commentedon Apr 22, 2026
Thanks for shipping the Swift menubar — happy to share what I found while digging into this on my install.
Same symptom:
Claude $XX.XXrenders 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
~/.local/bin/claude)Reproducer on an affected install
Two things to note from that output:
~/.claude/.credentials.jsondoes 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.Claude Code-credentialskeychain row hasacct = <macOS login username>, not the literal string"default".Why the Plan tab is empty
SubscriptionClient.readKeychainCredentials()filters keychain rows against a hardcoded allowlist:codeburn/mac/Sources/CodeBurnMenubar/Data/SubscriptionClient.swift
Line 16 in d4e07de
codeburn/mac/Sources/CodeBurnMenubar/Data/SubscriptionClient.swift
Line 103 in d4e07de
The allowlist is
["default"], but Claude Code's keychain writer stampskSecAttrAccountwith the macOS login username, not"default". So the one valid row is filtered out beforeparseCredentialsruns,SubscriptionError.noCredentialsis thrown, andPlanNoCredentialsViewrenders. 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
acctmismatch.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.
aletundo commentedon Apr 22, 2026
Thanks @calvindotsg for taking the time (I didn't have these days unfortunately) for going so deep!
iamtoruk commentedon Apr 22, 2026
On it right now
iamtoruk commentedon Apr 22, 2026
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:
Claude Code-credentials) is sufficient to scope the query.SecItemCopyMatchingcall.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.
calvindotsg commentedon Apr 22, 2026
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:
Verified:
CFBundleShortVersionString→v0.8.8strings CodeBurnMenubar | grep -c expectedKeychainAccounts→0(allowlist string no longer in the binary)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 toClaude Code-credentials. Appreciate the App Nap hardening as a bonus in the same release.aletundo commentedon Apr 22, 2026
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.
fix(menubar): keychain account filter + App Nap hardening + single query