Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(usage): add OpenCode usage reporting #6040

Closedgmmeyer(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/6040/headopened View on GitHub

Showing 11 changed files with 118 additions and 11 deletions (loading 8).

x
0 of 11 viewed, 11 left
1 addition and 1 deletionapps/mobile/src/features/usage/UsageRouteScreen.tsxModified
View file
@@ -119,7 +119,7 @@
​
{isPending ? (
<Text className="py-16 text-center text-base text-foreground-muted">
- Scanning provider transcripts…
+ Scanning provider usage…
</Text>
) : environments.length === 0 ? (
<Text className="py-16 text-center text-base text-foreground-muted">
3 additions and 1 deletionapps/mobile/src/features/usage/usageProviders.tsModified
View file
@@ -5,11 +5,12 @@
* Series and table order. The chart stacks providers from the bottom in this
* order, so it also fixes which band sits on top of the bars.
*/
-export const PROVIDER_ORDER: readonly UsageProviderKind[] = ["codex", "claude"];
+export const PROVIDER_ORDER: readonly UsageProviderKind[] = ["codex", "claude", "opencode"];
​
export const PROVIDER_LABEL: Record<UsageProviderKind, string> = {
claude: "Claude Code",
codex: "Codex",
+ opencode: "OpenCode",
};
​
/**
@@ -21,5 +22,6 @@
return {