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

推荐订阅源

雷峰网
雷峰网
GbyAI
GbyAI
Stack Overflow Blog
Stack Overflow Blog
Apple Machine Learning Research
Apple Machine Learning Research
The Cloudflare Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
F
Fortinet All Blogs
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
L
LangChain Blog
云风的 BLOG
云风的 BLOG
Jina AI
Jina AI
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
I
InfoQ
大猫的无限游戏
大猫的无限游戏
MyScale Blog
MyScale Blog
人人都是产品经理
人人都是产品经理
小众软件
小众软件
量子位
The GitHub Blog
The GitHub Blog
博客园 - 【当耐特】

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
refactor(acpx): distill ACP command detection · openclaw/...
obviyus · 2026-05-13 · via Recent Commits to openclaw:main

@@ -349,73 +349,72 @@ function unwrapEnvCommand(parts: string[]): string[] {

349349

return parts.slice(index);

350350

}

351351352-

function isOpenClawBridgeCommand(command: string | undefined): boolean {

353-

if (!command) {

354-

return false;

355-

}

356-

const parts = unwrapEnvCommand(splitCommandParts(command.trim()));

357-

if (basename(parts[0] ?? "") === OPENCLAW_BRIDGE_EXECUTABLE) {

358-

return parts[1] === OPENCLAW_BRIDGE_SUBCOMMAND;

359-

}

360-

if (basename(parts[0] ?? "") !== "node") {

361-

return false;

362-

}

363-

const scriptName = basename(parts[1] ?? "");

364-

return /^openclaw(?:\.[cm]?js)?$/i.test(scriptName) && parts[2] === OPENCLAW_BRIDGE_SUBCOMMAND;

352+

function matchesExecutableName(value: string, executableName: string): boolean {

353+

const normalized = basename(value).toLowerCase();

354+

return normalized === executableName || normalized === `${executableName}.exe`;

365355

}

366356367-

function isCodexAcpPackageSpec(value: string): boolean {

368-

return /^@zed-industries\/codex-acp(?:@.+)?$/i.test(value.trim());

357+

function matchesPackageSpec(value: string, packageName: string): boolean {

358+

const normalized = value.trim().toLowerCase();

359+

return normalized === packageName || normalized.startsWith(`${packageName}@`);

369360

}

370361371-

function isCodexAcpCommand(command: string | undefined): boolean {

362+

function stripModuleExtension(value: string): string {

363+

return value.replace(/\.[cm]?js$/i, "").toLowerCase();

364+

}

365+366+

function isAcpCommand(

367+

command: string | undefined,

368+

params: { packageName: string; executableName: string },

369+

): boolean {

372370

if (!command) {

373371

return false;

374372

}

375373

const parts = unwrapEnvCommand(splitCommandParts(command.trim()));

376374

if (!parts.length) {

377375

return false;

378376

}

379-

if (parts.some(isCodexAcpPackageSpec)) {

377+

if (parts.some((part) => matchesPackageSpec(part, params.packageName))) {

380378

return true;

381379

}

382380

const commandName = basename(parts[0] ?? "");

383-

if (/^codex-acp(?:\.exe)?$/i.test(commandName)) {

381+

if (matchesExecutableName(commandName, params.executableName)) {

384382

return true;

385383

}

386-

if (commandName !== "node") {

384+

if (!matchesExecutableName(commandName, "node")) {

387385

return false;

388386

}

389-

const scriptName = basename(parts[1] ?? "");

390-

return /^codex-acp(?:-wrapper)?(?:\.[cm]?js)?$/i.test(scriptName);

387+

const scriptName = stripModuleExtension(basename(parts[1] ?? ""));

388+

return scriptName === params.executableName || scriptName === `${params.executableName}-wrapper`;

391389

}

392390393-

function isClaudeAcpPackageSpec(value: string): boolean {

394-

return /^@agentclientprotocol\/claude-agent-acp(?:@.+)?$/i.test(value.trim());

395-

}

396-397-

function isClaudeAcpCommand(command: string | undefined): boolean {

391+

function isOpenClawBridgeCommand(command: string | undefined): boolean {

398392

if (!command) {

399393

return false;

400394

}

401395

const parts = unwrapEnvCommand(splitCommandParts(command.trim()));

402-

if (!parts.length) {

403-

return false;

404-

}

405-

if (parts.some(isClaudeAcpPackageSpec)) {

406-

return true;

407-

}

408-

const commandName = basename(parts[0] ?? "");

409-

if (/^claude-agent-acp(?:\.exe)?$/i.test(commandName)) {

410-

return true;

396+

if (basename(parts[0] ?? "") === OPENCLAW_BRIDGE_EXECUTABLE) {

397+

return parts[1] === OPENCLAW_BRIDGE_SUBCOMMAND;

411398

}

412-

// Generated wrappers are launched via `process.execPath`, which is

413-

// `node.exe` on Windows.

414-

if (!/^node(?:\.exe)?$/i.test(commandName)) {

399+

if (basename(parts[0] ?? "") !== "node") {

415400

return false;

416401

}

417402

const scriptName = basename(parts[1] ?? "");

418-

return /^claude-agent-acp(?:-wrapper)?(?:\.[cm]?js)?$/i.test(scriptName);

403+

return /^openclaw(?:\.[cm]?js)?$/i.test(scriptName) && parts[2] === OPENCLAW_BRIDGE_SUBCOMMAND;

404+

}

405+406+

function isCodexAcpCommand(command: string | undefined): boolean {

407+

return isAcpCommand(command, {

408+

packageName: "@zed-industries/codex-acp",

409+

executableName: "codex-acp",

410+

});

411+

}

412+413+

function isClaudeAcpCommand(command: string | undefined): boolean {

414+

return isAcpCommand(command, {

415+

packageName: "@agentclientprotocol/claude-agent-acp",

416+

executableName: "claude-agent-acp",

417+

});

419418

}

420419421420

function failUnsupportedCodexAcpModel(rawModel: string, detail?: string): never {

@@ -431,6 +430,7 @@ function failUnsupportedCodexAcpModel(rawModel: string, detail?: string): never

431430

// `SessionResumeRequiredError` on agent restart. Fail fast at this boundary instead.

432431

// See openclaw/openclaw#73071.

433432

const SUPPORTED_RUNTIME_SESSION_MODES = new Set(["persistent", "oneshot"] as const);

433+

const WIRE_TIMEOUT_CONFIG_KEYS = new Set(["timeout", "timeout_seconds"]);

434434435435

function assertSupportedRuntimeSessionMode(

436436

mode: unknown,

@@ -917,17 +917,11 @@ export class AcpxRuntime implements AcpRuntime {

917917

const delegate = await this.resolveDelegateForHandle(input.handle);

918918

const command = await this.resolveCommandForHandle(input.handle);

919919

const key = input.key.trim().toLowerCase();

920-

// Neither @zed-industries/codex-acp nor @agentclientprotocol/claude-agent-acp

921-

// advertises a `timeout` config option; forwarding one triggers a JSON-RPC

922-

// rejection that surfaces as ACP_TURN_FAILED. OpenClaw still enforces the

923-

// per-turn timeout in-process via runTimeoutSeconds.

924-

if (

925-

(key === "timeout" || key === "timeout_seconds") &&

926-

(isCodexAcpCommand(command) || isClaudeAcpCommand(command))

927-

) {

920+

const isCodexAcp = isCodexAcpCommand(command);

921+

if (WIRE_TIMEOUT_CONFIG_KEYS.has(key) && (isCodexAcp || isClaudeAcpCommand(command))) {

928922

return;

929923

}

930-

if (isCodexAcpCommand(command)) {

924+

if (isCodexAcp) {

931925

if (

932926

key === "model" ||

933927

key === "thinking" ||