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

推荐订阅源

L
LangChain Blog
有赞技术团队
有赞技术团队
博客园_首页
IT之家
IT之家
爱范儿
爱范儿
量子位
小众软件
小众软件
Jina AI
Jina AI
WordPress大学
WordPress大学
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
The Cloudflare Blog
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
大猫的无限游戏
大猫的无限游戏
月光博客
月光博客
雷峰网
雷峰网
V
Visual Studio Blog
博客园 - Franky
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
美团技术团队
Last Week in AI
Last Week in AI
S
SegmentFault 最新的问题

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: restore rolling progress labels · openclaw/openclaw@...
shakkernerd · 2026-05-08 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -211,24 +211,24 @@ describe("channel-streaming", () => {

211211

lines: [" tool: read ", "patch applied", "tests done"],

212212

formatLine: (line) => `\`${line}\``,

213213

}),

214-

).toBe("Shelling\n• `patch applied`\n• `tests done`");

214+

).toBe("• `patch applied`\n• `tests done`");

215215

expect(

216216

formatChannelProgressDraftText({

217217

entry,

218218

lines: ["🛠️ Exec", "plain update"],

219219

}),

220-

).toBe("Shelling\n🛠️ Exec\n• plain update");

220+

).toBe("🛠️ Exec\n• plain update");

221221

});

222222
223-

it("preserves progress labels above rolling lines", () => {

223+

it("renders progress labels as rolling lines", () => {

224224

const entry = { streaming: { progress: { label: "Shelling", maxLines: 3 } } };

225225
226226

expect(

227227

formatChannelProgressDraftText({

228228

entry,

229229

lines: ["🛠️ Exec", "📖 Read", "🩹 Patch"],

230230

}),

231-

).toBe("Shelling\n🛠️ Exec\n📖 Read\n🩹 Patch");

231+

).toBe("🛠️ Exec\n📖 Read\n🩹 Patch");

232232

});

233233
234234

it("renders structured progress lines with compact details", () => {

Original file line numberDiff line numberDiff line change

@@ -792,21 +792,25 @@ export function formatChannelProgressDraftText(params: {

792792

const maxLines = resolveChannelProgressDraftMaxLines(params.entry);

793793

const formatLine = params.formatLine ?? ((line: string) => line);

794794

const bullet = params.bullet ?? "•";

795-

const progressLines = params.lines

795+

const rawLines: Array<string | ChannelProgressDraftLine | { draftLabel: string }> = label

796+

? [{ draftLabel: label }, ...params.lines]

797+

: params.lines;

798+

const lines = rawLines

796799

.map((line) => {

797-

const rawText = typeof line === "string" ? line : getProgressDraftLineText(line);

800+

const isLabelLine = typeof line === "object" && line !== null && "draftLabel" in line;

801+

const rawText = isLabelLine

802+

? line.draftLabel

803+

: typeof line === "string"

804+

? line

805+

: getProgressDraftLineText(line);

798806

const text = compactChannelProgressDraftLine(rawText, DEFAULT_PROGRESS_DRAFT_MAX_LINE_CHARS);

799-

return text ? { text, isLabelLine: false } : undefined;

807+

return text ? { text, isLabelLine } : undefined;

800808

})

801809

.filter((line): line is { text: string; isLabelLine: boolean } => Boolean(line))

802810

.slice(-maxLines)

803-

.map(({ text }) => {

804-

const formatted = formatLine(text);

805-

return shouldPrefixProgressLine(text) ? `${bullet} ${formatted}` : formatted;

811+

.map(({ text, isLabelLine }) => {

812+

const formatted = isLabelLine ? text : formatLine(text);

813+

return !isLabelLine && shouldPrefixProgressLine(text) ? `${bullet} ${formatted}` : formatted;

806814

});

807-

const labelLine = label

808-

? compactChannelProgressDraftLine(label, DEFAULT_PROGRESS_DRAFT_MAX_LINE_CHARS)

809-

: "";

810-

const lines = [...(labelLine ? [labelLine] : []), ...progressLines];

811815

return lines.filter((line): line is string => Boolean(line)).join("\n");

812816

}