Skip to content

[Bug]: Distinct email-less usage hubs collapse into one account #36560

Closed

Description

@StiensWout

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

packages/contracts or packages/shared

Steps to reproduce

  1. Connect two environments with CLIProxyAPI usage sources that have the same local source ID. The Add source URL slug can collide for http://hub:8317 and http://hub-8317.
  2. Each hub reports a different Claude account under the same filename, without email or credential fingerprint.
  3. Open Usage → Limits with both environments connected. The same collision occurs when each environment runs its own http://localhost:8317 hub.
  4. Deterministic collector reproduction: run the linked fix's email-less hub identity test against the base implementation.

Expected behavior

Distinct hubs retain their own accounts and quotas. One shared remote hub observed through multiple environments remains deduplicated.

Actual behavior

The collector keys anonymous accounts by source ID and account filename, silently merging distinct hubs. The fresher snapshot replaces the other account's quota.

Impact

Minor bug or occasional failure

Version or commit

Reconfirmed on pingdotgg/main at 99071c4. Independently confirmed by Claude Opus 5.5 on 83d2382.

Environment

Multiple connected environments with CLIProxyAPI sources; shared collector used by web, desktop and mobile.

Logs or stack traces

Supplied public collector repro on main: different origins expected two accounts, received one. Shared-hub control passed. No live hub or credit redemption proof claimed.

Screenshots, recordings, or supporting files

Regression proof is included with the linked fix PR.

Workaround

Use distinct source IDs for distinct hubs. Related identity discussion: closed issue #13992; this report concerns the email-less hub fallback specifically.

Activity

  1. added
    vouch:trusted
    on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:trusted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions