惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
Jina AI
Jina AI
博客园 - 叶小钗
雷峰网
雷峰网
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
量子位

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: label collapsed tool cards by tool · openclaw/opencl...
shakkernerd · 2026-05-31 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -30,6 +30,7 @@ Docs: https://docs.openclaw.ai

3030
3131

### Fixes

3232
33+

- Control UI: keep collapsed tool cards labeled with the tool name and action instead of generic output text. Thanks @shakkernerd.

3334

- Agents/Codex: surface Skill Workshop guidance in Codex app-server prompts when `skill_workshop` is available. Thanks @shakkernerd.

3435

- CLI: keep `plugins list --json` on the snapshot-only path so plugin sweeps avoid loading the full runtime status graph.

3536

- Plugins: make PixVerse external-plugin ClawHub metadata explicit and keep it out of bundled dist builds.

Original file line numberDiff line numberDiff line change

@@ -127,6 +127,32 @@ describe("tool-cards", () => {

127127

expect(container.querySelector(".chat-tool-msg-body")).toBeNull();

128128

});

129129
130+

it("keeps tool display labels primary for collapsed result rows with action details", () => {

131+

const container = document.createElement("div");

132+

render(

133+

renderToolCard(

134+

{

135+

id: "msg:5a:call-5a",

136+

name: "skill_workshop",

137+

args: { detail: "create" },

138+

inputText: '{\n "detail": "create"\n}',

139+

outputText: "Proposal created",

140+

},

141+

{ expanded: false, onToggleExpanded: vi.fn() },

142+

),

143+

container,

144+

);

145+
146+

const summaryButton = container.querySelector("button.chat-tool-msg-summary");

147+

expect(summaryButton?.querySelector(".chat-tool-msg-summary__label")?.textContent).toBe(

148+

"Skill Workshop",

149+

);

150+

expect(summaryButton?.querySelector(".chat-tool-msg-summary__names")?.textContent).toBe(

151+

"create",

152+

);

153+

expect(summaryButton?.textContent).not.toContain("output");

154+

});

155+
130156

it("cleans connector copy from collapsed summaries without changing raw details", () => {

131157

const container = document.createElement("div");

132158

render(

Original file line numberDiff line numberDiff line change

@@ -571,6 +571,29 @@ export function resolveCollapsedToolDetail(card: ToolCard, displayDetail: string

571571

return formatCollapsedToolPreviewText(inputText);

572572

}

573573
574+

function resolveCollapsedToolSummaryParts(params: {

575+

card: ToolCard;

576+

displayLabel: string;

577+

displayDetail: string | undefined;

578+

isError: boolean;

579+

}): { label: string; name?: string } {

580+

if (params.isError) {

581+

return { label: "Tool error", name: params.displayLabel };

582+

}

583+
584+

const displayDetail = params.displayDetail?.trim();

585+

if (displayDetail) {

586+

return { label: params.displayLabel, name: displayDetail };

587+

}

588+
589+

return {

590+

label:

591+

typeof params.card.args === "string"

592+

? (resolveCollapsedToolDetail(params.card, undefined) ?? params.displayLabel)

593+

: params.displayLabel,

594+

};

595+

}

596+
574597

export function renderToolCard(

575598

card: ToolCard,

576599

opts: {

@@ -584,12 +607,14 @@ export function renderToolCard(

584607

allowExternalEmbedUrls?: boolean;

585608

},

586609

) {

587-

const hasOutput = Boolean(card.outputText?.trim());

588610

const display = resolveToolDisplay({ name: card.name, args: card.args, detailMode: "explain" });

589611

const isError = isToolCardError(card);

590-

const collapsedDetail = isError ? undefined : resolveCollapsedToolDetail(card, display.detail);

591-

const previewLabel = isError ? "Tool error" : (collapsedDetail ?? display.label);

592-

const previewName = isError ? display.label : collapsedDetail && hasOutput ? "output" : undefined;

612+

const summary = resolveCollapsedToolSummaryParts({

613+

card,

614+

displayLabel: display.label,

615+

displayDetail: display.detail,

616+

isError,

617+

});

593618
594619

return html`

595620

<div

@@ -598,9 +623,9 @@ export function renderToolCard(

598623

: ""}"

599624

>

600625

${renderCollapsedToolSummary({

601-

label: previewLabel,

626+

label: summary.label,

602627

icon: icons[display.icon],

603-

name: previewName,

628+

name: summary.name,

604629

expanded: opts.expanded,

605630

isError,

606631

onToggleExpanded: () => opts.onToggleExpanded(card.id),