Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(claude): subagent token usage shows again in lineage tooltips #15446

ClosedGigioxx(GitHub profile, opens in a new tab)wants to merge 5 commits intomain fromrefs/pull/15446/headopened View on GitHub

Showing 12 changed files with 103 additions and 1 deletion (loading 9).

x
0 of 12 viewed, 12 left
11 additions and 1 deletionapps/mobile/src/features/threads/SubagentRow.tsxModified
View file
@@ -1,6 +1,9 @@
import { scopeProjectRef, scopeThreadRef } from "@t3tools/client-runtime/environment";
import { resolveProviderInstanceDisplayName } from "@t3tools/client-runtime/state/provider-instance-display";
-import { resolveSubagentMetadata } from "@t3tools/client-runtime/state/subagent-display";
+import {
+ formatSubagentUsage,
+ resolveSubagentMetadata,
+} from "@t3tools/client-runtime/state/subagent-display";
import type { EnvironmentId, OrchestrationV2Subagent } from "@t3tools/contracts";
import type { ReactNode } from "react";
import { View } from "react-native";
@@ -25,6 +28,7 @@
| "prompt"
| "status"
| "progress"
+ | "usage"
| "result"
>;
​
@@ -110,6 +114,7 @@
parent ? scopeProjectRef(environmentId, parent.projectId) : null,
const childProject = useProject(child ? scopeProjectRef(environmentId, child.projectId) : null);
+ const usage = formatSubagentUsage(subagent.usage ?? null);
const { modelLabel, workspace } = resolveSubagentMetadata({
model: subagent.model,
provider,
@@ -129,6 +134,11 @@