Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Muse Code usage limits appear once per linked environment for the same Meta account #47090

Openerschmny(GitHub profile, opens in a new tab) opened this issue 0 comments

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

  1. Sign into the same Meta Muse Code account (muse login) on multiple machines with Muse Code enabled in T3 Code.
  2. Link those machines as environments in T3 Code.
  3. Run at least one Muse Code turn on each environment so each server receives a usage/changed notification.
  4. 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 in 39m, pooled as 93% left (+4% in 39m).
  • Weekly: 3 bars (Muse Code 63%, Muse Code 59%, Muse Code 60%), all resetting in 5d 0h, pooled as 61% left (+12% in 5d 0h).

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.ts always reports auth: { status: "unknown" } (no email).
  • packages/provider-muse/src/server/usageLimits.ts (museUsageToLimits) does not attach a credentialFingerprint.

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/read identity and muse usage --json refresh; note that it only sets auth.email if the returned label matches an email address, so non-email labels would still need a credentialFingerprint to 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

SCR-20261201-qarz.png

Workaround

Filter the All environments dropdown in the top-left of Usage → Limits to a single environment.

  1. erschmny(GitHub profile, opens in a new tab) added labelsneeds-triage

Sign in to join this conversation.