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

推荐订阅源

人人都是产品经理
人人都是产品经理
Google DeepMind News
Google DeepMind News
博客园 - 【当耐特】
量子位
博客园 - 司徒正美
爱范儿
爱范儿
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
Jina AI
Jina AI
J
Java Code Geeks
腾讯CDC
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
I
InfoQ
D
Docker
Recent Announcements
Recent Announcements
MongoDB | Blog
MongoDB | Blog
博客园 - Franky
宝玉的分享
宝玉的分享
G
Google Developers Blog
GbyAI
GbyAI
Y
Y Combinator Blog
有赞技术团队
有赞技术团队
H
Help Net Security

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: surface plan updates as status notices · openclaw/op...
steipete · 2026-05-22 · via Recent Commits to openclaw:main

@@ -1712,7 +1712,7 @@ describe("dispatchReplyFromConfig", () => {

17121712

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith(notice);

17131713

});

171417141715-

it("renders plain-text plan updates without generic working statuses when verbose is enabled", async () => {

1715+

it("renders the first plan update as a status notice without generic working statuses", async () => {

17161716

setNoAbort();

17171717

const cfg = {

17181718

...emptyConfig,

@@ -1748,10 +1748,45 @@ describe("dispatchReplyFromConfig", () => {

1748174817491749

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

175017501751-

expect(firstToolResultPayload(dispatcher)?.text).toBe(

1752-

"Inspect code, patch it, run tests.\n\n1. Inspect code\n2. Patch code\n3. Run tests",

1753-

);

1751+

expect(firstToolResultPayload(dispatcher)).toMatchObject({

1752+

text: "1. Inspect code\n2. Patch code\n3. Run tests",

1753+

isStatusNotice: true,

1754+

});

1755+

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

1756+

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

1757+

});

1758+1759+

it("sends only one plan status notice per reply run", async () => {

1760+

setNoAbort();

1761+

const dispatcher = createDispatcher();

1762+

const ctx = buildTestCtx({

1763+

Provider: "telegram",

1764+

ChatType: "direct",

1765+

});

1766+1767+

const replyResolver = async (

1768+

_ctx: MsgContext,

1769+

opts?: GetReplyOptions,

1770+

_cfg?: OpenClawConfig,

1771+

) => {

1772+

await opts?.onPlanUpdate?.({

1773+

phase: "update",

1774+

steps: ["Inspect code"],

1775+

});

1776+

await opts?.onPlanUpdate?.({

1777+

phase: "update",

1778+

steps: ["Inspect code", "Patch code"],

1779+

});

1780+

return { text: "done" } satisfies ReplyPayload;

1781+

};

1782+1783+

await dispatchReplyFromConfig({ ctx, cfg: emptyConfig, dispatcher, replyResolver });

1784+17541785

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

1786+

expect(firstToolResultPayload(dispatcher)).toMatchObject({

1787+

text: "1. Inspect code",

1788+

isStatusNotice: true,

1789+

});

17551790

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

17561791

});

17571792

@@ -1832,7 +1867,7 @@ describe("dispatchReplyFromConfig", () => {

18321867

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

18331868

});

183418691835-

it("suppresses plan and working-status progress when session verbose is off", async () => {

1870+

it("keeps plan notices when session verbose is off but suppresses working statuses", async () => {

18361871

setNoAbort();

18371872

sessionStoreMocks.currentEntry = {

18381873

verboseLevel: "off",

@@ -1877,7 +1912,11 @@ describe("dispatchReplyFromConfig", () => {

1877191218781913

await dispatchReplyFromConfig({ ctx, cfg, dispatcher, replyResolver });

187919141880-

expect(dispatcher.sendToolResult).not.toHaveBeenCalled();

1915+

expect(firstToolResultPayload(dispatcher)).toMatchObject({

1916+

text: "1. Inspect code\n2. Patch code\n3. Run tests",

1917+

isStatusNotice: true,

1918+

});

1919+

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

18811920

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

18821921

});

18831922

@@ -1915,6 +1954,11 @@ describe("dispatchReplyFromConfig", () => {

19151954

explanation: "Inspect code, patch it, run tests.",

19161955

steps: ["Inspect code", "Patch code", "Run tests"],

19171956

});

1957+

await opts?.onApprovalEvent?.({

1958+

phase: "requested",

1959+

status: "pending",

1960+

command: "pnpm test",

1961+

});

19181962

return { text: "done" } satisfies ReplyPayload;

19191963

};

19201964

@@ -1926,7 +1970,10 @@ describe("dispatchReplyFromConfig", () => {

19261970

);

19271971

expect(sessionStoreMocks.loadSessionStore).not.toHaveBeenCalled();

19281972

expect(sessionStoreMocks.resolveSessionStoreEntry).not.toHaveBeenCalled();

1929-

expect(dispatcher.sendToolResult).not.toHaveBeenCalled();

1973+

expect(firstToolResultPayload(dispatcher)).toMatchObject({

1974+

text: "1. Inspect code\n2. Patch code\n3. Run tests",

1975+

isStatusNotice: true,

1976+

});

19301977

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

19311978

});

19321979

@@ -2218,7 +2265,7 @@ describe("dispatchReplyFromConfig", () => {

22182265

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });

22192266

});

222022672221-

it("delivers plan progress without generic working status when verbose overrides preview suppression", async () => {

2268+

it("delivers plan status when verbose overrides preview suppression", async () => {

22222269

setNoAbort();

22232270

sessionStoreMocks.currentEntry = {

22242271

verboseLevel: "on",

@@ -2258,7 +2305,8 @@ describe("dispatchReplyFromConfig", () => {

22582305

});

2259230622602307

expect(dispatcher.sendToolResult).toHaveBeenNthCalledWith(1, {

2261-

text: "Inspect code.\n\n1. Patch code",

2308+

text: "1. Patch code",

2309+

isStatusNotice: true,

22622310

});

22632311

expect(dispatcher.sendToolResult).toHaveBeenCalledTimes(1);

22642312

expect(dispatcher.sendFinalReply).toHaveBeenCalledWith({ text: "done" });