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

推荐订阅源

T
Tenable Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
Vulnerabilities – Threatpost
G
GRAHAM CLULEY
Simon Willison's Weblog
Simon Willison's Weblog
C
CXSECURITY Database RSS Feed - CXSecurity.com
P
Privacy International News Feed
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
S
Secure Thoughts
MyScale Blog
MyScale Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
V
Visual Studio Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LINUX DO - 最新话题
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Cloudflare Blog
美团技术团队
Recorded Future
Recorded Future
T
Tailwind CSS Blog
Latest news
Latest news
Security Archives - TechRepublic
Security Archives - TechRepublic
Security Latest
Security Latest
Know Your Adversary
Know Your Adversary
Cloudbric
Cloudbric
Schneier on Security
Schneier on Security
I
Intezer
L
LINUX DO - 热门话题
P
Palo Alto Networks Blog
云风的 BLOG
云风的 BLOG
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Attack and Defense Labs
Attack and Defense Labs
人人都是产品经理
人人都是产品经理
L
LangChain Blog
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
L
Lohrmann on Cybersecurity
S
SegmentFault 最新的问题
W
WeLiveSecurity
C
Cybersecurity and Infrastructure Security Agency CISA
S
Securelist
SecWiki News
SecWiki News
V2EX - 技术
V2EX - 技术
IT之家
IT之家
Cyberwarzone
Cyberwarzone
F
Full Disclosure
Spread Privacy
Spread Privacy
阮一峰的网络日志
阮一峰的网络日志

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 test: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
fix(agents): announce auto model fallback transitions (#82676) · openclaw/openclaw@4b0f16d
steipete · 2026-05-17 · via Recent Commits to openclaw:main

@@ -917,10 +917,10 @@ describe("runReplyAgent typing (heartbeat)", () => {

917917

vi.useRealTimers();

918918

});

919919920-

it("announces model fallback only when verbose mode is enabled", async () => {

920+

it("announces model fallback transitions across verbose levels", async () => {

921921

const cases = [

922-

{ name: "verbose on", verbose: "on" as const, expectNotice: true },

923-

{ name: "verbose off", verbose: "off" as const, expectNotice: false },

922+

{ name: "verbose on", verbose: "on" as const },

923+

{ name: "verbose off", verbose: "off" as const },

924924

] as const;

925925

for (const testCase of cases) {

926926

const sessionEntry: SessionEntry = {

@@ -974,13 +974,9 @@ describe("runReplyAgent typing (heartbeat)", () => {

974974

const payload = Array.isArray(res)

975975

? (res[0] as { text?: string })

976976

: (res as { text?: string });

977-

if (testCase.expectNotice) {

978-

expect(payload.text, testCase.name).toContain("Model Fallback:");

979-

expect(payload.text, testCase.name).toContain("deepinfra/moonshotai/Kimi-K2.5");

980-

expect(sessionEntry.fallbackNoticeReason, testCase.name).toBe("rate limit");

981-

continue;

982-

}

983-

expect(payload.text, testCase.name).not.toContain("Model Fallback:");

977+

expect(payload.text, testCase.name).toContain("Model Fallback:");

978+

expect(payload.text, testCase.name).toContain("deepinfra/moonshotai/Kimi-K2.5");

979+

expect(sessionEntry.fallbackNoticeReason, testCase.name).toBe("rate limit");

984980

expect(

985981

phases.filter((phase) => phase === "fallback"),

986982

testCase.name,

@@ -989,6 +985,111 @@ describe("runReplyAgent typing (heartbeat)", () => {

989985

}

990986

});

991987988+

it("keeps fallback transition notices when block streaming has no final text", async () => {

989+

const sessionEntry: SessionEntry = {

990+

sessionId: "session",

991+

updatedAt: Date.now(),

992+

};

993+

const sessionStore = { main: sessionEntry };

994+

const onBlockReply = vi.fn();

995+996+

state.runEmbeddedPiAgentMock.mockImplementationOnce(async (params: AgentRunParams) => {

997+

await params.onBlockReply?.({ text: "streamed answer" });

998+

return { payloads: [], meta: {} };

999+

});

1000+

const fallbackSpy = vi

1001+

.spyOn(modelFallbackModule, "runWithModelFallback")

1002+

.mockImplementationOnce(

1003+

async ({ run }: { run: (provider: string, model: string) => Promise<unknown> }) => ({

1004+

result: await run("deepinfra", "moonshotai/Kimi-K2.5"),

1005+

provider: "deepinfra",

1006+

model: "moonshotai/Kimi-K2.5",

1007+

attempts: [

1008+

{

1009+

provider: "fireworks",

1010+

model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",

1011+

error: "Provider fireworks is in cooldown (all profiles unavailable)",

1012+

reason: "rate_limit",

1013+

},

1014+

],

1015+

}),

1016+

);

1017+

try {

1018+

const { run } = createMinimalRun({

1019+

blockStreamingEnabled: true,

1020+

opts: { onBlockReply },

1021+

sessionEntry,

1022+

sessionStore,

1023+

sessionKey: "main",

1024+

});

1025+

const res = await run();

1026+

const payloads = Array.isArray(res) ? res : res ? [res] : [];

1027+1028+

expect(onBlockReply).toHaveBeenCalled();

1029+

expect(payloads).toHaveLength(1);

1030+

expect(payloads[0]?.text).toContain("Model Fallback:");

1031+

expect(payloads[0]?.text).not.toContain("streamed answer");

1032+

} finally {

1033+

fallbackSpy.mockRestore();

1034+

}

1035+

});

1036+1037+

it("threads fallback notices without consuming the first assistant reply slot", async () => {

1038+

const sessionEntry: SessionEntry = {

1039+

sessionId: "session",

1040+

updatedAt: Date.now(),

1041+

};

1042+

const sessionStore = { main: sessionEntry };

1043+1044+

state.runEmbeddedPiAgentMock.mockResolvedValueOnce({

1045+

payloads: [{ text: "final" }],

1046+

meta: {},

1047+

});

1048+

const fallbackSpy = vi

1049+

.spyOn(modelFallbackModule, "runWithModelFallback")

1050+

.mockImplementationOnce(

1051+

async ({ run }: { run: (provider: string, model: string) => Promise<unknown> }) => ({

1052+

result: await run("deepinfra", "moonshotai/Kimi-K2.5"),

1053+

provider: "deepinfra",

1054+

model: "moonshotai/Kimi-K2.5",

1055+

attempts: [

1056+

{

1057+

provider: "fireworks",

1058+

model: "fireworks/accounts/fireworks/routers/kimi-k2p5-turbo",

1059+

error: "Provider fireworks is in cooldown (all profiles unavailable)",

1060+

reason: "rate_limit",

1061+

},

1062+

],

1063+

}),

1064+

);

1065+

try {

1066+

const { run } = createMinimalRun({

1067+

sessionEntry,

1068+

sessionStore,

1069+

sessionKey: "main",

1070+

runOverrides: {

1071+

config: {

1072+

channels: {

1073+

whatsapp: {

1074+

replyToMode: "first",

1075+

},

1076+

},

1077+

},

1078+

},

1079+

});

1080+

const res = await run();

1081+

const payloads = Array.isArray(res) ? res : res ? [res] : [];

1082+1083+

expect(payloads).toHaveLength(2);

1084+

expect(payloads[0]?.text).toContain("Model Fallback:");

1085+

expect(payloads[0]?.replyToId).toBe("msg");

1086+

expect(payloads[1]?.text).toBe("final");

1087+

expect(payloads[1]?.replyToId).toBe("msg");

1088+

} finally {

1089+

fallbackSpy.mockRestore();

1090+

}

1091+

});

1092+9921093

it("surfaces a configured backend failure when fallback produces no visible reply", async () => {

9931094

state.runEmbeddedPiAgentMock.mockResolvedValueOnce({

9941095

payloads: [{ text: "NO_REPLY" }],

@@ -1121,7 +1222,7 @@ describe("runReplyAgent typing (heartbeat)", () => {

11211222

expect(payload?.text).toContain("no visible reply");

11221223

});

112312241124-

it("does not surface fallback silence when fallback already replied through a messaging tool", async () => {

1225+

it("announces fallback without silence failure when fallback already replied through a messaging tool", async () => {

11251226

state.runEmbeddedPiAgentMock.mockResolvedValueOnce({

11261227

payloads: [{ text: "already sent" }],

11271228

messagingToolSentTexts: ["already sent"],

@@ -1162,7 +1263,12 @@ describe("runReplyAgent typing (heartbeat)", () => {

11621263

},

11631264

});

116412651165-

await expect(run()).resolves.toBeUndefined();

1266+

const res = await run();

1267+

const payload = Array.isArray(res) ? res[0] : res;

1268+1269+

expect(payload?.isError).not.toBe(true);

1270+

expect(payload?.text).toContain("Model Fallback:");

1271+

expect(payload?.text).not.toContain("no visible reply");

11661272

} finally {

11671273

fallbackSpy.mockRestore();

11681274

}

@@ -1222,7 +1328,7 @@ describe("runReplyAgent typing (heartbeat)", () => {

12221328

}

12231329

});

122413301225-

it("does not surface fallback silence when fallback already completed a cron side effect", async () => {

1331+

it("announces fallback without silence failure when fallback already completed a cron side effect", async () => {

12261332

state.runEmbeddedPiAgentMock.mockResolvedValueOnce({

12271333

payloads: [{ text: "NO_REPLY" }],

12281334

successfulCronAdds: 1,

@@ -1262,13 +1368,18 @@ describe("runReplyAgent typing (heartbeat)", () => {

12621368

},

12631369

});

126413701265-

await expect(run()).resolves.toBeUndefined();

1371+

const res = await run();

1372+

const payload = Array.isArray(res) ? res[0] : res;

1373+1374+

expect(payload?.isError).not.toBe(true);

1375+

expect(payload?.text).toContain("Model Fallback:");

1376+

expect(payload?.text).not.toContain("no visible reply");

12661377

} finally {

12671378

fallbackSpy.mockRestore();

12681379

}

12691380

});

127013811271-

it("does not surface fallback silence when fallback committed target-only messaging delivery", async () => {

1382+

it("announces fallback without silence failure when fallback committed target-only messaging delivery", async () => {

12721383

state.runEmbeddedPiAgentMock.mockResolvedValueOnce({

12731384

payloads: [{ text: "NO_REPLY" }],

12741385

messagingToolSentTargets: [{ tool: "message", provider: "discord", to: "channel:C1" }],

@@ -1308,13 +1419,18 @@ describe("runReplyAgent typing (heartbeat)", () => {

13081419

},

13091420

});

131014211311-

await expect(run()).resolves.toBeUndefined();

1422+

const res = await run();

1423+

const payload = Array.isArray(res) ? res[0] : res;

1424+1425+

expect(payload?.isError).not.toBe(true);

1426+

expect(payload?.text).toContain("Model Fallback:");

1427+

expect(payload?.text).not.toContain("no visible reply");

13121428

} finally {

13131429

fallbackSpy.mockRestore();

13141430

}

13151431

});

131614321317-

it("does not surface fallback silence when fallback already delivered an approval prompt", async () => {

1433+

it("announces fallback without silence failure when fallback already delivered an approval prompt", async () => {

13181434

state.runEmbeddedPiAgentMock.mockResolvedValueOnce({

13191435

payloads: [],

13201436

didSendDeterministicApprovalPrompt: true,

@@ -1351,7 +1467,12 @@ describe("runReplyAgent typing (heartbeat)", () => {

13511467

},

13521468

});

135314691354-

await expect(run()).resolves.toBeUndefined();

1470+

const res = await run();

1471+

const payload = Array.isArray(res) ? res[0] : res;

1472+1473+

expect(payload?.isError).not.toBe(true);

1474+

expect(payload?.text).toContain("Model Fallback:");

1475+

expect(payload?.text).not.toContain("no visible reply");

13551476

} finally {

13561477

fallbackSpy.mockRestore();

13571478

}

@@ -1608,7 +1729,7 @@ describe("runReplyAgent typing (heartbeat)", () => {

16081729

}

16091730

});

161017311611-

it("emits fallback lifecycle events while verbose is off", async () => {

1732+

it("announces fallback transitions and emits lifecycle events while verbose is off", async () => {

16121733

const sessionEntry: SessionEntry = {

16131734

sessionId: "session",

16141735

updatedAt: Date.now(),

@@ -1676,8 +1797,8 @@ describe("runReplyAgent typing (heartbeat)", () => {

1676179716771798

const firstText = Array.isArray(first) ? first[0]?.text : first?.text;

16781799

const secondText = Array.isArray(second) ? second[0]?.text : second?.text;

1679-

expect(firstText).not.toContain("Model Fallback:");

1680-

expect(secondText).not.toContain("Model Fallback cleared:");

1800+

expect(firstText).toContain("Model Fallback:");

1801+

expect(secondText).toContain("Model Fallback cleared:");

16811802

expect(countMatching(phases, (phase) => phase === "fallback")).toBe(1);

16821803

expect(countMatching(phases, (phase) => phase === "fallback_cleared")).toBe(1);

16831804

} finally {