[Bug]: Usage page merges custom provider instances into the built-in driver row
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
- Add a provider instance that uses the Codex driver but points at a custom binary and a custom home path.
- Run a few turns through that instance.
- 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.tsxgroups provider rows byentry.provider(driver kind).apps/server/src/usage/usageAggregation.tsand the Codex usage reader emitprovider: "codex"for every Codex-driver instance.- The provider filter list is a fixed driver-kind map, so a custom instance has no entry.
Proposal
- Group usage by provider instance instead of driver kind, or
- Add a per-instance label to the existing driver row, or
- 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.