Description
Area and impact
apps/mobile Usage, with shared account matching as an investigation lead. The duplicate rows make the pooled reset forecast and the available reset credit misleading. The observed impact is on reporting.
Steps to reproduce
- Sign into the same Claude subscription and workspace on two machines with Claude Code enabled in T3 Code.
- Make both linked environments available to T3 Code for Android.
- Open Usage with both environments included. Inspect the Claude Session and Weekly cards, including both numbered rows and the combined reset forecast. A banked reset credit makes the badge discrepancy visible.
Actual behavior
Both cards showed two numbered Claude rows with the same remaining quota and reset countdown. Both Session rows were exhausted. The combined Session card forecast a +50% pool refill at the displayed reset time. Row 2 showed one reset credit on both cards. Row 1 omitted the badge on both cards.
Expected behavior
Count the same Claude account and workspace once in pooled usage and reset forecasts. When one matched source reports a valid reset balance and another has no balance data, show the available balance once for the shared account. Keep distinct workspaces under the same email separate.
Versions and evidence
- Observed on T3 Code for Android with two linked environments. Android app version and desktop/web reproduction are unverified.
- Windows x64 environment, T3 Code
0.1.13, Claude Code2.1.318. The cached Claude report corresponding to the screenshot matched the row with the badge. A later read still showed both identity fields populated and one reset credit. - Linux x64 linked environment, reachable at follow-up and reporting T3 Code
0.1.14-nightly.20261127.5319. Its version at the time of the screenshot is unverified. The linked-environment interface exposed the server build and platform, while the remote Claude Code version, reported account identity, and reset-credit response could not be inspected. - The reporter confirmed the same Claude login on both machines. Whether the two T3 provider reports identified the same workspace is unverified. No credit was redeemed during diagnosis.
Investigation leads
- The workspace-aware merge in #17711 is intended to merge the same workspace across environments. Compare the resolved keys entering
collectLimitAccountsfor the two mobile provider reports, particularly whether each reports an email and whether their workspace IDs agree. The shared usage code falls back to credential fingerprints and, when identity cannot be resolved, environment-local keys. - #10700 previously addressed duplicate native subscription rows in
/usage-limitsand preserved reset-credit data when combining reports. This reproduction is on Android's pooled Usage screen across linked environments. - For a regression test, give two environments the same Claude email and workspace, identical exhausted Session windows with the same reset time, and a valid credit on only one report. Expect one pooled account, one credit, and no second contribution to the reset forecast. Repeat with different workspace IDs as a control and expect two accounts.
- This is a focused follow-up to #17488. #33979 and #39882 document how a failed or rate-limited credit lookup can leave ordinary quota visible while omitting the credit balance. No such failure was verified for this report.
Activity
juliusmarminge commentedon Nov 27, 2026
@ShinRa-04 On the Linux machine, does T3 Code's Claude provider (Settings → Providers, on that environment) show the signed-in email? And is
oauthAccount.organizationUuidin that machine's~/.claude.jsonthe same as on the Windows machine?ShinRa-04 commentedon Nov 27, 2026
juliusmarminge commentedon Nov 27, 2026
@ShinRa-04 On the Linux machine, does Settings → Providers → Claude (on that environment) show your signed-in email, and is oauthAccount.organizationUuid in that machine's ~/.claude.json the same as on the Windows machine?
ShinRa-04 commentedon Nov 27, 2026
@juliusmarminge Sorry I missed the
CLAUDE_CONFIG_DIR pathsetting in the docs. Thanks for pointing me toward the organization ID.Yes, T3 showed my signed-in email on Linux. Several people share the same Linux user account, so we each keep our Claude login, memories, and preferences in a separate config directory. I had configured T3 to launch Claude through a custom executable, so I assumed T3’s usage checks would use my config directory too.
My Linux Claude profile has the same organization UUID as Windows. Before I set
CLAUDE_CONFIG_DIR pathexplicitly in T3, the Linux provider reported a different workspace ID. After I pointed it at my config directory (e.g.~/.claude-personal) and refreshed providers, the IDs matched and the duplicate row went away.The documented setting fixed it for me. A short note about setting the config path explicitly when using a custom executable might help others with this setup.
juliusmarminge commentedon Nov 27, 2026
T3 Code reads Claude's identity, usage and reset credits from the config directory set in Settings → Providers → Claude → CLAUDE_CONFIG_DIR path, or from the default directory when that field is empty. It does not use a directory that a custom launch executable picks internally. If your wrapper uses its own config directory, set the same path in T3 on that environment and refresh providers. Both environments will then report the same workspace and merge into one account in Usage. See docs/user/providers-claude.md. We'll consider adding a note about custom executables there.