Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(opencode): show usage limits from remote OpenCode 2 servers #43368

MergedIgnacioCorrecher(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/43368/headmerged by juliusmarminge View on GitHub

IgnacioCorrecher(GitHub profile, opens in a new tab)commented

Remote OpenCode 2 quota and provider lookups could return HTTP 404 because T3 sent its own workspace path to the remote server. The Limits panel then showed “Unavailable” even when the remote workspace reported quotas.

Use the remote server’s default directory for both requests. Local OpenCode 2 connections still send the local workspace directory.

Verified in the web app against the same simulated remote server. Before the fix, the panel showed “Unavailable”. With the fix, it showed 75% session, 55% weekly, and 40% monthly remaining. The regression test rejects a directory parameter on either remote endpoint. vp run check:changed origin/main passed, including 63 tests.

Before

The Limits panel shows Unavailable

After

The Limits panel shows remaining session, weekly, and monthly OpenCode Go quotas

GPT-6.2 Sol via the Codex harness in T3 Code.

    1. Pushedcaa0033

    2. Evidence

      Configured the same external OpenCode 2.4.2 server on both commits, confirmed authentication, refreshed provider status, opened Usage → Limits (All environments / All providers), and refreshed limits. Chromium, 1280×800 CSS viewport, light theme, separate fresh databases. Real OpenCode server with synthetic Console upstream data.

      BeforeAfter
      Before: remote OpenCode quotas missingAfter: Go quotas and Console budget displayed
      5fda4f7bffcaa0033eb3
      Refresh recordingRefresh recording

      Base sends the local directory and receives 404; Limits remains empty. Head receives 200 without a directory and shows all four windows. Live client state also confirms Console coverage is providerIds=["opencode"].

      Seed script · Synthetic Console fixture · Recording proxy · Sanitized requests

      Not shown:

      • Live paid Console account authentication and quota accuracy were not exercised: Console upstream responses were synthetic. The OpenCode 2.4.2 server and both T3 applications were real.
      • Composer model filtering for Console budgets was not visually exercised; provider coverage was verified from the running app's live client state.
    3. juliusmarminge added labelstakeover:ready

    4. juliusmarminge removed labelstakeover:in-progress

    5. juliusmarminge merged this5519a98

    6. juliusmarminge closed this

    7. juliusmarminge removed labelstakeover:ready

Sign in to join this conversation.