Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(usage): keep one email in two Claude orgs as two accounts #13089

ClosedBombatomica64(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/13089/headopened View on GitHub

Showing 10 changed files with 15 additions and 1 deletion (loading 7).

x
0 of 10 viewed, 10 left
9 additions and 0 deletionsapps/server/src/provider/Drivers/ClaudeDriver.tsModified
View file
@@ -215,6 +215,15 @@
+ Effect.flatMap((provider) =>
+ provider.auth.status === "authenticated"
+ ? ClaudeResetCredits.readClaudeOrganizationId(accountConfigPath).pipe(
+ Effect.map((accountId) =>
+ accountId ? { ...provider, auth: { ...provider.auth, accountId } } : provider,
+ ),
+ )
+ : Effect.succeed(provider),
+ ),
Effect.map(stampIdentity),
2 additions and 1 deletionapps/server/src/provider/Layers/ClaudeCapabilitiesProbe.test.tsModified
View file
@@ -115,7 +115,7 @@
' output_style: "default",',
' available_output_styles: ["default"],',
" models: [],",
- ' account: { email: "dev@example.com", subscriptionType: "pro", tokenSource: "oauth" },',
+ ' account: { email: "dev@example.com", organization: "Acme", subscriptionType: "pro", tokenSource: "oauth" },',
" });",
" }",
" // The probe follows initialize with get_usage on the same process.",