From afaba2c0b77da3fa0f479ff2f7c16346bc188803 Mon Sep 17 00:00:00 2001 From: flamboh Date: Mon, 23 Nov 2026 07:16:52 +0000 Subject: [PATCH 1/2] feat(web): background work details open as a compact popover --- .../BackgroundWorkDetails.browser.test.tsx | 15 +- .../components/chat/BackgroundWorkDetails.tsx | 252 ++++++++++++------ .../chat/ThreadRelationshipsControl.tsx | 13 +- .../chat/threadDetailsPanelStyles.ts | 3 + apps/web/src/i18n/translations/de.json | 9 +- apps/web/src/i18n/translations/en.json | 9 +- apps/web/src/i18n/translations/es.json | 9 +- apps/web/src/i18n/translations/fr.json | 9 +- apps/web/src/i18n/translations/ja.json | 9 +- apps/web/src/i18n/translations/ko.json | 9 +- apps/web/src/i18n/translations/pt-BR.json | 9 +- apps/web/src/i18n/translations/ru.json | 9 +- apps/web/src/i18n/translations/sv.json | 9 +- apps/web/src/i18n/translations/zh.json | 9 +- 14 files changed, 192 insertions(+), 181 deletions(-) diff --git a/apps/web/src/components/chat/BackgroundWorkDetails.browser.test.tsx b/apps/web/src/components/chat/BackgroundWorkDetails.browser.test.tsx index d5d5d62d3c2ab..74d3d063b649f 100644 --- a/apps/web/src/components/chat/BackgroundWorkDetails.browser.test.tsx +++ b/apps/web/src/components/chat/BackgroundWorkDetails.browser.test.tsx @@ -2,7 +2,7 @@ import "~/index.css"; import { EnvironmentId, ProviderDriverKind, ThreadId, TurnItemId } from "@t3tools/contracts"; import * as DateTime from "effect/DateTime"; import { expect, it, vi } from "vite-plus/test"; -import { page } from "vite-plus/test/browser"; +import { page, userEvent } from "vite-plus/test/browser"; vi.mock(import("./CommandOutputPanel"), () => ({ useCommandOutputStreaming: () => true, CommandOutputPanel: () =>
Command output stream
, @@ -77,22 +77,25 @@ it("opens full command details for short labels and keeps pending tasks current" ); await using screen = await render(view("Audit")); await screen.getByRole("button", { name: "Details", exact: true }).click(); - await vi.waitFor(() => expect(page.getByRole("dialog").element().textContent).toContain(command)); + const popup = page.getByRole("dialog"); + await expect.element(popup.getByText(command)).not.toBeInTheDocument(); + await popup.getByRole("button", { name: /^Audit/ }).click(); + await vi.waitFor(() => expect(popup.element().textContent).toContain(command)); await expect.element(page.getByText("Command output stream")).not.toBeInTheDocument(); await screen.rerender(view(command)); - await expect.element(page.getByRole("heading", { name: "Command", exact: true })).toBeVisible(); + await expect.element(popup.getByRole("button", { name: /^python3 audit\.py/ })).toBeVisible(); await screen.rerender(view()); - await expect.element(page.getByRole("heading", { name: "Command", exact: true })).toBeVisible(); + await expect.element(popup.getByRole("button", { name: /^python3 audit\.py/ })).toBeVisible(); await screen.rerender(view("Check remaining modules", "running")); await expect - .element(page.getByRole("heading", { name: "Check remaining modules" })) + .element(popup.getByRole("button", { name: /^Check remaining modules/ })) .toBeVisible(); await expect.element(page.getByText("Command output stream")).toBeVisible(); await screen.rerender(view("Native fallback", "completed", false)); await expect.element(page.getByText("Command output stream")).toBeVisible(); - await page.getByRole("button", { name: "Close", exact: true }).click(); + await userEvent.keyboard("{Escape}"); await expect.element(page.getByRole("dialog")).not.toBeInTheDocument(); }); diff --git a/apps/web/src/components/chat/BackgroundWorkDetails.tsx b/apps/web/src/components/chat/BackgroundWorkDetails.tsx index 72ca70c2b16e1..019f476f223b7 100644 --- a/apps/web/src/components/chat/BackgroundWorkDetails.tsx +++ b/apps/web/src/components/chat/BackgroundWorkDetails.tsx @@ -4,21 +4,41 @@ import type { ThreadId, } from "@t3tools/contracts"; import type { ThreadStructure } from "@t3tools/client-runtime/state/shell"; +import { presentPendingBackgroundWork } from "@t3tools/client-runtime/state/thread-execution"; +import { commandDisplayText } from "@t3tools/client-runtime/work-log/command-label"; +import { formatDuration } from "@t3tools/shared/orchestrationTimingCopy"; import { backgroundWorkHoldsCompletion } from "@t3tools/shared/orchestrationV2PendingBackgroundWork"; -import { T, useGT } from "gt-react"; -import { useState } from "react"; +import * as DateTime from "effect/DateTime"; +import { T, useGT, useMessages } from "gt-react"; +import { + ActivityIcon, + ArrowRightIcon, + BotIcon, + ChevronDownIcon, + ChevronUpIcon, + CircleDashedIcon, + TerminalIcon, +} from "lucide-react"; +import { useId, useState } from "react"; +import { tickTextContent } from "~/lib/tickTextContent"; +import { cn } from "~/lib/utils"; +import { useEnvironmentProviders } from "~/state/environments"; import { InlineButton } from "../ui/button"; -import { - Dialog, - DialogHeader, - DialogPanel, - DialogPopup, - DialogTitle, - DialogTrigger, -} from "../ui/dialog"; +import { Popover, PopoverPopup, PopoverTrigger } from "../ui/popover"; import { CommandOutputPanel, useCommandOutputStreaming } from "./CommandOutputPanel"; import { ShellCommandBlock } from "./ShellCommandBlock"; +import { ThreadDetailsControl } from "./ThreadDetailsControl"; +import { ThreadDetailsSection } from "./ThreadDetailsSection"; +import { ThreadRelationshipIcon, threadRelationshipStatusLabel } from "./ThreadRelationshipIcon"; +import { THREAD_DETAILS_PANEL_ROW_TITLE_CLASS } from "./threadDetailsPanelStyles"; + +const KIND_ICONS = { + subagent: BotIcon, + command: TerminalIcon, + monitor: ActivityIcon, + background_task: CircleDashedIcon, +} as const; export function BackgroundWorkDetails(props: { readonly environmentId: EnvironmentId; @@ -28,93 +48,153 @@ export function BackgroundWorkDetails(props: { readonly onOpenThread: (threadId: ThreadId) => void; }) { const gt = useGT(); - const kindLabel = (kind: string) => { - switch (kind) { - case "subagent": - return gt("subagent", { $context: "kind of background work" }); - case "command": - return gt("command", { $context: "kind of background work" }); - case "monitor": - return gt("monitor", { $context: "kind of background work" }); - case "background_task": - return gt("background task", { $context: "kind of background work" }); - default: - return kind.replaceAll("_", " "); - } - }; + const m = useMessages(); + const headingId = useId(); const [open, setOpen] = useState(false); + const [expandedTaskId, setExpandedTaskId] = useState(null); const streamsOutput = useCommandOutputStreaming(props.environmentId); + const providers = useEnvironmentProviders().get(props.environmentId); + const presentation = presentPendingBackgroundWork(props.tasks, m); + const rows = (presentation?.items ?? []).flatMap((presented) => { + const task = props.tasks.find((candidate) => candidate.taskId === presented.taskId); + if (task === undefined) return []; + const itemKey = task.nativeItemId ?? task.taskId; + const item = props.turnItems.findLast((candidate) => + task.itemId === undefined + ? (candidate.nativeItemRef?.nativeId || candidate.id) === itemKey + : candidate.id === task.itemId, + ); + const command = task.command ?? (item?.type === "command_execution" ? item.input : undefined); + const commandLabel = command ? commandDisplayText(command) : undefined; + const itemId = task.itemId ?? (item?.type === "command_execution" ? item.id : undefined); + return [ + { + task, + title: task.description === undefined && commandLabel ? commandLabel : presented.label, + mono: + commandLabel !== undefined && + (task.description === undefined || presented.label === commandLabel), + command, + outputItemId: itemId && streamsOutput && item?.status === "running" ? itemId : undefined, + outputThreadId: task.sourceThreadId ?? item?.threadId ?? props.threadId, + activity: + item?.type === "subagent" ? item.progress?.replace(/\s+/gu, " ").trim() || null : null, + startedAtMs: item?.startedAt ? DateTime.toEpochMillis(item.startedAt) : null, + provider: + task.kind === "subagent" + ? providers?.find((provider) => provider.instanceId === task.providerInstanceId) + : undefined, + }, + ]; + }); return ( - - }> + + }> Details - - - - - Background work - - - -
- {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..1407ff266d3f8 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", + "74e35cffce7f833f": "Hintergrundarbeit · {count} laufen", "b90e87f4b7125237": "Details", - "16dc67f5429d8bae": "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..da6e36854420e 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", + "74e35cffce7f833f": "Background work · {count} running", "b90e87f4b7125237": "Details", - "16dc67f5429d8bae": "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..179285fe3bca7 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", + "74e35cffce7f833f": "Trabajo en segundo plano · {count} en ejecución", "b90e87f4b7125237": "Detalles", - "16dc67f5429d8bae": "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..d0b8f65baa77a 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", + "74e35cffce7f833f": "Travail en arrière-plan · {count} en cours", "b90e87f4b7125237": "Détails", - "16dc67f5429d8bae": "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..0a4d5910e41d8 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": "実行中", + "74e35cffce7f833f": "バックグラウンドの作業 · {count} 件実行中", "b90e87f4b7125237": "詳細", - "16dc67f5429d8bae": "バックグラウンドの作業", "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..28d57fa60b47b 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": "실행 중", + "74e35cffce7f833f": "백그라운드 작업 · {count}개 실행 중", "b90e87f4b7125237": "세부 정보", - "16dc67f5429d8bae": "백그라운드 작업", "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..51a342b895866 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", + "74e35cffce7f833f": "Trabalho em segundo plano · {count} em execução", "b90e87f4b7125237": "Detalhes", - "16dc67f5429d8bae": "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..7c8336a98bb78 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": "Выполняется", + "74e35cffce7f833f": "Фоновая работа · выполняется: {count}", "b90e87f4b7125237": "Подробности", - "16dc67f5429d8bae": "Фоновая работа", "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..66bb61fba960d 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", + "74e35cffce7f833f": "Bakgrundsarbete · {count} körs", "b90e87f4b7125237": "Detaljer", - "16dc67f5429d8bae": "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..418be29afeda4 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": "运行中", + "74e35cffce7f833f": "后台任务 · {count} 个运行中", "b90e87f4b7125237": "详情", - "16dc67f5429d8bae": "后台任务", "2188eee8f81b0f51": "打开子智能体", "3b03fc47eba632b4": "{count, plural, other {{formattedCount} 个已更改的文件}}", "ec9e0be8ec693302": "折叠全部文件夹", From 7e2efca22a398f63fd2a6185b390d9fcbf8c4e88 Mon Sep 17 00:00:00 2001 From: flamboh Date: Mon, 23 Nov 2026 07:33:17 +0000 Subject: [PATCH 2/2] fix(web): background work popover heading stays neutral --- apps/web/src/components/chat/BackgroundWorkDetails.tsx | 6 +----- apps/web/src/i18n/translations/de.json | 2 +- apps/web/src/i18n/translations/en.json | 2 +- apps/web/src/i18n/translations/es.json | 2 +- apps/web/src/i18n/translations/fr.json | 2 +- apps/web/src/i18n/translations/ja.json | 2 +- apps/web/src/i18n/translations/ko.json | 2 +- apps/web/src/i18n/translations/pt-BR.json | 2 +- apps/web/src/i18n/translations/ru.json | 2 +- apps/web/src/i18n/translations/sv.json | 2 +- apps/web/src/i18n/translations/zh.json | 2 +- 11 files changed, 11 insertions(+), 15 deletions(-) diff --git a/apps/web/src/components/chat/BackgroundWorkDetails.tsx b/apps/web/src/components/chat/BackgroundWorkDetails.tsx index 019f476f223b7..67cc4449d36bb 100644 --- a/apps/web/src/components/chat/BackgroundWorkDetails.tsx +++ b/apps/web/src/components/chat/BackgroundWorkDetails.tsx @@ -93,11 +93,7 @@ export function BackgroundWorkDetails(props: { Details - +
    {rows.map((row) => { const { task } = row; diff --git a/apps/web/src/i18n/translations/de.json b/apps/web/src/i18n/translations/de.json index 1407ff266d3f8..edcd981ad507b 100644 --- a/apps/web/src/i18n/translations/de.json +++ b/apps/web/src/i18n/translations/de.json @@ -3309,8 +3309,8 @@ "3390f0b2396998c0": "Auswahl im Eingabefeld zitieren", "e5dc8d61a6d178ed": "Auswahl kürzen", "a5b06aaaba1d742f": "Zitieren", - "74e35cffce7f833f": "Hintergrundarbeit · {count} laufen", "b90e87f4b7125237": "Details", + "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 da6e36854420e..16dae4bad74a3 100644 --- a/apps/web/src/i18n/translations/en.json +++ b/apps/web/src/i18n/translations/en.json @@ -3308,8 +3308,8 @@ "3390f0b2396998c0": "Cite selection in composer", "e5dc8d61a6d178ed": "Shorten selection", "a5b06aaaba1d742f": "Cite", - "74e35cffce7f833f": "Background work · {count} running", "b90e87f4b7125237": "Details", + "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 179285fe3bca7..31fc9469ac1fa 100644 --- a/apps/web/src/i18n/translations/es.json +++ b/apps/web/src/i18n/translations/es.json @@ -3308,8 +3308,8 @@ "3390f0b2396998c0": "Citar la selección en el cuadro de mensaje", "e5dc8d61a6d178ed": "Acortar selección", "a5b06aaaba1d742f": "Citar", - "74e35cffce7f833f": "Trabajo en segundo plano · {count} en ejecución", "b90e87f4b7125237": "Detalles", + "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 d0b8f65baa77a..f44ea42e65857 100644 --- a/apps/web/src/i18n/translations/fr.json +++ b/apps/web/src/i18n/translations/fr.json @@ -3308,8 +3308,8 @@ "3390f0b2396998c0": "Citer la sélection dans la zone de saisie", "e5dc8d61a6d178ed": "Raccourcir la sélection", "a5b06aaaba1d742f": "Citer", - "74e35cffce7f833f": "Travail en arrière-plan · {count} en cours", "b90e87f4b7125237": "Détails", + "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 0a4d5910e41d8..5aef93fdc5fc9 100644 --- a/apps/web/src/i18n/translations/ja.json +++ b/apps/web/src/i18n/translations/ja.json @@ -3306,8 +3306,8 @@ "3390f0b2396998c0": "選択範囲を入力欄で引用", "e5dc8d61a6d178ed": "選択範囲を短くしてください", "a5b06aaaba1d742f": "引用", - "74e35cffce7f833f": "バックグラウンドの作業 · {count} 件実行中", "b90e87f4b7125237": "詳細", + "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 28d57fa60b47b..ce3acdc09e825 100644 --- a/apps/web/src/i18n/translations/ko.json +++ b/apps/web/src/i18n/translations/ko.json @@ -3307,8 +3307,8 @@ "3390f0b2396998c0": "입력창에 선택 영역 인용", "e5dc8d61a6d178ed": "선택 영역 줄이기", "a5b06aaaba1d742f": "인용", - "74e35cffce7f833f": "백그라운드 작업 · {count}개 실행 중", "b90e87f4b7125237": "세부 정보", + "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 51a342b895866..0292de76c91cc 100644 --- a/apps/web/src/i18n/translations/pt-BR.json +++ b/apps/web/src/i18n/translations/pt-BR.json @@ -3308,8 +3308,8 @@ "3390f0b2396998c0": "Citar a seleção no editor de mensagens", "e5dc8d61a6d178ed": "Encurtar seleção", "a5b06aaaba1d742f": "Citar", - "74e35cffce7f833f": "Trabalho em segundo plano · {count} em execução", "b90e87f4b7125237": "Detalhes", + "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 7c8336a98bb78..26318b19943a0 100644 --- a/apps/web/src/i18n/translations/ru.json +++ b/apps/web/src/i18n/translations/ru.json @@ -3308,8 +3308,8 @@ "3390f0b2396998c0": "Процитировать выделенное в поле ввода", "e5dc8d61a6d178ed": "Сократите выделение", "a5b06aaaba1d742f": "Цитировать", - "74e35cffce7f833f": "Фоновая работа · выполняется: {count}", "b90e87f4b7125237": "Подробности", + "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 66bb61fba960d..cddc6a8de3320 100644 --- a/apps/web/src/i18n/translations/sv.json +++ b/apps/web/src/i18n/translations/sv.json @@ -3308,8 +3308,8 @@ "3390f0b2396998c0": "Citera markeringen i inmatningsfältet", "e5dc8d61a6d178ed": "Korta ned markeringen", "a5b06aaaba1d742f": "Citera", - "74e35cffce7f833f": "Bakgrundsarbete · {count} körs", "b90e87f4b7125237": "Detaljer", + "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 418be29afeda4..d745eab202214 100644 --- a/apps/web/src/i18n/translations/zh.json +++ b/apps/web/src/i18n/translations/zh.json @@ -3312,8 +3312,8 @@ "3390f0b2396998c0": "在输入框中引用选中内容", "e5dc8d61a6d178ed": "请缩短选中内容", "a5b06aaaba1d742f": "引用", - "74e35cffce7f833f": "后台任务 · {count} 个运行中", "b90e87f4b7125237": "详情", + "668e353261860b41": "后台任务", "2188eee8f81b0f51": "打开子智能体", "3b03fc47eba632b4": "{count, plural, other {{formattedCount} 个已更改的文件}}", "ec9e0be8ec693302": "折叠全部文件夹",