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

推荐订阅源

钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
人人都是产品经理
人人都是产品经理
Microsoft Azure Blog
Microsoft Azure Blog
Engineering at Meta
Engineering at Meta
B
Blog RSS Feed
大猫的无限游戏
大猫的无限游戏
博客园_首页
雷峰网
雷峰网
V
Visual Studio Blog
爱范儿
爱范儿
A
About on SuperTechFans
量子位
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
MongoDB | Blog
MongoDB | Blog
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
S
SegmentFault 最新的问题
J
Java Code Geeks
H
Hackread – Cybersecurity News, Data Breaches, AI and More

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
Suppress transient runner failures in channels (#87069) ·...
sjf · 2026-05-27 · via Recent Commits to openclaw:main

@@ -4854,6 +4854,95 @@ describe("runAgentTurnWithFallback", () => {

48544854

},

48554855

);

485648564857+

it.each(["group", "channel"] as const)(

4858+

"keeps classified non-transient failures visible in Discord %s chats",

4859+

async (chatType) => {

4860+

state.runEmbeddedPiAgentMock.mockRejectedValueOnce(

4861+

new Error('No API key found for provider "openai"'),

4862+

);

4863+4864+

const runAgentTurnWithFallback = await getRunAgentTurnWithFallback();

4865+

const result = await runAgentTurnWithFallback(

4866+

createMinimalRunAgentTurnParams({

4867+

sessionCtx: {

4868+

Provider: "discord",

4869+

Surface: "discord",

4870+

ChatType: chatType,

4871+

GroupSubject: "agent group",

4872+

GroupChannel: "#general",

4873+

MessageSid: "msg",

4874+

} as unknown as TemplateContext,

4875+

}),

4876+

);

4877+4878+

expect(result.kind).toBe("final");

4879+

if (result.kind === "final") {

4880+

expect(result.payload.text).not.toBe(SILENT_REPLY_TOKEN);

4881+

expect(result.payload.text).toContain('Missing API key for provider "openai"');

4882+

}

4883+

},

4884+

);

4885+4886+

it.each(["group", "channel"] as const)(

4887+

"keeps rate-limit fallback copy out of Discord %s chats",

4888+

async (chatType) => {

4889+

state.runEmbeddedPiAgentMock.mockRejectedValueOnce(new Error("429 rate limit exceeded"));

4890+4891+

const runAgentTurnWithFallback = await getRunAgentTurnWithFallback();

4892+

const result = await runAgentTurnWithFallback(

4893+

createMinimalRunAgentTurnParams({

4894+

sessionCtx: {

4895+

Provider: "discord",

4896+

Surface: "discord",

4897+

ChatType: chatType,

4898+

GroupSubject: "agent group",

4899+

GroupChannel: "#general",

4900+

MessageSid: "msg",

4901+

} as unknown as TemplateContext,

4902+

}),

4903+

);

4904+4905+

expect(result.kind).toBe("final");

4906+

if (result.kind === "final") {

4907+

expect(result.payload.text).toBe(SILENT_REPLY_TOKEN);

4908+

}

4909+

},

4910+

);

4911+4912+

it("surfaces rate-limit fallback copy in Discord group chats when silentReply.group is disallow", async () => {

4913+

state.runEmbeddedPiAgentMock.mockRejectedValueOnce(new Error("429 rate limit exceeded"));

4914+4915+

const followupRun = createFollowupRun();

4916+

followupRun.run.config = {

4917+

agents: {

4918+

defaults: {

4919+

silentReply: { group: "disallow" },

4920+

},

4921+

},

4922+

};

4923+4924+

const runAgentTurnWithFallback = await getRunAgentTurnWithFallback();

4925+

const result = await runAgentTurnWithFallback(

4926+

createMinimalRunAgentTurnParams({

4927+

followupRun,

4928+

sessionCtx: {

4929+

Provider: "discord",

4930+

Surface: "discord",

4931+

ChatType: "group",

4932+

GroupSubject: "agent group",

4933+

GroupChannel: "#general",

4934+

MessageSid: "msg",

4935+

} as unknown as TemplateContext,

4936+

}),

4937+

);

4938+4939+

expect(result.kind).toBe("final");

4940+

if (result.kind === "final") {

4941+

expect(result.payload.text).not.toBe(SILENT_REPLY_TOKEN);

4942+

expect(result.payload.text).toContain("rate-limited");

4943+

}

4944+

});

4945+48574946

it("uses compact generic copy for raw runner failures in normal Discord direct chats", async () => {

48584947

state.runEmbeddedPiAgentMock.mockRejectedValueOnce(

48594948

new Error("openai-codex/gpt-5.5 ended with an incomplete terminal response"),