Multiplayer agent harness for work.
Fix tool-call summary spacing (#2079)
Regan Bell3ab959e0257e
diff --git a/plugins/web-ui/src/chat.ts b/plugins/web-ui/src/chat.tsindex 114a4c693..10e0927a2 100644--- a/plugins/web-ui/src/chat.ts+++ b/plugins/web-ui/src/chat.ts@@ -3175,12 +3175,13 @@ export function createChatSurface(const session = sessionPresentation(row, status);const sessionView = session ? sessionToolView(call, result, sessionsState.list) : null;const sessionDetail = [sessionView?.detail, session?.preview].filter(Boolean).join(" · ");+ const sessionText = session ? [session.label, sessionDetail].filter(Boolean).join(" ") : null;const rowIcon = session? Bot: { search: Search, read: BookOpen, execute: meta.icon, other: meta.icon }[description.category];const classes = ["tool-row", `tool-${kind}`].join(" ");const head = html`<span class="tool-icon">${icon(rowIcon, 15)}</span>- ${session ? html`<span class="session-action">${session.label}</span>${sessionView?.chipTitle ? subagentChip(sessionView.chipTitle, sessionView.sessionId) : nothing}${sessionDetail ? html`<span class="tool-label session-message" title=${sessionDetail}>${sessionDetail}</span>` : nothing}` : html`<span class="tool-label" title=${detail ? `${label}: ${detail}` : label}>${visible}</span>`}`;+ ${session && sessionView?.chipTitle ? html`<span class="session-action">${session.label}</span>${subagentChip(sessionView.chipTitle, sessionView.sessionId)}${sessionDetail ? html`<span class="tool-label session-message" title=${sessionDetail}>${sessionDetail}</span>` : nothing}` : html`<span class="tool-label" title=${sessionText ?? (detail ? `${label}: ${detail}` : label)}>${sessionText ?? visible}</span>`}`;if (!row.call && !row.result) return html`<div class="${classes}">${head}</div>`;const renderDisclosure = (details: HTMLDetailsElement): void => {const host = details.querySelector<HTMLElement>(".tool-disclosure-host");diff --git a/plugins/web-ui/src/shell.css b/plugins/web-ui/src/shell.cssindex 04cb07ed7..4be883008 100644--- a/plugins/web-ui/src/shell.css+++ b/plugins/web-ui/src/shell.css@@ -2800,7 +2800,6 @@ qm-markdown .tok-in {}.session-message {flex: 1 1 0;- margin-left: 4px;}.tool-row.tool-approval {color: var(--foreground);diff --git a/plugins/web-ui/test/work-fold-source.test.ts b/plugins/web-ui/test/work-fold-source.test.tsindex f7289e0f8..89773b00b 100644--- a/plugins/web-ui/test/work-fold-source.test.ts+++ b/plugins/web-ui/test/work-fold-source.test.ts@@ -76,7 +76,7 @@ test("thinking stays in sequence but is independently collapsible", () => {test("dense activity rows let their icons carry repeated type labels", () => {assert.match(chat, /thinkingPresentation\(/);assert.match(chat, /activityLabel\(row, status\)/);- assert.match(chat, />\$\{visible\}<\/span>/);+ assert.match(chat, /sessionText \?\? visible\}<\/span>/);assert.doesNotMatch(chat, />Thinking\$\{preview/);assert.doesNotMatch(chat, />\$\{label\}\$\{detail/);});@@ -97,9 +97,8 @@ test("stopped work shares posted reply rendering and shows one status without ac});test("session rows preserve aggregate details and only render named target chips", () => {- assert.match(- chat,- /sessionView\?\.chipTitle \? subagentChip\(sessionView.chipTitle, sessionView.sessionId\) : nothing/,- );+ assert.match(chat, /session && sessionView\?\.chipTitle \? html/);+ assert.match(chat, /subagentChip\(sessionView.chipTitle, sessionView.sessionId\)/);+ assert.match(chat, /\[session.label, sessionDetail\].filter\(Boolean\).join\(" "\)/);assert.match(chat, /const sessionDetail = \[sessionView\?\.detail, session\?\.preview\]/);});