Skip to content

Commit 62db2c7

Browse files
committed
fix(web): keep background labels consistent across banner rows
1 parent 8a3b378 commit 62db2c7

1 file changed

Lines changed: 15 additions & 11 deletions

File tree

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -201,23 +201,27 @@ export function backgroundWorkNowItem(input: {
201201
id: `background-work:${input.threadId}`,
202202
icon: rows.every(isCommand) ? <TerminalIcon /> : <CircleDashedIcon />,
203203
title:
204-
only && typeof only.label !== "string" ? (
204+
only && typeof only.label !== "string" && only.task.label !== only.task.kind ? (
205205
<>
206206
{presentation.waiting ? "Waiting" : "Running"} · {only.label}
207207
</>
208208
) : (
209209
presentation.title
210210
),
211-
description: only
212-
? only.activity
213-
: newest
214-
? `${newest.task.label}: ${newest.activity}`
215-
: rows.map((row, index) => (
216-
<Fragment key={row.task.taskId}>
217-
{index > 0 ? ", " : null}
218-
{row.label}
219-
</Fragment>
220-
)),
211+
description: only ? (
212+
only.activity
213+
) : newest ? (
214+
<>
215+
{newest.label}: {newest.activity}
216+
</>
217+
) : (
218+
rows.map((row, index) => (
219+
<Fragment key={row.task.taskId}>
220+
{index > 0 ? ", " : null}
221+
{row.label}
222+
</Fragment>
223+
))
224+
),
221225
actions: (
222226
<>
223227
{startedAtMs === null ? null : (

0 commit comments

Comments
 (0)