t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Usage page merges custom provider instances into the built-in driver row

Open Kargatharaakash opened this issue 1 month ago • 0 comments

Before submitting

  • [x] I searched existing issues and did not find a duplicate.
  • [x] I included enough detail to reproduce or investigate the problem.

Area

apps/web, apps/server

Steps to reproduce

  1. Add a provider instance that uses the Codex driver but points at a custom binary and a custom home path.
  2. Run a few turns through that instance.
  3. Open the Usage page and look at the provider filter and the cost breakdown.

Expected behavior

The Usage page should distinguish provider instances that share a driver. A custom instance should appear as its own row, or be clearly labelled as a distinct instance within the driver row.

Actual behavior

All instances of a driver are merged into one row labelled with the driver's built-in name. The custom instance's usage appears under "Codex", with no separate label, so it cannot be told apart from the built-in provider.

Impact

Minor bug or occasional failure. The numbers are right, but the label is wrong for anyone running a custom provider instance on a built-in driver.

Version or commit

0.1.6

Environment

T3 Code 0.1.6 desktop. Provider instance: Codex driver with a custom binary path and custom home path.

Suspected area (unverified)

  • apps/web/src/components/usage/UsagePage.tsx groups provider rows by entry.provider (driver kind).
  • apps/server/src/usage/usageAggregation.ts and the Codex usage reader emit provider: "codex" for every Codex-driver instance.
  • The provider filter list is a fixed driver-kind map, so a custom instance has no entry.

Proposal

  1. Group usage by provider instance instead of driver kind, or
  2. Add a per-instance label to the existing driver row, or
  3. Allow a custom display name for the instance in the usage view.

Acceptance criteria

  • A custom provider instance on a built-in driver appears as its own row, or is clearly labelled as a distinct instance within the driver row.
  • Existing built-in provider rows keep their current labels and totals.
  • The change does not require a new driver kind.

Workaround

None found. The usage is visible under the built-in driver's row, but it cannot be separated from it.

Kargatharaakash avatar Nov 01 '26 18:11 Kargatharaakash