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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
U
Unit 42
GbyAI
GbyAI
M
MIT News - Artificial intelligence
美团技术团队
罗磊的独立博客
雷峰网
雷峰网
量子位
博客园 - 【当耐特】
Last Week in AI
Last Week in AI
D
Docker
小众软件
小众软件
S
SegmentFault 最新的问题
Blog — PlanetScale
Blog — PlanetScale
阮一峰的网络日志
阮一峰的网络日志
宝玉的分享
宝玉的分享
T
Tailwind CSS Blog
WordPress大学
WordPress大学
V
V2EX
博客园_首页
腾讯CDC
The Cloudflare Blog
A
About on SuperTechFans
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

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(telegram): preserve rich progress command output · op...
obviyus · 2026-06-16 · via Recent Commits to openclaw:main

@@ -329,10 +329,14 @@ function buildNamedProgressLine(

329329

});

330330

const display = resolveToolDisplay({ name: normalizedName });

331331

const prefix = `${display.emoji} ${display.label}`;

332-

const compactCommandPrefix =

332+

const compactCommandDetail =

333333

(display.name === "exec" || display.name === "bash") && text.startsWith(`${display.emoji} `)

334334

? text.slice(display.emoji.length + 1).trim()

335335

: undefined;

336+

const compactCommandPrefix =

337+

compactCommandDetail && compactCommandDetail !== display.label

338+

? compactCommandDetail

339+

: undefined;

336340

const detail = text.startsWith(`${prefix}: `)

337341

? text.slice(prefix.length + 2).trim()

338342

: compactCommandPrefix;

@@ -423,6 +427,39 @@ function patchMetas(input: Extract<ChannelProgressDraftLineInput, { event: "patc

423427

return compactStrings([input.summary, ...fileMetas, input.title]);

424428

}

425429430+

function buildCommandOutputProgressLine(

431+

input: Extract<ChannelProgressDraftLineInput, { event: "command-output" }>,

432+

status: string | undefined,

433+

options?: ChannelProgressLineOptions,

434+

): ChannelProgressDraftLine | undefined {

435+

const name = input.name ?? "exec";

436+

const correlationKey = resolveCommandProgressCorrelationKey(input);

437+

const detail = options?.commandText === "status" ? [] : compactStrings([input.title]);

438+

const line = buildNamedProgressLine(input.event, name, detail, options, {

439+

correlationKey,

440+

id: resolveProgressDraftLineId(input, { useToolCallIdFallback: true }),

441+

status,

442+

});

443+

if (!line || !status) {

444+

return line;

445+

}

446+

if (!line.detail || line.detail === status) {

447+

const statusLine = {

448+

...line,

449+

detail: status,

450+

text: formatToolAggregate(name, [status], { markdown: options?.markdown }),

451+

};

452+

setProgressDraftLineCorrelationKey(statusLine, correlationKey);

453+

return statusLine;

454+

}

455+

const statusLine = {

456+

...line,

457+

text: formatToolAggregate(name, [status, line.detail], { markdown: options?.markdown }),

458+

};

459+

setProgressDraftLineCorrelationKey(statusLine, correlationKey);

460+

return statusLine;

461+

}

462+426463

function shouldPrefixProgressLine(line: string): boolean {

427464

return !EMOJI_PREFIX_RE.test(line);

428465

}

@@ -571,17 +608,7 @@ export function buildChannelProgressDraftLine(

571608

: input.exitCode != null

572609

? `exit ${input.exitCode}`

573610

: input.status;

574-

return buildNamedProgressLine(

575-

input.event,

576-

input.name ?? "exec",

577-

[status, input.title],

578-

options,

579-

{

580-

correlationKey: resolveCommandProgressCorrelationKey(input),

581-

id: resolveProgressDraftLineId(input, { useToolCallIdFallback: true }),

582-

status,

583-

},

584-

);

611+

return buildCommandOutputProgressLine(input, status, options);

585612

}

586613

case "patch": {

587614

if (input.phase !== undefined && input.phase !== "end") {

@@ -1027,15 +1054,22 @@ function getProgressDraftLineText(line: string | ChannelProgressDraftLine): stri

10271054

const prefix = icon ? `${icon} ` : "";

10281055

const label = line.label.trim();

10291056

const detail = line.detail?.trim();

1057+

const status = line.status?.trim();

10301058

if (detail) {

10311059

const compactCommandLine =

10321060

line.toolName === "exec" || line.toolName === "bash" || line.toolName === "shell";

1061+

if (line.kind === "command-output" && status && detail !== status) {

1062+

const outputDetail = detail.startsWith(`${status};`) ? detail : `${status}; ${detail}`;

1063+

if (compactCommandLine) {

1064+

return `${prefix}${outputDetail}`;

1065+

}

1066+

return label ? `${prefix}${label}: ${outputDetail}` : `${prefix}${outputDetail}`;

1067+

}

10331068

if (line.kind !== "patch" && label && !compactCommandLine) {

10341069

return `${prefix}${label}: ${detail}`;

10351070

}

10361071

return `${prefix}${detail}`;

10371072

}

1038-

const status = line.status?.trim();

10391073

if (status) {

10401074

if (label) {

10411075

return `${prefix}${label}: ${status}`;

@@ -1054,7 +1088,8 @@ export function normalizeChannelProgressDraftLineIdentity(

10541088

line: string | ChannelProgressDraftLine | undefined,

10551089

): string {

10561090

const text = typeof line === "string" ? line : line?.text;

1057-

return text?.replace(/\s+/g, " ").trim() ?? "";

1091+

const status = typeof line === "object" ? line.status : undefined;

1092+

return compactStrings([text, status]).join(" ");

10581093

}

1059109410601095

export function mergeChannelProgressDraftLine<TLine extends string | ChannelProgressDraftLine>(