Skip to content

Commit 1fa324b

Browse files
committed
fix(web): banner rows open the matched subagent thread
A pending task matched by id can omit its child thread; fall back to the matched record's child thread so the row stays openable.
1 parent 315502e commit 1fa324b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎apps/web/src/components/chat/BackgroundWorkBanner.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function presentBackgroundWork(
9999
status: "running",
100100
startedAtMs: toMs(agent?.startedAt ?? null),
101101
endedAtMs: null,
102-
childThreadId: item.childThreadId,
102+
childThreadId: item.childThreadId ?? agent?.childThreadId ?? undefined,
103103
};
104104
if (agent) rowByAgent.set(agent, row);
105105
return row;

0 commit comments

Comments
 (0)