- {props.tasks.map((task) => {
- const item = props.turnItems.findLast((candidate) =>
- task.itemId === undefined
- ? (candidate.nativeItemRef?.nativeId || candidate.id) === task.taskId
- : candidate.id === task.itemId,
- );
- const command =
- task.command ?? (item?.type === "command_execution" ? item.input : undefined);
- const description = task.description?.trim();
- const title =
- description && description !== command?.trim()
- ? description
- : command
- ? gt("Command", { $context: "title of a background shell command" })
- : kindLabel(task.kind);
- const itemId =
- task.itemId ?? (item?.type === "command_execution" ? item.id : undefined);
+
+
+
+
+ {rows.map((row) => {
+ const { task } = row;
const childThreadId = task.kind === "subagent" ? task.childThreadId : undefined;
+ const expandable =
+ childThreadId === undefined &&
+ (row.command !== undefined || row.outputItemId !== undefined);
+ const expanded = expandable && expandedTaskId === task.taskId;
+ const status = backgroundWorkHoldsCompletion([task]) ? "waiting" : "running";
+ const startedAtMs = row.startedAtMs;
+ const ToggleIcon = expanded ? ChevronUpIcon : ChevronDownIcon;
return (
-
-
-
{title}
-
- {backgroundWorkHoldsCompletion([task])
- ? gt("Waiting", { $context: "status of background work" })
- : gt("Running", { $context: "status of background work" })}
+ -
+ {
+ if (childThreadId !== undefined) {
+ setOpen(false);
+ props.onOpenThread(childThreadId);
+ } else {
+ setExpandedTaskId(expanded ? null : task.taskId);
+ }
+ }}
+ >
+
+
+
+ {row.title}
+
+ {row.activity ? (
+
+ {row.activity}
+
+ ) : null}
-
- {command ? (
-
-
-
- ) : null}
- {itemId && streamsOutput && item?.status === "running" ? (
-
-
+ {threadRelationshipStatusLabel(status, m)}
+ {startedAtMs === null ? null : (
+ <>
+ {" · "}
+ formatDuration(Math.max(1_000, nowMs - startedAtMs), m),
+ true,
+ )}
+ />
+ >
+ )}
+
+ {childThreadId !== undefined ? (
+
+ ) : expandable ? (
+
+ ) : null}
+
+ {expanded ? (
+
+ {row.command ? (
+
+
+
+ ) : null}
+ {row.outputItemId ? (
+
+ ) : null}
) : null}
- {childThreadId ? (
- {
- setOpen(false);
- props.onOpenThread(childThreadId);
- }}
- >
- Open subagent
-
- ) : null}
-
+
);
})}
-
-
-
-
+
+
+
+
);
}
diff --git a/apps/web/src/components/chat/ThreadRelationshipsControl.tsx b/apps/web/src/components/chat/ThreadRelationshipsControl.tsx
index b005fa877b745..16358452a7516 100644
--- a/apps/web/src/components/chat/ThreadRelationshipsControl.tsx
+++ b/apps/web/src/components/chat/ThreadRelationshipsControl.tsx
@@ -101,6 +101,7 @@ import {
THREAD_DETAILS_PANEL_LABEL_CLASS,
THREAD_DETAILS_PANEL_SPLIT_GROUP_CLASS,
THREAD_DETAILS_PANEL_ROW_CONTENT_CLASS,
+ THREAD_DETAILS_PANEL_ROW_TITLE_CLASS,
THREAD_DETAILS_PANEL_SPLIT_SEPARATOR_CLASS,
} from "./threadDetailsPanelStyles";
@@ -336,9 +337,7 @@ function RemoteSubagentRow(props: {
status={status}
/>
-
- {title}
-
+ {title}
-
- {title}
-
+ {title}
{label ? (
@@ -888,9 +885,7 @@ export function ThreadRelationshipsPanel(props: {
status={rowStatus}
/>
-
- {threadTitle}
-
+ {threadTitle}
{agent ? null : (
diff --git a/apps/web/src/components/chat/threadDetailsPanelStyles.ts b/apps/web/src/components/chat/threadDetailsPanelStyles.ts
index edc5b81c65bc1..b36605ff47712 100644
--- a/apps/web/src/components/chat/threadDetailsPanelStyles.ts
+++ b/apps/web/src/components/chat/threadDetailsPanelStyles.ts
@@ -12,6 +12,9 @@ const THREAD_DETAILS_PANEL_SPLIT_GROUP_SURFACE_CLASS = `${THREAD_DETAILS_PANEL_H
export const THREAD_DETAILS_PANEL_ROW_CONTENT_CLASS = "gap-2.5 px-2.5 text-left";
+export const THREAD_DETAILS_PANEL_ROW_TITLE_CLASS =
+ "block truncate text-left text-sm font-medium leading-4 text-foreground/85";
+
export const THREAD_DETAILS_PANEL_LABEL_CLASS =
"[text-box:trim-both_cap_alphabetic] overflow-x-clip overflow-y-visible";
diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json
index 7900e73186091..edcd981ad507b 100644
--- a/apps/web/src/i18n/translations/de.json
+++ b/apps/web/src/i18n/translations/de.json
@@ -3309,15 +3309,8 @@
"3390f0b2396998c0": "Auswahl im Eingabefeld zitieren",
"e5dc8d61a6d178ed": "Auswahl kürzen",
"a5b06aaaba1d742f": "Zitieren",
- "b1d8a5a24bd684e3": "Subagent",
- "5a805b37d8940816": "Befehl",
- "da2da87e78bd6b11": "Monitor",
- "b034f8434dd8479d": "Hintergrundaufgabe",
- "519dd506361059c9": "Befehl",
- "b851b1f4c772dea4": "Wartet",
- "83915f0968cde2cc": "Läuft",
"b90e87f4b7125237": "Details",
- "16dc67f5429d8bae": "Hintergrundarbeit",
+ "668e353261860b41": "Hintergrundarbeit",
"2188eee8f81b0f51": "Subagent öffnen",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} geänderte Datei} other {{formattedCount} geänderte Dateien}}",
"ec9e0be8ec693302": "Alle Ordner einklappen",
diff --git a/apps/web/src/i18n/translations/en.json b/apps/web/src/i18n/translations/en.json
index 5bdd7c383d319..16dae4bad74a3 100644
--- a/apps/web/src/i18n/translations/en.json
+++ b/apps/web/src/i18n/translations/en.json
@@ -3308,15 +3308,8 @@
"3390f0b2396998c0": "Cite selection in composer",
"e5dc8d61a6d178ed": "Shorten selection",
"a5b06aaaba1d742f": "Cite",
- "b1d8a5a24bd684e3": "subagent",
- "5a805b37d8940816": "command",
- "da2da87e78bd6b11": "monitor",
- "b034f8434dd8479d": "background task",
- "519dd506361059c9": "Command",
- "b851b1f4c772dea4": "Waiting",
- "83915f0968cde2cc": "Running",
"b90e87f4b7125237": "Details",
- "16dc67f5429d8bae": "Background work",
+ "668e353261860b41": "Background work",
"2188eee8f81b0f51": "Open subagent",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} changed file} other {{formattedCount} changed files}}",
"ec9e0be8ec693302": "Collapse all folders",
diff --git a/apps/web/src/i18n/translations/es.json b/apps/web/src/i18n/translations/es.json
index 91dbb2b07f50f..31fc9469ac1fa 100644
--- a/apps/web/src/i18n/translations/es.json
+++ b/apps/web/src/i18n/translations/es.json
@@ -3308,15 +3308,8 @@
"3390f0b2396998c0": "Citar la selección en el cuadro de mensaje",
"e5dc8d61a6d178ed": "Acortar selección",
"a5b06aaaba1d742f": "Citar",
- "b1d8a5a24bd684e3": "subagente",
- "5a805b37d8940816": "comando",
- "da2da87e78bd6b11": "monitor",
- "b034f8434dd8479d": "tarea en segundo plano",
- "519dd506361059c9": "Comando",
- "b851b1f4c772dea4": "Esperando",
- "83915f0968cde2cc": "En ejecución",
"b90e87f4b7125237": "Detalles",
- "16dc67f5429d8bae": "Trabajo en segundo plano",
+ "668e353261860b41": "Trabajo en segundo plano",
"2188eee8f81b0f51": "Abrir subagente",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} archivo cambiado} other {{formattedCount} archivos cambiados}}",
"ec9e0be8ec693302": "Contraer todas las carpetas",
diff --git a/apps/web/src/i18n/translations/fr.json b/apps/web/src/i18n/translations/fr.json
index f5cf7e62a4744..f44ea42e65857 100644
--- a/apps/web/src/i18n/translations/fr.json
+++ b/apps/web/src/i18n/translations/fr.json
@@ -3308,15 +3308,8 @@
"3390f0b2396998c0": "Citer la sélection dans la zone de saisie",
"e5dc8d61a6d178ed": "Raccourcir la sélection",
"a5b06aaaba1d742f": "Citer",
- "b1d8a5a24bd684e3": "sous-agent",
- "5a805b37d8940816": "commande",
- "da2da87e78bd6b11": "moniteur",
- "b034f8434dd8479d": "tâche en arrière-plan",
- "519dd506361059c9": "Commande",
- "b851b1f4c772dea4": "En attente",
- "83915f0968cde2cc": "En cours",
"b90e87f4b7125237": "Détails",
- "16dc67f5429d8bae": "Travail en arrière-plan",
+ "668e353261860b41": "Travail en arrière-plan",
"2188eee8f81b0f51": "Ouvrir le sous-agent",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} fichier modifié} other {{formattedCount} fichiers modifiés}}",
"ec9e0be8ec693302": "Réduire tous les dossiers",
diff --git a/apps/web/src/i18n/translations/ja.json b/apps/web/src/i18n/translations/ja.json
index 7e3be343b068b..5aef93fdc5fc9 100644
--- a/apps/web/src/i18n/translations/ja.json
+++ b/apps/web/src/i18n/translations/ja.json
@@ -3306,15 +3306,8 @@
"3390f0b2396998c0": "選択範囲を入力欄で引用",
"e5dc8d61a6d178ed": "選択範囲を短くしてください",
"a5b06aaaba1d742f": "引用",
- "b1d8a5a24bd684e3": "サブエージェント",
- "5a805b37d8940816": "コマンド",
- "da2da87e78bd6b11": "モニター",
- "b034f8434dd8479d": "バックグラウンドタスク",
- "519dd506361059c9": "コマンド",
- "b851b1f4c772dea4": "待機中",
- "83915f0968cde2cc": "実行中",
"b90e87f4b7125237": "詳細",
- "16dc67f5429d8bae": "バックグラウンドの作業",
+ "668e353261860b41": "バックグラウンドの作業",
"2188eee8f81b0f51": "サブエージェントを開く",
"3b03fc47eba632b4": "{count, plural, other {{formattedCount} 個の変更されたファイル}}",
"ec9e0be8ec693302": "すべてのフォルダーを折りたたむ",
diff --git a/apps/web/src/i18n/translations/ko.json b/apps/web/src/i18n/translations/ko.json
index ef69858aead11..ce3acdc09e825 100644
--- a/apps/web/src/i18n/translations/ko.json
+++ b/apps/web/src/i18n/translations/ko.json
@@ -3307,15 +3307,8 @@
"3390f0b2396998c0": "입력창에 선택 영역 인용",
"e5dc8d61a6d178ed": "선택 영역 줄이기",
"a5b06aaaba1d742f": "인용",
- "b1d8a5a24bd684e3": "서브에이전트",
- "5a805b37d8940816": "명령",
- "da2da87e78bd6b11": "모니터",
- "b034f8434dd8479d": "백그라운드 작업",
- "519dd506361059c9": "명령",
- "b851b1f4c772dea4": "대기 중",
- "83915f0968cde2cc": "실행 중",
"b90e87f4b7125237": "세부 정보",
- "16dc67f5429d8bae": "백그라운드 작업",
+ "668e353261860b41": "백그라운드 작업",
"2188eee8f81b0f51": "서브에이전트 열기",
"3b03fc47eba632b4": "{count, plural, other {변경된 파일 {formattedCount}개}}",
"ec9e0be8ec693302": "모든 폴더 접기",
diff --git a/apps/web/src/i18n/translations/pt-BR.json b/apps/web/src/i18n/translations/pt-BR.json
index 5b2f82a27a416..0292de76c91cc 100644
--- a/apps/web/src/i18n/translations/pt-BR.json
+++ b/apps/web/src/i18n/translations/pt-BR.json
@@ -3308,15 +3308,8 @@
"3390f0b2396998c0": "Citar a seleção no editor de mensagens",
"e5dc8d61a6d178ed": "Encurtar seleção",
"a5b06aaaba1d742f": "Citar",
- "b1d8a5a24bd684e3": "subagente",
- "5a805b37d8940816": "comando",
- "da2da87e78bd6b11": "monitor",
- "b034f8434dd8479d": "tarefa em segundo plano",
- "519dd506361059c9": "Comando",
- "b851b1f4c772dea4": "Aguardando",
- "83915f0968cde2cc": "Executando",
"b90e87f4b7125237": "Detalhes",
- "16dc67f5429d8bae": "Trabalho em segundo plano",
+ "668e353261860b41": "Trabalho em segundo plano",
"2188eee8f81b0f51": "Abrir subagente",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} arquivo alterado} other {{formattedCount} arquivos alterados}}",
"ec9e0be8ec693302": "Recolher todas as pastas",
diff --git a/apps/web/src/i18n/translations/ru.json b/apps/web/src/i18n/translations/ru.json
index 2891cb8165d7c..26318b19943a0 100644
--- a/apps/web/src/i18n/translations/ru.json
+++ b/apps/web/src/i18n/translations/ru.json
@@ -3308,15 +3308,8 @@
"3390f0b2396998c0": "Процитировать выделенное в поле ввода",
"e5dc8d61a6d178ed": "Сократите выделение",
"a5b06aaaba1d742f": "Цитировать",
- "b1d8a5a24bd684e3": "субагент",
- "5a805b37d8940816": "команда",
- "da2da87e78bd6b11": "монитор",
- "b034f8434dd8479d": "фоновая задача",
- "519dd506361059c9": "Команда",
- "b851b1f4c772dea4": "Ожидание",
- "83915f0968cde2cc": "Выполняется",
"b90e87f4b7125237": "Подробности",
- "16dc67f5429d8bae": "Фоновая работа",
+ "668e353261860b41": "Фоновая работа",
"2188eee8f81b0f51": "Открыть субагента",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} изменённый файл} few {{formattedCount} изменённых файла} many {{formattedCount} изменённых файлов} other {{formattedCount} изменённого файла}}",
"ec9e0be8ec693302": "Свернуть все папки",
diff --git a/apps/web/src/i18n/translations/sv.json b/apps/web/src/i18n/translations/sv.json
index c792d6fb4a981..cddc6a8de3320 100644
--- a/apps/web/src/i18n/translations/sv.json
+++ b/apps/web/src/i18n/translations/sv.json
@@ -3308,15 +3308,8 @@
"3390f0b2396998c0": "Citera markeringen i inmatningsfältet",
"e5dc8d61a6d178ed": "Korta ned markeringen",
"a5b06aaaba1d742f": "Citera",
- "b1d8a5a24bd684e3": "subagent",
- "5a805b37d8940816": "kommando",
- "da2da87e78bd6b11": "övervakare",
- "b034f8434dd8479d": "bakgrundsuppgift",
- "519dd506361059c9": "Kommando",
- "b851b1f4c772dea4": "Väntar",
- "83915f0968cde2cc": "Körs",
"b90e87f4b7125237": "Detaljer",
- "16dc67f5429d8bae": "Bakgrundsarbete",
+ "668e353261860b41": "Bakgrundsarbete",
"2188eee8f81b0f51": "Öppna subagent",
"3b03fc47eba632b4": "{count, plural, one {{formattedCount} ändrad fil} other {{formattedCount} ändrade filer}}",
"ec9e0be8ec693302": "Fäll ihop alla mappar",
diff --git a/apps/web/src/i18n/translations/zh.json b/apps/web/src/i18n/translations/zh.json
index cd80e9a35102a..d745eab202214 100644
--- a/apps/web/src/i18n/translations/zh.json
+++ b/apps/web/src/i18n/translations/zh.json
@@ -3312,15 +3312,8 @@
"3390f0b2396998c0": "在输入框中引用选中内容",
"e5dc8d61a6d178ed": "请缩短选中内容",
"a5b06aaaba1d742f": "引用",
- "b1d8a5a24bd684e3": "子智能体",
- "5a805b37d8940816": "命令",
- "da2da87e78bd6b11": "监控",
- "b034f8434dd8479d": "后台任务",
- "519dd506361059c9": "命令",
- "b851b1f4c772dea4": "等待中",
- "83915f0968cde2cc": "运行中",
"b90e87f4b7125237": "详情",
- "16dc67f5429d8bae": "后台任务",
+ "668e353261860b41": "后台任务",
"2188eee8f81b0f51": "打开子智能体",
"3b03fc47eba632b4": "{count, plural, other {{formattedCount} 个已更改的文件}}",
"ec9e0be8ec693302": "折叠全部文件夹",