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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
博客园 - 【当耐特】
量子位
有赞技术团队
有赞技术团队
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
C
Check Point Blog
B
Blog RSS Feed
M
MIT News - Artificial intelligence
H
Help Net Security
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
腾讯CDC

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): drop unsupported timeout config option for clau...
sxxtony · 2026-05-13 · via Recent Commits to openclaw:main

@@ -475,7 +475,14 @@ describe("AcpxRuntime fresh reset wrapper", () => {

475475

expect(setConfigOption).not.toHaveBeenCalled();

476476

});

477477478-

it("forwards timeout config controls for non-Codex ACP agents", async () => {

478+

it("ignores unsupported claude-agent-acp timeout config controls", async () => {

479+

// Regression for openclaw/openclaw#81127: claude-agent-acp rejects any

480+

// `session/set_config_option` whose configId it does not advertise

481+

// (`Unknown config option: timeout`), which previously surfaced to callers

482+

// as ACP_TURN_FAILED whenever `sessions_spawn` was invoked with

483+

// `timeoutSeconds`. OpenClaw still enforces the per-turn timeout

484+

// in-process via runTimeoutSeconds; the wire option just must not leave

485+

// the wrapper.

479486

const baseStore: TestSessionStore = {

480487

load: vi.fn(async () => ({

481488

acpxRecordId: "agent:claude:acp:test",

@@ -497,15 +504,76 @@ describe("AcpxRuntime fresh reset wrapper", () => {

497504

key: "timeout",

498505

value: "60",

499506

});

507+

await runtime.setConfigOption({

508+

handle,

509+

key: "Timeout_Seconds",

510+

value: "60",

511+

});

512+513+

expect(setConfigOption).not.toHaveBeenCalled();

514+

});

515+516+

it("still forwards non-timeout config controls for claude-agent-acp", async () => {

517+

const baseStore: TestSessionStore = {

518+

load: vi.fn(async () => ({

519+

acpxRecordId: "agent:claude:acp:test",

520+

agentCommand: "npx @agentclientprotocol/claude-agent-acp",

521+

})),

522+

save: vi.fn(async () => {}),

523+

};

524+

const { runtime, delegate } = makeRuntime(baseStore);

525+

const setConfigOption = vi.spyOn(delegate, "setConfigOption").mockResolvedValue(undefined);

526+

const handle: Parameters<NonNullable<AcpRuntime["setConfigOption"]>>[0]["handle"] = {

527+

sessionKey: "agent:claude:acp:test",

528+

backend: "acpx",

529+

runtimeSessionName: "agent:claude:acp:test",

530+

acpxRecordId: "agent:claude:acp:test",

531+

};

532+533+

await runtime.setConfigOption({

534+

handle,

535+

key: "model",

536+

value: "claude-sonnet-4.6",

537+

});

500538501539

expect(setConfigOption).toHaveBeenCalledOnce();

502540

expect(setConfigOption).toHaveBeenCalledWith({

503541

handle,

504-

key: "timeout",

505-

value: "60",

542+

key: "model",

543+

value: "claude-sonnet-4.6",

506544

});

507545

});

508546547+

it("recognizes claude-agent-acp commands", () => {

548+

expect(__testing.isClaudeAcpCommand("npx @agentclientprotocol/claude-agent-acp")).toBe(true);

549+

expect(

550+

__testing.isClaudeAcpCommand("npx -y @agentclientprotocol/claude-agent-acp@0.33.1"),

551+

).toBe(true);

552+

expect(__testing.isClaudeAcpCommand("claude-agent-acp")).toBe(true);

553+

expect(__testing.isClaudeAcpCommand("claude-agent-acp.exe")).toBe(true);

554+

expect(

555+

__testing.isClaudeAcpCommand(`node "/tmp/openclaw/acpx/claude-agent-acp-wrapper.mjs"`),

556+

).toBe(true);

557+

// Generated ACP wrapper commands are built from `process.execPath`, which

558+

// is `node.exe` on Windows. The detector must accept that launcher so the

559+

// bundled Claude ACP wrapper path does not slip past the timeout

560+

// suppression on Windows hosts. Generated commands use forward-slash

561+

// paths (Node accepts those on Windows) — matching the same pattern as

562+

// the existing CODEX_ACP_WRAPPER_COMMAND fixture.

563+

expect(

564+

__testing.isClaudeAcpCommand(

565+

`node.exe "C:/Users/runner/AppData/Local/Temp/openclaw/acpx/claude-agent-acp-wrapper.mjs"`,

566+

),

567+

).toBe(true);

568+

expect(

569+

__testing.isClaudeAcpCommand(

570+

`Node.EXE "C:/Users/runner/AppData/Local/Temp/openclaw/acpx/claude-agent-acp-wrapper.mjs"`,

571+

),

572+

).toBe(true);

573+

expect(__testing.isClaudeAcpCommand("openclaw acp")).toBe(false);

574+

expect(__testing.isClaudeAcpCommand("npx @zed-industries/codex-acp")).toBe(false);

575+

});

576+509577

it("keeps stale persistent loads hidden until a fresh record is saved", async () => {

510578

const baseStore: TestSessionStore = {

511579

load: vi.fn(async () => ({ acpxRecordId: "stale" }) as never),