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

推荐订阅源

N
Netflix TechBlog - Medium
G
Google Developers Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
GbyAI
GbyAI
L
LangChain Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
aimingoo的专栏
aimingoo的专栏
P
Proofpoint News Feed
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
小众软件
小众软件
WordPress大学
WordPress大学
A
About on SuperTechFans
大猫的无限游戏
大猫的无限游戏
C
Check Point Blog
月光博客
月光博客
Stack Overflow Blog
Stack Overflow Blog
美团技术团队
Jina AI
Jina AI
T
Tailwind CSS Blog
Google DeepMind News
Google DeepMind News
D
Docker

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(acp): tolerate unsupported timeout config hints · ope...
qkal · 2026-05-15 · via Recent Commits to openclaw:main

@@ -3310,6 +3310,89 @@ describe("AcpSessionManager", () => {

33103310

});

33113311

});

331233123313+

it("continues turns when adapters reject optional timeout config", async () => {

3314+

const runtimeState = createRuntime();

3315+

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

3316+

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

3317+

throw new AcpRuntimeError(

3318+

"ACP_TURN_FAILED",

3319+

'Agent rejected session/set_config_option for "timeout": ACP -32602 Invalid params',

3320+

);

3321+

}

3322+

});

3323+

hoisted.requireAcpRuntimeBackendMock.mockReturnValue({

3324+

id: "acpx",

3325+

runtime: runtimeState.runtime,

3326+

});

3327+

hoisted.readAcpSessionEntryMock.mockReturnValue({

3328+

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

3329+

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

3330+

acp: {

3331+

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

3332+

runtimeOptions: {

3333+

timeoutSeconds: 120,

3334+

},

3335+

},

3336+

});

3337+3338+

const manager = new AcpSessionManager();

3339+

await manager.runTurn({

3340+

cfg: baseCfg,

3341+

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

3342+

text: "do work",

3343+

mode: "prompt",

3344+

requestId: "run-opencode",

3345+

});

3346+3347+

expectMockCallFields(runtimeState.setConfigOption, {

3348+

key: "timeout",

3349+

value: "120",

3350+

});

3351+

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

3352+

});

3353+3354+

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

3355+

const runtimeState = createRuntime();

3356+

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

3357+

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

3358+

throw new AcpRuntimeError(

3359+

"ACP_TURN_FAILED",

3360+

'Agent rejected session/set_config_option for "model": ACP -32602 Invalid params',

3361+

);

3362+

}

3363+

});

3364+

hoisted.requireAcpRuntimeBackendMock.mockReturnValue({

3365+

id: "acpx",

3366+

runtime: runtimeState.runtime,

3367+

});

3368+

hoisted.readAcpSessionEntryMock.mockReturnValue({

3369+

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

3370+

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

3371+

acp: {

3372+

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

3373+

runtimeOptions: {

3374+

model: "opencode/gpt-5.4",

3375+

},

3376+

},

3377+

});

3378+3379+

const manager = new AcpSessionManager();

3380+

await expectRejectedRecord(

3381+

manager.runTurn({

3382+

cfg: baseCfg,

3383+

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

3384+

text: "do work",

3385+

mode: "prompt",

3386+

requestId: "run-opencode",

3387+

}),

3388+

{

3389+

code: "ACP_TURN_FAILED",

3390+

},

3391+

);

3392+3393+

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

3394+

});

3395+33133396

it("maps persisted thinking runtime options to advertised effort config keys before running turns", async () => {

33143397

const runtimeState = createRuntime();

33153398

runtimeState.getCapabilities.mockResolvedValue({