Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 12 additions & 11 deletions apps/mobile/src/features/threads/ThreadFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1788,8 +1788,7 @@ function renderFeedEntry(
toolIcon={entry.toolIcon}
summaryToolIcon={entry.summaryToolIcon}
hasFailure={entry.hasFailure}
shimmer={entry.shimmer}
thought={entry.thought}
live={entry.live}
trailing={
entry.checkpointSummary ? (
<TurnDiffStat
Expand Down Expand Up @@ -3534,27 +3533,23 @@ export const ThreadFeed = memo(function ThreadFeed({
case "run-fold":
return resolveThreadFeedFixedItemSize(entry.type);
case "work-toggle":
return entry.thought ? undefined : WORK_GROUP_TOGGLE_HEIGHT;
return WORK_GROUP_TOGGLE_HEIGHT;
case "thinking":
return WORK_GROUP_TOGGLE_HEIGHT;
case "activity-group":
if (entry.activities[0]?.projectedItem.item.type === "subagent") {
case "activity-group": {
const itemType = entry.activities[0]?.projectedItem.item.type;
if (itemType === "subagent" || itemType === "reasoning") {
return undefined;
}
if (isContextCompactionActivityGroup(entry) || isContextHandoffActivityGroup(entry)) {
return undefined;
}
if (
entry.activities[0]?.groupedToolDetail &&
entry.activities.every((activity) => activity.workEntry.itemType === "reasoning")
) {
return undefined;
}
return entry.activities.some(
(activity) => activity.prominent || expandedWorkRows[activity.id],
)
? undefined
: collapsedWorkLogHeight(entry.activities, entry.continuesWorkLog);
}
default:
return undefined;
}
Expand Down Expand Up @@ -3721,6 +3716,12 @@ export const ThreadFeed = memo(function ThreadFeed({
viewabilityConfig={THREAD_MEDIA_VIEWABILITY_CONFIG}
keyExtractor={(entry) => entry.id}
getItemType={(entry) => {
if (
entry.type === "activity-group" &&
entry.activities[0]?.projectedItem.item.type === "reasoning"
) {
return "activity-group:reasoning";
}
if (entry.type !== "message") return entry.type;
if (isCompactionCommandFeedEntry(entry)) return "message:compaction";
const { attribution } = resolveUserMessagePresentation(entry.message);
Expand Down
3 changes: 0 additions & 3 deletions apps/mobile/src/features/threads/floating-working-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,7 @@ function FloatingStatusLabel(props: {
className="flex-none"
textClassName="font-t3-medium"
compact
icon="arrow.triangle.branch"
iconSubtleColor="transparent"
label={props.status.label}
showIcon={false}
/>
</StatusLabelRow>
);
Expand Down
3 changes: 0 additions & 3 deletions apps/mobile/src/features/threads/thread-context-divider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,7 @@ export function ThreadContextDivider(props: {
className="flex-none"
textClassName="font-t3-medium"
compact
icon="brain"
iconSubtleColor={props.iconColor}
label={props.label}
showIcon={false}
/>
) : (
<Text
Expand Down
Loading
Loading