GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Limits merges Claude instances with different logins into one row when they share a config directory · Issue #30602 · pingdotgg/t3code

[Bug]: Limits merges Claude instances with different logins into one row when they share a config directory #30602

New issue
Copy link
New issue
Copy link
Open
#30619
Open
[Bug]: Limits merges Claude instances with different logins into one row when they share a config directory#30602
#30619
Copy link
Labels
bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

Description

@ceter843
ceter843
opened on Nov 4, 2026
Issue body actions

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. Sign in to Claude Code with account A as usual (claude auth login).
  2. Sign in account B into its own login folder. Claude Code's CLAUDE_SECURESTORAGE_CONFIG_DIR moves only the credentials file, and ~/.claude and ~/.claude.json stay shared:
    $env:CLAUDE_SECURESTORAGE_CONFIG_DIR = "$HOME\.claude-b"
    claude auth login
    
  3. In Settings → Providers, add a Claude instance named "Claude B". Leave its config directory empty, and add the environment variable CLAUDE_SECURESTORAGE_CONFIG_DIR set to the full path of that folder.
  4. Send a message on each instance so the two accounts are at different usage.
  5. Open Usage → Limits and click Refresh limits a few times.

I use this setup because T3 only lets a thread switch between Claude instances that use the same config directory (providers-claude.md). With it, a thread can move to another account, and CLAUDE.md, memory, and sessions stay shared.

Expected behavior

Two Claude rows, one per login, each with its own session and weekly numbers. The thread details card already shows the right numbers for a thread on each instance.

Actual behavior

There's one Claude row. It's labeled with the email stored in the shared ~/.claude.json, which belongs to whichever account signed in last. Its numbers come from whichever instance T3 checked most recently, so they switch between the two accounts. The provider cards also show the same email for every instance.

Each instance's numbers are correct. Its probe runs with its own login, and the thread details card (ThreadDetailsUsage, which looks up by instanceId) shows them right. The rows are merged because:

  • Claude Code reports account.email from oauthAccount.emailAddress in the shared ~/.claude.json, not from the login it's using, so every instance on the machine reports the same email.
  • The Claude driver reads workspaceId from oauthAccount.organizationUuid in the same file (readClaudeOrganizationId in ClaudeDriver.ts), so that matches too.
  • accountKey and collectLimitAccounts in packages/shared/src/usageLimits.ts key accounts by driver, email, and workspaceId, and keep the fresher reading.

Possible fix: also key a Claude instance by where its login is stored, for example by adding the instance's resolved CLAUDE_SECURESTORAGE_CONFIG_DIR to the key when it sets one. Instances that share one login, like presets, would still merge, and instances with separate logins would get their own rows.

Related: #28142 has the same symptom for hub accounts that really share an email. Its fix (#28290) only covers hub accounts.

Impact

Major degradation or frequent failure

Version or commit

0.1.6 (desktop). The same code is unchanged on main @ df2dfde.

Environment

Windows 10 22H2, T3 Code desktop 0.1.6, Claude Code 2.1.316

Logs or stack traces

Screenshots, recordings, or supporting files

No response

Workaround

Deleting oauthAccount.emailAddress from ~/.claude.json makes Limits fall back to one row per instance. Claude Code writes the email back (daily profile refresh, token renewals, and sign-ins), so it has to be removed again each time.

Activity

Next
  1. ceter843
    added
    bugSomething is broken or behaving incorrectly.
    needs-triageIssue needs maintainer review and initial categorization.
    on Nov 4, 2026
  2. 2 remaining items

  3. ianm1837
    added 15 commits that reference this issue on Nov 22, 2026

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit 069fc3b is merged into the 'main' branch.
    069fc3b

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit b68dbe3 is merged into the 'main' branch.
    b68dbe3

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit 76e2f81 is merged into the 'main' branch.
    76e2f81

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit 3a66c0e is merged into the 'main' branch.
    3a66c0e

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit df6233e is merged into the 'main' branch.
    df6233e

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit ec914e1 is merged into the 'main' branch.
    ec914e1

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit 1fcf796 is merged into the 'main' branch.
    1fcf796

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit 9431be4 is merged into the 'main' branch.
    9431be4

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit 8b5f14c is merged into the 'main' branch.
    8b5f14c

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit 21cdd1a is merged into the 'main' branch.
    21cdd1a

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit 2238dda is merged into the 'main' branch.
    2238dda

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit 46a768d is merged into the 'main' branch.
    46a768d

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit d1edf3f is merged into the 'main' branch.
    d1edf3f

    test(server): reproduce pingdotgg#30602 Claude logins sharing a confi…

    This issue will close once commit 8e17ff8 is merged into the 'main' branch.
    8e17ff8

    fix(server): separate Claude logins that share a config dir in Limits

    This issue will close once commit 3fe76bc is merged into the 'main' branch.
    3fe76bc
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

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.