[Bug]: Muse Code usage limits appear once per linked environment for the same Meta account #47090
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- Sign into the same Meta Muse Code account (
muse login) on multiple machines with Muse Code enabled in T3 Code. - Link those machines as environments in T3 Code.
- Run at least one Muse Code turn on each environment so each server receives a
usage/changednotification. - Open Usage → Limits with All environments selected.
Expected behavior#
One Muse Code bar per window (Session, Weekly) for the shared Meta subscription—matching how providers that report account identity collapse across linked environments—showing the freshest reading and counting the subscription once in the pooled percentage and ↻ reset forecast.
Actual behavior#
Each linked environment renders its own Muse Code bar side by side with identical reset times and slightly different percentages (from each host's own last in-memory usage/changed reading):
- Session: 3 bars (
Muse Code 99%,Muse Code 89%,Muse Code 91%), all resetting in39m, pooled as93% left(+4% in 39m). - Weekly: 3 bars (
Muse Code 63%,Muse Code 59%,Muse Code 60%), all resetting in5d 0h, pooled as61% left(+12% in 5d 0h).
Root cause & related items#
collectLimitAccounts in packages/shared/src/usageLimits.ts deduplicates native providers across environments using provider.auth.email or usageLimits.credentialFingerprint, falling back to ${environmentId}:${provider.instanceId} when neither is set:
packages/provider-muse/src/server/status.tsalways reportsauth: { status: "unknown" }(noemail).packages/provider-muse/src/server/usageLimits.ts(museUsageToLimits) does not attach acredentialFingerprint.
Related:
- #45237 / #45253 (same issue for Cursor across linked environments)
- #31040 / #44416 (same issue for OpenCode Go across linked environments)
- #25165 (open PR adding
account/readidentity andmuse usage --jsonrefresh; note that it only setsauth.emailif the returned label matches an email address, so non-email labels would still need acredentialFingerprintto deduplicate)
Impact#
Cosmetic issue
Version or commit#
0.1.14-nightly.20261201.5550 (eca5cb0c0f)
Environment#
macOS, T3 Code 0.1.14-nightly.20261201.5550, 3 linked environments sharing 1 Meta Muse Code account
Logs or stack traces#
Screenshots, recordings, or supporting files#
Workaround#
Filter the All environments dropdown in the top-left of Usage → Limits to a single environment.
erschmny(GitHub profile, opens in a new tab) added labelsbug
erschmny(GitHub profile, opens in a new tab) added labelsneeds-triage
Sign in to join this conversation.