044d722a36
One Anthropic account email can hold multiple organizations (a Team seat plus a personal Max plan), each with its own org-scoped OAuth token and independent 5h/7d limit pools. Credentials were deduped by bare email, so logging in with the second subscription silently replaced the first, and usage reports from the two pools merged into one row with mixed numbers. - capture organization uuid/name at login (token exchange response, with a claude_cli/bootstrap fallback); token refreshes never rewrite it - key anthropic credential identity as email + org; a legacy email-keyed row is claimed in place by the first org-scoped login with the same email, and org-less credentials never clobber org-scoped rows - partition usage-report dedupe and the per-credential usage cache by org so the two subscriptions' limit pools stay distinct for rotation - show the organization in omp usage (redaction-safe) and name the stored account/org in the login success message