diff --git a/src/components/thread/DelegationSubTraceBody.tsx b/src/components/thread/DelegationSubTraceBody.tsx index d9bdc5fd..70e5afa9 100644 --- a/src/components/thread/DelegationSubTraceBody.tsx +++ b/src/components/thread/DelegationSubTraceBody.tsx @@ -10,8 +10,8 @@ import type { TokenUsage, TraceRound } from "../../types/thread"; // settled by issue #1355, replacing the #934 modal): the row head carries // the fold toggle (TraceRow owns it), and the panel renders full width // beneath the row -- the sub-agent's rounds in the main trace's folding -// posture (each round's thinking fold + connective prose + its "Trace · -// N calls" step fold, stacked flush exactly as the main trace stacks its +// posture (each round's thinking fold + connective prose + its per-tool +// count step fold, stacked flush exactly as the main trace stacks its // rounds), the running face's task head above them, the usage subtotal as // the closing receipt -- so a sub-round reads exactly like a main round. // The rows reuse the main trace's row list, whose nesting is physically diff --git a/src/components/thread/TraceRow.tsx b/src/components/thread/TraceRow.tsx index 4e586d1a..b2309a2b 100644 --- a/src/components/thread/TraceRow.tsx +++ b/src/components/thread/TraceRow.tsx @@ -2,7 +2,6 @@ import { useState, type ReactNode } from "react"; import { FormattedMessage, useIntl, type IntlShape } from "react-intl"; import { Check, TriangleAlert } from "lucide-react"; import { Badge } from "@/components/ui/badge"; -import { cn } from "@/lib/utils"; import { FoldToggle } from "./FoldToggle"; import { TraceList } from "./TraceList"; import { TraceSummaryFold } from "./TraceSummaryFold"; @@ -81,13 +80,36 @@ function SuccessGlyph({ success }: { success: boolean }) { ); } -// One round's step fold (the "Trace · N calls" tier, ADR-0078's folding -// discipline): the round's call count reads on the fold head so a rail scan -// shows which rounds made multiple calls without expanding; the rows mount -// only while expanded. Shared by the settled main trace's round adapter -// (TurnCard) and the delegation sub-trace's rounds (issue #1355) so the two -// faces cannot drift; `renderSubTrace` is the delegation panel injection -// (issue #934) -- the sub-face passes none. +// The step fold's head label (issue #1604, recalibrated on the device): +// per-tool call counts -- "explore ×3 · describe ×1". The tool name is +// the call's identity; the operation category alone collapsed to noise +// on a single-category round (a data-exploration turn of all reads read +// as an undifferentiated 读 ×N). Order is first appearance -- the trace +// is append-only within a round, so re-renders never reshuffle it, and +// tool names are untranslated data, so locale switches cannot either. +// The category stays on the row's OperationBadge. +function foldLabel(intl: IntlShape, calls: ReadonlyArray): string { + // A Map keeps its insertion order, which over an append-only trace is + // the first-appearance order above. + const counts = new Map(); + for (const call of calls) { + counts.set(call.name, (counts.get(call.name) ?? 0) + 1); + } + return Array.from(counts, ([tool, count]) => + intl.formatMessage( + { id: "thread.trace.toolCount", defaultMessage: "{tool} ×{count}" }, + { tool, count }, + ), + ).join(" · "); +} + +// One round's step fold (ADR-0078's folding discipline): the fold head +// speaks the round's work mix (the per-tool counts above) so a rail scan +// shows which tools a round ran without expanding; the rows mount only +// while expanded. Shared by the settled main trace's round adapter +// (TurnCard) and the delegation sub-trace's rounds (issue #1355) so the +// two faces cannot drift; `renderSubTrace` is the delegation panel +// injection (issue #934) -- the sub-face passes none. export function TraceStepFold({ calls, renderSubTrace, @@ -96,6 +118,7 @@ export function TraceStepFold({ renderSubTrace?: (entry: TraceEntry) => ReactNode; }) { const [stepsExpanded, setStepsExpanded] = useState(false); + const intl = useIntl(); if (calls.length === 0) return null; return ( <> @@ -104,11 +127,7 @@ export function TraceStepFold({ expanded={stepsExpanded} onToggle={() => setStepsExpanded((v) => !v)} > - + {foldLabel(intl, calls)} {stepsExpanded && ( @@ -137,6 +156,7 @@ export function TraceRow({ subTrace?: ReactNode; }) { const [subOpen, setSubOpen] = useState(false); + const intl = useIntl(); // The gate lives here, once: a row whose entry carries no sub-rounds (or // whose caller supplied no body) renders neither the toggle nor the panel, // so the callers inject the body unconditionally over their row lists. @@ -153,6 +173,9 @@ export function TraceRow({ {/* Tool name truncates with the row's summary family @@ -185,17 +208,24 @@ export function TraceRow({ )} /> - {/* The excerpt is the cross-turn retrospection anchor (ADR-0078). - * The one SUCCESS that carries one is a capped delegation report's - * truncation notice (issue #1047) -- the projections keep exactly - * that success excerpt -- rendered muted under the check glyph: the - * call completed, the answer was just cut. */} - {entry.result_excerpt !== "" && ( + {/* The failure excerpt is the cross-turn retrospection anchor + * (ADR-0078): visible without a click, destructive-styled, and + * height-capped since #1604 so a multi-KB error cannot push the + * whole screen out of view (the thinking fold's cap face and its + * #1363 keyboard-reachable region posture). A success never + * renders here anymore (#1604) -- the one success excerpt the + * projections keep, the capped delegation report's truncation + * notice (issue #1047), folds into the summary expand block + * above. */} + {!entry.success && entry.result_excerpt !== "" && ( {entry.result_excerpt} diff --git a/src/components/thread/TraceSummaryFold.tsx b/src/components/thread/TraceSummaryFold.tsx index 758b4ac0..7fe101c1 100644 --- a/src/components/thread/TraceSummaryFold.tsx +++ b/src/components/thread/TraceSummaryFold.tsx @@ -40,6 +40,7 @@ export function TraceSummaryFold({ summary, summaryClassName, head = null, + resultExcerpt, }: { summary: string; /** The hook class for the truncated summary span -- the visual @@ -48,6 +49,12 @@ export function TraceSummaryFold({ /** The site-specific line head (spinner / shield, tool name, badges) * rendered inside the line before the summary. */ head?: ReactNode; + /** The call's result excerpt, folded into the expand block beside the + * argument summary as a second column (issue #1604). Absent keeps the + * single-column block -- the trace row passes it only for the one + * success whose excerpt survives the projection (the capped + * delegation's truncation notice, issue #1047). */ + resultExcerpt?: string; }) { const [expanded, setExpanded] = useState(false); const intl = useIntl(); @@ -95,7 +102,19 @@ export function TraceSummaryFold({ defaultMessage: "Full summary", })} > - {summary} + {resultExcerpt === undefined ? ( + summary + ) : ( + // Both faces of the call in one capped block (issue #1604): + // the argument summary left, the result excerpt right of the + // divider -- each column free to wrap, the cap bounds the pair. + + {summary} + + {resultExcerpt} + + + )}

)} diff --git a/src/components/thread/__tests__/DelegationSubTraceBody.test.tsx b/src/components/thread/__tests__/DelegationSubTraceBody.test.tsx index 2aa5d84e..cc6da08d 100644 --- a/src/components/thread/__tests__/DelegationSubTraceBody.test.tsx +++ b/src/components/thread/__tests__/DelegationSubTraceBody.test.tsx @@ -93,7 +93,7 @@ describe("DelegationSubTraceBody inline panel (issue #1355)", () => { // step fold (the main trace's posture), collapsed by default. expect(screen.getByText("Checking the sheet first.")).toBeInTheDocument(); expect(screen.queryByText("SELECT count(*) AS n FROM result_1")).not.toBeInTheDocument(); - fireEvent.click(screen.getByRole("button", { name: /trace · 2 calls/i })); + fireEvent.click(screen.getByRole("button", { name: /explore ×1 · materialize ×1/i })); expect(screen.getByText("SELECT count(*) AS n FROM result_1")).toBeInTheDocument(); // The failed sub-call keeps its bounded excerpt -- the cross-turn // failure anchor. @@ -123,9 +123,9 @@ describe("DelegationSubTraceBody inline panel (issue #1355)", () => { const toggles = container.querySelectorAll(".thinking-toggle"); expect(toggles).toHaveLength(1); expect(toggles[0].getAttribute("aria-expanded")).toBe("false"); - // A sub-round with no calls renders no step fold at all -- the "Trace - // · 0 calls" head must not appear (TraceStepFold's empty guard, the - // only line of defense on this face). + // A sub-round with no calls renders no step fold at all -- no count + // head must appear (TraceStepFold's empty guard, the only line of + // defense on this face). expect(container.querySelectorAll(".trace-toggle")).toHaveLength(0); expect(screen.queryByText("inner reasoning")).not.toBeInTheDocument(); fireEvent.click(toggles[0]); diff --git a/src/components/thread/__tests__/Thread.test.tsx b/src/components/thread/__tests__/Thread.test.tsx index 93320460..5370da9c 100644 --- a/src/components/thread/__tests__/Thread.test.tsx +++ b/src/components/thread/__tests__/Thread.test.tsx @@ -1047,7 +1047,7 @@ describe("Thread", () => { } it("defaults COLLAPSED: question + outcome visible, the process behind the turn head", () => { - renderThread( + const { container } = renderThread( { expect(screen.getByText("多少行")).toBeInTheDocument(); const head = screen.getByRole("button", { name: /已取消/ }); expect(head).toHaveAttribute("aria-expanded", "false"); - expect(screen.queryByRole("button", { name: /轨迹 · 2 次调用/ })).not.toBeInTheDocument(); + expect(container.querySelector(".trace-toggle")).toBeNull(); expect(screen.queryByText("no such table")).not.toBeInTheDocument(); expect(screen.queryByText("SELECT count(*) FROM people")).not.toBeInTheDocument(); }); @@ -1075,8 +1075,8 @@ describe("Thread", () => { ); // Issue #1282: the head opens first; the per-round folds live inside it. fireEvent.click(screen.getByRole("button", { name: /已取消/ })); - fireEvent.click(screen.getByRole("button", { name: /轨迹 · 2 次调用/ })); - const toggle = screen.getByRole("button", { name: /轨迹 · 2 次调用/ }); + fireEvent.click(screen.getByRole("button", { name: "explore ×1 · materialize ×1" })); + const toggle = screen.getByRole("button", { name: "explore ×1 · materialize ×1" }); expect(toggle).toHaveAttribute("aria-expanded", "true"); // Both calls render with their summaries + operation badges. expect(screen.getByText("explore")).toBeInTheDocument(); @@ -1089,14 +1089,14 @@ describe("Thread", () => { }); it("omits the toggle for a zero-call turn (no trace to expand)", () => { - renderThread( + const { container } = renderThread( {}} />, ); - expect(screen.queryByRole("button", { name: /轨迹/ })).not.toBeInTheDocument(); + expect(container.querySelector(".trace-toggle")).toBeNull(); }); }); @@ -1309,8 +1309,8 @@ describe("Thread", () => { // Thinking + steps folds are per round, both default collapsed. const thinking = screen.getByRole("button", { name: "思考 · 1.5s" }); expect(thinking).toHaveAttribute("aria-expanded", "false"); - const round1 = screen.getByRole("button", { name: "轨迹 · 2 次调用" }); - const round2 = screen.getByRole("button", { name: "轨迹 · 1 次调用" }); + const round1 = screen.getByRole("button", { name: "explore ×1 · materialize ×1" }); + const round2 = screen.getByRole("button", { name: "explore ×1" }); expect(round1).toHaveAttribute("aria-expanded", "false"); expect(round2).toHaveAttribute("aria-expanded", "false"); expect(screen.queryByText("先推理一下")).not.toBeInTheDocument(); @@ -1323,17 +1323,17 @@ describe("Thread", () => { fireEvent.click(screen.getByRole("button", { name: /已回答/ })); fireEvent.click(screen.getByRole("button", { name: "思考 · 1.5s" })); expect(screen.getByText("先推理一下")).toBeInTheDocument(); - fireEvent.click(screen.getByRole("button", { name: "轨迹 · 2 次调用" })); + fireEvent.click(screen.getByRole("button", { name: "explore ×1 · materialize ×1" })); expect(screen.getByText("SELECT 1")).toBeInTheDocument(); expect(screen.getByText("SELECT 2")).toBeInTheDocument(); // Round 2's fold stays collapsed -- its call is still hidden. expect(screen.queryByText("SELECT 3")).not.toBeInTheDocument(); - fireEvent.click(screen.getByRole("button", { name: "轨迹 · 1 次调用" })); + fireEvent.click(screen.getByRole("button", { name: "explore ×1" })); expect(screen.getByText("SELECT 3")).toBeInTheDocument(); }); it("folds an all-prose round (no calls, no thinking) behind the head, with no inner fold chrome", () => { - renderChat( + const { container } = renderChat( chatRecord({ trace: [ { text: "直接答复", calls: [] }, @@ -1344,7 +1344,7 @@ describe("Thread", () => { // (issue #1282) and carries no per-round fold chrome of its own. fireEvent.click(screen.getByRole("button", { name: /已回答/ })); expect(screen.getByText("直接答复")).toBeInTheDocument(); - expect(screen.queryByRole("button", { name: /轨迹/ })).not.toBeInTheDocument(); + expect(container.querySelector(".trace-toggle")).toBeNull(); expect(screen.queryByRole("button", { name: /思考/ })).not.toBeInTheDocument(); }); diff --git a/src/components/thread/__tests__/TraceSummaryFold.test.tsx b/src/components/thread/__tests__/TraceSummaryFold.test.tsx index 2f4f078a..bcc45a94 100644 --- a/src/components/thread/__tests__/TraceSummaryFold.test.tsx +++ b/src/components/thread/__tests__/TraceSummaryFold.test.tsx @@ -47,3 +47,42 @@ describe("TraceSummaryFold scroll container (issue #1363)", () => { expect(screen.queryByText(/Keyboard-reachable/)).not.toBeInTheDocument(); }); }); + +// Issue #1604: a success row's result excerpt folds into the expand block +// beside the argument summary -- same capped block, two columns. +describe("TraceSummaryFold result excerpt column (issue #1604)", () => { + it("shows the summary and the result excerpt as columns of one block", () => { + const { container } = renderWithProviders( + , + ); + fireEvent.click(container.querySelector(".summary-fold-toggle") as Element); + const block = document.querySelector(".summary-fold-block"); + expect(block).not.toBeNull(); + expect(block).toHaveTextContent("SELECT * FROM result_1"); + expect(block).toHaveTextContent("42 rows returned"); + // The columnar shape itself: the excerpt rides the divider-bearing + // right column, not a stacked second paragraph. + const divider = block?.querySelector(".border-l"); + expect(divider).not.toBeNull(); + expect(divider).toHaveTextContent("42 rows returned"); + }); + + it("keeps the single-column block when no excerpt is given", () => { + const { container } = renderWithProviders( + , + ); + fireEvent.click(container.querySelector(".summary-fold-toggle") as Element); + const block = document.querySelector(".summary-fold-block"); + expect(block?.textContent).toBe("SELECT * FROM result_1"); + // No excerpt means no divider column -- the absent face must not + // regress into an empty right column with a stray hairline. + expect(block?.querySelector(".border-l")).toBeNull(); + }); +}); diff --git a/src/components/thread/__tests__/TraceView.test.tsx b/src/components/thread/__tests__/TraceView.test.tsx index 8db03d84..40148ba0 100644 --- a/src/components/thread/__tests__/TraceView.test.tsx +++ b/src/components/thread/__tests__/TraceView.test.tsx @@ -4,8 +4,10 @@ import { IntlProvider } from "react-intl"; import type { ReactElement } from "react"; import { LiveRow } from "../TraceView"; +import { TraceStepFold } from "../TraceRow"; import type { LiveRoundRow } from "../../../session/useTurnFlow"; import type { FileAttachment } from "../../../types/approval"; +import type { TraceEntry } from "../../../types/thread"; // LiveRow's pending approval card (ADR-0083) + the file-delivery // expand-on-demand view (issue #672, ADR-0109 Decision 8): the snapshot @@ -170,12 +172,12 @@ describe("LiveRow caption tokens (issue #826)", () => { }); }); -describe("LiveRow excerpt gate (issue #1047)", () => { - it("renders a capped delegation's truncation notice under a success row, muted", () => { +describe("LiveRow excerpt gate (issue #1047, #1604)", () => { + it("folds a capped delegation's truncation notice into the expand block", () => { // The one success whose excerpt survives the projection is a capped - // delegation report's marker-bearing notice (#1047): it renders under - // the check glyph muted -- the call completed, the answer was just cut - // -- while the failure excerpt keeps the destructive anchor styling. + // delegation report's marker-bearing notice (#1047). Issue #1604 moves + // it off the row line into the summary fold's expand block, beside the + // argument summary: the row stays single-line. const capped = renderWithProviders( { onRespond={vi.fn()} />, ); - const notice = capped.container.querySelector(".trace-excerpt"); - expect(notice).not.toBeNull(); - expect(notice).toHaveTextContent("[output truncated at the token cap]"); - expect(notice).toHaveClass("text-muted-foreground"); - // The two stylings are mutually exclusive (cn dedupes the family), and - // the negative assertion keeps it that way through any regression to - // plain concatenation. - expect(notice).not.toHaveClass("text-destructive"); + expect(capped.container.querySelector(".trace-excerpt")).toBeNull(); + fireEvent.click(summaryFoldToggle(capped.container)); + const block = foldBlock(capped.container); + expect(block).not.toBeNull(); + expect(block).toHaveTextContent(SUMMARY); + expect(block).toHaveTextContent("[output truncated at the token cap]"); + }); + + it("keeps a failure excerpt un-folded under the row, scroll-capped", () => { + // The failure excerpt is the cross-turn retrospection anchor (ADR-0078): + // visible without a click, destructive-styled, now height-capped so a + // multi-KB error cannot push the whole screen out of view (#1604). const failed = renderWithProviders( { />, ); const failedExcerpt = failed.container.querySelector(".trace-excerpt"); - expect(failedExcerpt).toHaveClass("text-destructive"); + expect(failedExcerpt).toHaveTextContent("boom"); + expect(failedExcerpt).toHaveClass("text-destructive", "max-h-48", "overflow-y-auto"); expect(failedExcerpt).not.toHaveClass("text-muted-foreground"); + // The cap carries the #1363 keyboard-reachable posture the other + // height-capped regions hold: focusable, named, scrollable by arrows. + expect(failedExcerpt).toHaveAttribute("tabindex", "0"); + expect(failedExcerpt).toHaveAttribute("role", "region"); + expect(failedExcerpt).toHaveAttribute("aria-label", "Error excerpt"); + // The success gate keeps the failure OUT of the summary fold's block + // (#1604): expanding the row shows the argument summary alone, not a + // second copy of the error as the block's right column. + fireEvent.click(summaryFoldToggle(failed.container)); + expect(foldBlock(failed.container)).toHaveTextContent(SUMMARY); + expect(foldBlock(failed.container)).not.toHaveTextContent("boom"); + }); + + it("renders neither excerpt face for a clean success row", () => { const clean = renderWithProviders( { />, ); expect(clean.container.querySelector(".trace-excerpt")).toBeNull(); + fireEvent.click(summaryFoldToggle(clean.container)); + expect(foldBlock(clean.container)).toHaveTextContent(SUMMARY); + }); +}); + +// The step fold's head label (#1604, recalibrated on the real device): +// per-tool call counts in first-appearance order -- the tool name is the +// call's identity, the operation category alone collapses to noise on a +// single-category round. Tool names are untranslated data, so the order +// is stable across re-renders and locale switches. +describe("TraceStepFold fold label (issue #1604)", () => { + const call = (over: Partial = {}): TraceEntry => ({ + name: "explore", + operation_kind: "read", + summary: "SELECT 1", + success: true, + result_excerpt: "", + ...over, + }); + + it("counts each tool in first-appearance order", () => { + const { container } = renderWithProviders( + , + ); + expect(container.querySelector(".trace-toggle")).toHaveAttribute( + "aria-expanded", + "false", + ); + expect( + screen.getByRole("button", { name: "explore ×2 · describe ×1" }), + ).toBeInTheDocument(); + }); + + it("does not reorder alphabetically -- first appearance leads", () => { + renderWithProviders( + , + ); + expect( + screen.getByRole("button", { name: "web_search ×2 · explore ×1" }), + ).toBeInTheDocument(); + }); + + it("keeps the count form for a single tool", () => { + renderWithProviders( + , + ); + expect(screen.getByRole("button", { name: "explore ×3" })).toBeInTheDocument(); + }); + + it("renders no fold for a zero-call round", () => { + const { container } = renderWithProviders(); + expect(container.querySelector(".trace-toggle")).toBeNull(); }); }); diff --git a/src/components/thread/__tests__/TurnCard.test.tsx b/src/components/thread/__tests__/TurnCard.test.tsx index b1f7f814..abf4a8db 100644 --- a/src/components/thread/__tests__/TurnCard.test.tsx +++ b/src/components/thread/__tests__/TurnCard.test.tsx @@ -525,7 +525,7 @@ describe("TurnCard sub-agent subtotal pairing (ADR-0129, issue #1270)", () => { // Issue #1282: the per-round folds live inside the turn-level process // fold -- the head opens first. fireEvent.click(screen.getByRole("button", { name: /已回答/ })); - screen.getAllByText("轨迹 · 1 次调用").forEach((t) => fireEvent.click(t)); + screen.getAllByText("analyst ×1").forEach((t) => fireEvent.click(t)); fireEvent.click(screen.getAllByText("子智能体轨迹")[roundIndex]); }; @@ -553,7 +553,7 @@ describe("TurnCard sub-agent subtotal pairing (ADR-0129, issue #1270)", () => { renderCard(record); // Issue #1282: the head opens first; the per-round fold lives inside it. fireEvent.click(screen.getByRole("button", { name: /已回答/ })); - fireEvent.click(screen.getByText("轨迹 · 2 次调用")); + fireEvent.click(screen.getByText("analyst ×2")); // The refusal renders no sub-trace fold (the row's own gate) -- // exactly one openable expansion remains. const buttons = screen.getAllByText("子智能体轨迹"); @@ -610,7 +610,7 @@ describe("TurnCard turn process fold (issue #1282)", () => { expect(head).not.toBeNull(); expect(head).toHaveAttribute("aria-expanded", "false"); // The per-round face mounts inside the fold on expand -- none of it at rest. - expect(screen.queryByText("轨迹 · 1 次调用")).not.toBeInTheDocument(); + expect(container.querySelector(".trace-toggle")).toBeNull(); expect(screen.queryByText("先看表")).not.toBeInTheDocument(); // The answer is the reading mainstay -- outside the fold. expect(container.querySelector(".turn-outcome.textual")).not.toBeNull(); @@ -627,11 +627,16 @@ describe("TurnCard turn process fold (issue #1282)", () => { }); it("expands to the incumbent per-round face (thinking, prose, steps)", () => { - renderCard(tracedRecord()); + const { container } = renderCard(tracedRecord()); fireEvent.click(screen.getByRole("button", { name: /已回答/ })); expect(screen.getByText("先看表")).toBeInTheDocument(); expect(screen.getByRole("button", { name: "思考 · 3.2s" })).toBeInTheDocument(); - expect(screen.getAllByText("轨迹 · 1 次调用")).toHaveLength(2); + // One count fold per round, labeled by the fixture's tool names + // (round 1 explore, round 2 materialize). + const folds = container.querySelectorAll(".trace-toggle"); + expect(folds).toHaveLength(2); + expect(folds[0]).toHaveTextContent("explore ×1"); + expect(folds[1]).toHaveTextContent("materialize ×1"); }); it("renders no head when the trace carries no content at all", () => { diff --git a/src/locales/en-US.json b/src/locales/en-US.json index 3555dc0b..fd910bbe 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -747,15 +747,16 @@ "thread.trace.op.network": "network", "thread.trace.op.read": "read", "thread.trace.op.write": "write", + "thread.trace.toolCount": "{tool} ×{count}", "thread.trace.delegationBatch": "{done} of {total} done, {running} running", "thread.trace.delegationStep": "step {n}", "thread.trace.delegationTaskAria": "Delegation task", + "thread.trace.excerptAria": "Error excerpt", "thread.trace.errorStackAria": "Error stack", "thread.trace.successAria": "Call succeeded", "thread.trace.summaryBlockAria": "Full summary", "thread.trace.thinkingAria": "Agent thinking", "thread.trace.thinkingToggle": "Thinking · {sec}s", - "thread.trace.toggle": "Trace · {count} {count, plural, one {call} other {calls}}", "thread.trace.viewSubtrace": "Sub-agent trace", "thread.userBubble.invokedSkillsAria": "Skills invoked with this message", "update.overlay.title": "Installing update", diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json index 9c7a9c9e..9638cd6f 100644 --- a/src/locales/zh-CN.json +++ b/src/locales/zh-CN.json @@ -747,15 +747,16 @@ "thread.trace.op.network": "网络", "thread.trace.op.read": "读", "thread.trace.op.write": "写", + "thread.trace.toolCount": "{tool} ×{count}", "thread.trace.delegationBatch": "{total} 个中 {done} 个完成,{running} 个运行中", "thread.trace.delegationStep": "第 {n} 步", "thread.trace.delegationTaskAria": "委派任务", + "thread.trace.excerptAria": "错误摘要", "thread.trace.errorStackAria": "错误堆栈", "thread.trace.successAria": "调用成功", "thread.trace.summaryBlockAria": "完整摘要", "thread.trace.thinkingAria": "智能体思考", "thread.trace.thinkingToggle": "思考 · {sec}s", - "thread.trace.toggle": "轨迹 · {count} 次调用", "thread.trace.viewSubtrace": "子智能体轨迹", "thread.userBubble.invokedSkillsAria": "随此消息调用的技能", "update.overlay.title": "正在安装更新",