Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix: expanded tool calls show their output, empty ones don't expand #15505

Mergedmaria-rcksmerged 17 commits intomain fromrefs/pull/15505/headmerged by maria-rcks View on GitHub

Showing 34 changed files with 106 additions and 18 deletions (loading 31).

x
0 of 34 viewed, 34 left
43 additions and 2 deletionsapps/mobile/src/features/threads/thread-work-log.tsxModified
View file
@@ -50,9 +50,12 @@
import { THREAD_WORK_ROW_MIN_HEIGHT, type deriveThreadWorkLogSizing } from "../../lib/layout";
import {
type AgentSpawnSummary,
+ formatItemFullDetail,
type ThreadFeedActivity,
workEntryRowLabel,
} from "../../lib/threadActivity";
+import { turnItemOutputText } from "@t3tools/client-runtime/work-log/item-detail";
+import { useTurnItemDetail } from "../../state/queries";
import {
resolveThreadWorkGroupInitialScroll,
shouldFollowThreadWorkGroupAppend,
@@ -60,6 +63,7 @@
} from "./thread-feed-live-follow";
import {
resolveWorkEntryToolPresentation,
+ toolGroupAction,
type ToolGroupSummaryKind,
workEntryViewedImagePath,
} from "@t3tools/client-runtime/work-log/presentation";
@@ -788,6 +792,11 @@
) {
const { row, expanded } = props;
const navigation = useNavigation();
+ const fetchedDetail = useTurnItemDetail(
+ expanded && row.fetchesDetail
+ ? { environmentId: props.environmentId, row: row.projectedItem }