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

推荐订阅源

雷峰网
雷峰网
MongoDB | Blog
MongoDB | Blog
D
Docker
Martin Fowler
Martin Fowler
人人都是产品经理
人人都是产品经理
GbyAI
GbyAI
Jina AI
Jina AI
酷 壳 – CoolShell
酷 壳 – CoolShell
M
MIT News - Artificial intelligence
腾讯CDC
阮一峰的网络日志
阮一峰的网络日志
H
Hackread – Cybersecurity News, Data Breaches, AI and More
N
Netflix TechBlog - Medium
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
The Cloudflare Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
有赞技术团队
有赞技术团队
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
U
Unit 42

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: narrow ACP timeout config suppression (#81603) · ope...
steipete · 2026-05-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -51,6 +51,27 @@ function isOptionalTimeoutConfigKey(key: string): boolean {

5151

return OPTIONAL_TIMEOUT_CONFIG_KEYS.has(normalizeLowercaseStringOrEmpty(key));

5252

}

5353
54+

function isUnsupportedOptionalTimeoutConfigRejection(key: string, error: unknown): boolean {

55+

if (!isOptionalTimeoutConfigKey(key)) {

56+

return false;

57+

}

58+

const errorCode = error && typeof error === "object" ? (error as { code?: unknown }).code : null;

59+

if (errorCode === "ACP_BACKEND_UNSUPPORTED_CONTROL") {

60+

return true;

61+

}

62+

const message =

63+

error instanceof Error ? error.message : typeof error === "string" ? error : String(error);

64+

const normalized = normalizeLowercaseStringOrEmpty(message);

65+

return (

66+

normalized.includes("session/set_config_option") &&

67+

(normalized.includes("-32602") ||

68+

normalized.includes("invalid params") ||

69+

normalized.includes("unsupported") ||

70+

normalized.includes("not supported") ||

71+

normalized.includes("not implement"))

72+

);

73+

}

74+
5475

export async function resolveManagerRuntimeCapabilities(params: {

5576

runtime: AcpRuntime;

5677

handle: AcpRuntimeHandle;

@@ -172,7 +193,7 @@ export async function applyManagerRuntimeControls(params: {

172193

value,

173194

});

174195

} catch (error) {

175-

if (isOptionalTimeoutConfigKey(key)) {

196+

if (isUnsupportedOptionalTimeoutConfigRejection(key, error)) {

176197

continue;

177198

}

178199

throw error;

Original file line numberDiff line numberDiff line change

@@ -3351,6 +3351,49 @@ describe("AcpSessionManager", () => {

33513351

expect(runtimeState.runTurn).toHaveBeenCalledTimes(1);

33523352

});

33533353
3354+

it("fails turns when optional timeout config writes hit runtime failures", async () => {

3355+

const runtimeState = createRuntime();

3356+

runtimeState.setConfigOption.mockImplementation(async (input: { key: string }) => {

3357+

if (input.key === "timeout") {

3358+

throw new AcpRuntimeError("ACP_BACKEND_UNAVAILABLE", "ACP backend unavailable");

3359+

}

3360+

});

3361+

hoisted.requireAcpRuntimeBackendMock.mockReturnValue({

3362+

id: "acpx",

3363+

runtime: runtimeState.runtime,

3364+

});

3365+

hoisted.readAcpSessionEntryMock.mockReturnValue({

3366+

sessionKey: "agent:opencode:acp:session-1",

3367+

storeSessionKey: "agent:opencode:acp:session-1",

3368+

acp: {

3369+

...readySessionMeta({ agent: "opencode" }),

3370+

runtimeOptions: {

3371+

timeoutSeconds: 120,

3372+

},

3373+

},

3374+

});

3375+
3376+

const manager = new AcpSessionManager();

3377+

await expectRejectedRecord(

3378+

manager.runTurn({

3379+

cfg: baseCfg,

3380+

sessionKey: "agent:opencode:acp:session-1",

3381+

text: "do work",

3382+

mode: "prompt",

3383+

requestId: "run-opencode",

3384+

}),

3385+

{

3386+

code: "ACP_BACKEND_UNAVAILABLE",

3387+

},

3388+

);

3389+
3390+

expectMockCallFields(runtimeState.setConfigOption, {

3391+

key: "timeout",

3392+

value: "120",

3393+

});

3394+

expect(runtimeState.runTurn).not.toHaveBeenCalled();

3395+

});

3396+
33543397

it("fails turns when adapters reject required runtime config", async () => {

33553398

const runtimeState = createRuntime();

33563399

runtimeState.setConfigOption.mockImplementation(async (input: { key: string }) => {