Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server,web): show Claude thinking blocks in thread timelines #6429

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

Showing 18 changed files with 50 additions and 3 deletions (loading 15).

x
0 of 18 viewed, 18 left
4 additions and 2 deletionsapps/mobile/src/features/threads/thread-work-log.tsxModified
View file
@@ -109,11 +109,12 @@
return 0;
const onlyToolRows = rows.every((row) => row.toolLike);
+ const containsReasoning = rows.some((row) => row.reasoning === true);
const headerHeight =
scaledTypographyLineHeight(MOBILE_TYPOGRAPHY.caption, baseFontSize) + WORK_LOG_HEADER_PADDING;
return (
WORK_LOG_BOTTOM_MARGIN +
- (onlyToolRows ? 0 : headerHeight) +
+ (onlyToolRows || containsReasoning ? 0 : headerHeight) +
rows.length * WORK_ROW_HEIGHT +
(rows.length - 1) * WORK_ROW_GAP
@@ -139,10 +140,11 @@
​
const onlyToolRows = rows.every((row) => row.toolLike);
+ const containsReasoning = rows.some((row) => row.reasoning === true);
​
return (
<View className="-mx-1 mb-1 px-1 py-0">
- {!onlyToolRows ? (
+ {!onlyToolRows && !containsReasoning ? (
<Text className="px-0.5 pb-0.5 font-t3-medium text-2xs text-foreground-muted opacity-60">
work log
</Text>