CodexBar icon indicating copy to clipboard operation
CodexBar copied to clipboard

Claude provider labels Team subscription as "Max" in menu (single-account, web/sessionKey)

Open markiewiczsergei opened this issue 6 months ago • 1 comments

Summary

With a single Claude tokenAccounts entry using a sessionKey cookie from a claude.ai login bound to a Team workspace, the menu's Claude card shows the plan as Max (top-right). The Anthropic subscription is Team, not Max. All usage metrics (Session window, Weekly limit, Sonnet/Designs/Daily Routines) look correct — only the plan label is wrong.

Environment

  • CodexBar 0.23 (build 58), macOS 26.4.1, Apple Silicon
  • Single claude token account in ~/.codexbar/config.json
  • cookieSource: "manual", showAllTokenAccountsInMenu = false
  • Token: 131-char sk-ant-sid02-… sessionKey copied from claude.ai cookies
  • Anthropic subscription tier of the workspace: Team

Steps to reproduce

  1. Log into claude.ai in a browser as a member of a Team workspace.
  2. Copy the sessionKey cookie value (sk-ant-sid02-…, 131 chars).
  3. Set that sessionKey as the only Claude account in ~/.codexbar/config.json.
  4. Quit CodexBar; remove ~/Library/HTTPStorages/com.steipete.codexbar* for a clean baseline.
  5. Launch CodexBar and open the Claude menu after the first refresh.

Observed

  • Menu header: Max next to "Claude".
  • Session 3% used / Resets in 4h 55m, Weekly 14% / 50% in reserve / Resets in 2d 12h, etc. — all correct.

Expected

Plan label should match the actual Anthropic subscription tier for the workspace bound to the sessionKey (`Team` rather than `Max`).

Related

  • #848 (multi-account web/sessionKey convergence) — both cards there also collapsed to `Max`. That issue is about per-account data convergence; this one reproduces the plan mislabel on a clean single-account setup, suggesting the plan-tier mapping itself defaults to `Max` for any non-free Claude subscription returned by the web/sessionKey path.

Suspected area

`Sources/CodexBarCore/Providers/Claude/ClaudeWeb/…` — wherever the claude.ai response is mapped to a plan label. Likely a missing case for the Team tier in the switch/normalizer that falls through to `Max`.

markiewiczsergei avatar May 06 '26 19:05 markiewiczsergei

Resolved on CodexBar 0.24. After upgrading from 0.23, the menu now correctly shows Team instead of Max for the same sessionKey on the same setup. The 0.24 release notes did not call out this fix, but the symptom is gone. Closing.

markiewiczsergei avatar May 07 '26 22:05 markiewiczsergei