Repository navigation
Commit 38e53e6
fix(usage): stop the hub claiming a Claude plan it cannot know
The hub's Anthropic OAuth usage read carries no subscription tier, but the
adapter labelled every Claude account "Claude Subscription". Once the plan
label is part of the pooled account identity, that placeholder can never
match a native "Claude Max Subscription" and would split one subscription
reported natively and by a hub into two accounts.
The hub now omits the plan for Claude accounts, so its read merges with the
native tier as before. The same-plan merge test uses a Codex pair, where
both sides share codexPlanLabel, and a new test pins the native Claude tier
plus tierless hub read case.
Co-Authored-By: Claude Fable 5.1 <[email protected]>1 parent 2d059ce commit 38e53e6
2 files changed
Lines changed: 52 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
224 | 227 | | |
225 | 228 | | |
226 | | - | |
227 | 229 | | |
228 | 230 | | |
229 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
405 | 445 | | |
406 | 446 | | |
407 | 447 | | |
408 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
409 | 453 | | |
410 | 454 | | |
411 | 455 | | |
| |||
423 | 467 | | |
424 | 468 | | |
425 | 469 | | |
426 | | - | |
427 | 470 | | |
428 | 471 | | |
429 | 472 | | |
| |||
436 | 479 | | |
437 | 480 | | |
438 | 481 | | |
439 | | - | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
440 | 486 | | |
441 | 487 | | |
442 | 488 | | |
| |||
0 commit comments