Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pingdotgg/t3code
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: pingdotgg/t3code
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: fix/issue-31040
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 8 commits
  • 2 files changed
  • 2 contributors

Commits on Nov 4, 2026

  1. test(shared): reproduce #31040 OpenCode Go split across API keys

    These tests reproduce #31040: two environments reading one
    OpenCode Go subscription through different API keys show up as two Usage
    limit accounts. The shared monthly resetsAt anchors the subscription, so
    they should merge into one account with the fresher reading, while a
    different monthly anchor still means two subscriptions.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    0df0496 View commit details
    Browse the repository at this point in the history
  2. fix(usage): merge OpenCode Go readings from different API keys of one…

    … subscription
    
    OpenCode Go reports no email, so Usage limits keyed its account by a hash of
    the API key. One subscription can have several keys, so a stale reading from
    another environment showed as a second account instead of being superseded.
    
    The monthly window's resetsAt is anchored to the subscription start to the
    second, so an email-less credential-identified account is now keyed by that
    anchor, falling back to the key fingerprint when there is no monthly window.
    Email identity still wins and workspace handling is unchanged.
    
    Fixes #31040
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    17a281b View commit details
    Browse the repository at this point in the history
  3. fix(usage): keep same-key OpenCode Go readings together across the mo…

    …nthly reset
    
    Each credential fingerprint takes the monthly anchor of its freshest reading,
    so one key's readings never split when one side predates the rollover, while
    different keys of one subscription still merge on the shared anchor.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    1f75fce View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b0f056e View commit details
    Browse the repository at this point in the history

Commits on Nov 10, 2026

  1. Configuration menu
    Copy the full SHA
    efe9ed5 View commit details
    Browse the repository at this point in the history
  2. fix(usage): tolerate OpenCode Go monthly reset drift and scope it to Go

    OpenCode rebuilds the monthly reset from now plus a rounded remaining
    duration, so two keys of one subscription can report anchors a second
    apart. Group Go keys whose freshest monthly anchors fall within a minute
    of each other instead of matching the timestamp string exactly, and read
    only the go_monthly window so other providers' monthly windows never
    merge distinct credentials.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    5825c7a View commit details
    Browse the repository at this point in the history
  3. fix(usage): match OpenCode Go subscription anchors within one second

    A 60s window merged distinct Go subscriptions started seconds apart, and
    comparing each anchor to the previous one let groups chain beyond it.
    OpenCode's reconstruction drifts by at most a second, so allow 1s and
    measure from the group's first anchor.
    
    AI-assisted; verified with the tests and tools listed above.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    juliusmarminge and claude committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    7889b6e View commit details
    Browse the repository at this point in the history
  4. Merge commit '43915a4064b341cd040f24c1b906d87222e403de' into fix/issu…

    …e-31040
    
    # Conflicts:
    #	packages/shared/src/usageLimits.test.ts
    juliusmarminge committed Nov 10, 2026
    Configuration menu
    Copy the full SHA
    aaff0ef View commit details
    Browse the repository at this point in the history
Loading