Repository navigation
Description
Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
Not sure
Steps to reproduce
- On two machines, sign in to the same OpenCode Go subscription (OpenCode 2 /
opencode2.4.2, same Console workspace). - Link both machines as environments in T3 Code.
- Open Usage → Limits with both environments included (no environment filter).
Expected behavior
One OpenCode account per Console workspace, as with providers that report an email. Session, Weekly, and Monthly should each have one bar, and the pooled percentage and ↻ reset forecast should count the subscription once.
Actual behavior
Each environment contributes its own OpenCode row. Every Go window (Session, Weekly, Monthly) renders two bars side by side with the same reset time and nearly identical percentages, e.g. 97% and 96% in Session from two reads seconds apart, 18% and 18% Weekly, 11% and 11% Monthly. The large pooled percentage on the left and the ↻ forecast are computed from both reports, so the same subscription is counted twice and the numbers are slightly off.
This looks like the same "before" state shown in #37429.
Impact
Cosmetic issue (misleading usage reporting; no work is blocked).
Version or commit
T3 Code 0.1.13 (desktop, Linux x64). The linked environment is reachable; its exact build was not recorded.
Environment
- Local: NixOS 26.05, Linux 6.18.57 x86_64, T3 Code desktop 0.1.13
- Linked environment:
ifive - Provider: OpenCode,
opencodeCLI 2.4.2 (OpenCode 2), same OpenCode Go Console workspace signed in on both machines
Logs or stack traces
No error is reported. The OpenCode 2 usage report has no identity for collectLimitAccounts to merge on:
packages/provider-opencode/src/server/v2/usageLimits.tsdecodesworkspace.idfrom/api/experimental/usage/limitsbut drops it, and returns nocredentialFingerprint(explicitly asserted inOpenCode2Client.test.ts).collectLimitAccountsinpackages/shared/src/usageLimits.tskeys a native provider by email orcredentialFingerprint. With neither,nativeRowKeyfalls back to${environmentId}:${provider.instanceId}, so two environments can never merge into one row.- The legacy Go reader (
packages/provider-opencode/src/server/usageLimits.ts) does set a fingerprint derived from the API key, so only the OpenCode 2 workspace reader has this gap. - The duplicate becomes visible once the linked environment also reports OpenCode 2 usage, which v0.1.13 enabled with "show usage limits from remote OpenCode 2 servers" (fix(opencode): show usage limits from remote OpenCode 2 servers #43368).
Workaround
Filter Usage to one environment, or unlink the second environment. Neither is a real fix.
Related
- Fix PR: fix(opencode): show one usage bar per Console workspace across environments #37429 (
credentialFingerprint: workspace:<id>). As of 2026-11-27 it is open, labeledneeds-rebase, and conflicts withmain; currentmainstill returns no fingerprint for this path. - Usage → Limits shows one OpenCode Go subscription as two accounts, one of them an old reading #31040 / fix(usage): one OpenCode Go subscription no longer shows as two accounts #31070 cover the legacy variant where one subscription is read through two API keys.
Activity