Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(clients): display optional subagent context snapshots #21643

Openjuliusmarmingewants to merge 2 commits intomain fromclaude-context/client-supportopened View on GitHub

Showing 10 changed files with 52 additions and 32 deletions (loading 7).

x
0 of 10 viewed, 10 left
41 additions and 32 deletionsapps/mobile/src/features/threads/SubagentRow.tsxModified
View file
@@ -1,6 +1,10 @@
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,
+ resolveSubagentContextUsage,
+ 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";
@@ -26,6 +30,7 @@
| "status"
| "progress"
| "result"
+ | "usage"
>;
​
export function SubagentRow(props: {
@@ -112,38 +117,42 @@
parentProject,
childProject,
});
+ const usage = formatSubagentUsage(resolveSubagentContextUsage(subagent, child));
return (
- <View className="min-w-0 flex-row items-center gap-1.5">
- <ProviderIcon
- provider={provider?.driver ?? subagent.driver}