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

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

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
extensions/acpx: expose probeAgent config so non-codex AC...
lyfuci · 2026-04-23 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -40,6 +40,7 @@ Docs: https://docs.openclaw.ai

4040

- Providers/OpenAI: lock the auth picker wording for OpenAI API key, Codex browser login, and Codex device pairing so the setup choices no longer imply a mixed Codex/API-key auth path. (#67848) Thanks @tmlxrd.

4141

- Agents/BTW: route `/btw` side questions through provider stream registration with the session workspace, so Ollama provider URL construction and workspace-scoped hooks apply correctly. Fixes #68336. (#70413) Thanks @suboss87.

4242

- Agents/sessions: make session transcript write locks non-reentrant by default, so same-process transcript writers contend unless a helper explicitly opts into nested lock ownership.

43+

- ACPX/probe: expose an optional `probeAgent` plugin config field so the embedded ACP runtime health probe can target a configured agent (for example `opencode` or `claude`) instead of hardcoding `codex`, and stop marking the entire ACP runtime backend unavailable when the default probe agent is simply not installed or not authenticated. (#68409) Thanks @lyfuci.

4344

- Memory search: use sqlite-vec KNN for vector recall while preserving full post-filter result limits in multi-model indexes. Fixes #69666. (#69680) Thanks @aalekh-sarvam.

4445

- Providers/OpenAI Codex: stop stale per-agent `openai-codex:default` OAuth profiles from shadowing a newer main-agent identity-scoped profile, and let `openclaw doctor` offer the matching cleanup. (#70393) Thanks @pashpashpash.

4546

- ACPX: route OpenClaw ACP bridge commands through the MCP-free runtime path even when the command is wrapped with `env`, has bridge flags, or is resumed from persisted session state, so documented `acpx openclaw` setups no longer fail on per-session MCP injection. (#68741) Thanks @alexlomt.

Original file line numberDiff line numberDiff line change

@@ -46,6 +46,10 @@

4646

"type": "number",

4747

"minimum": 0

4848

},

49+

"probeAgent": {

50+

"type": "string",

51+

"minLength": 1

52+

},

4953

"mcpServers": {

5054

"type": "object",

5155

"additionalProperties": {

@@ -132,6 +136,11 @@

132136

"help": "Reserved compatibility field for the older embedded ACPX queue-owner path. Accepted for compatibility and logged as ignored.",

133137

"advanced": true

134138

},

139+

"probeAgent": {

140+

"label": "Probe Agent",

141+

"help": "Agent id used for the embedded ACP runtime health probe. Defaults to the runtime built-in probe agent (codex). Set this to another configured ACP agent id (for example `opencode` or `claude`) when the default probe agent is not installed or not authenticated, so the whole embedded ACP backend does not get marked unavailable.",

142+

"advanced": true

143+

},

135144

"mcpServers": {

136145

"label": "MCP Servers",

137146

"help": "Named MCP server definitions to inject into embedded ACP session bootstrap. Each entry needs a command and can include args and env.",

Original file line numberDiff line numberDiff line change

@@ -34,6 +34,7 @@ export type AcpxPluginConfig = {

3434

strictWindowsCmdWrapper?: boolean;

3535

timeoutSeconds?: number;

3636

queueOwnerTtlSeconds?: number;

37+

probeAgent?: string;

3738

mcpServers?: Record<string, McpServerConfig>;

3839

agents?: Record<string, { command: string }>;

3940

};

@@ -49,6 +50,7 @@ export type ResolvedAcpxPluginConfig = {

4950

strictWindowsCmdWrapper: boolean;

5051

timeoutSeconds?: number;

5152

queueOwnerTtlSeconds: number;

53+

probeAgent?: string;

5254

legacyCompatibilityConfig: {

5355

strictWindowsCmdWrapper?: boolean;

5456

queueOwnerTtlSeconds?: number;

@@ -107,6 +109,7 @@ export const AcpxPluginConfigSchema = z.strictObject({

107109

.number({ error: "queueOwnerTtlSeconds must be a number >= 0" })

108110

.min(0, { error: "queueOwnerTtlSeconds must be a number >= 0" })

109111

.optional(),

112+

probeAgent: nonEmptyTrimmedString("probeAgent must be a non-empty string").optional(),

110113

mcpServers: z.record(z.string(), McpServerConfigSchema).optional(),

111114

agents: z

112115

.record(

Original file line numberDiff line numberDiff line change

@@ -58,6 +58,37 @@ describe("embedded acpx plugin config", () => {

5858

});

5959

});

6060
61+

it("leaves probeAgent undefined by default so the runtime picks its built-in probe agent", () => {

62+

const resolved = resolveAcpxPluginConfig({

63+

rawConfig: undefined,

64+

workspaceDir: "/tmp/openclaw-acpx",

65+

});

66+
67+

expect(resolved.probeAgent).toBeUndefined();

68+

});

69+
70+

it("carries an explicit probeAgent through to the resolved plugin config, trimmed", () => {

71+

const resolved = resolveAcpxPluginConfig({

72+

rawConfig: {

73+

probeAgent: " opencode ",

74+

},

75+

workspaceDir: "/tmp/openclaw-acpx",

76+

});

77+
78+

expect(resolved.probeAgent).toBe("opencode");

79+

});

80+
81+

it("rejects an empty probeAgent string", () => {

82+

expect(() =>

83+

resolveAcpxPluginConfig({

84+

rawConfig: {

85+

probeAgent: "",

86+

},

87+

workspaceDir: "/tmp/openclaw-acpx",

88+

}),

89+

).toThrow(/probeAgent must be a non-empty string/);

90+

});

91+
6192

it("injects the built-in plugin-tools MCP server only when explicitly enabled", () => {

6293

const resolved = resolveAcpxPluginConfig({

6394

rawConfig: {

Original file line numberDiff line numberDiff line change

@@ -260,6 +260,8 @@ export function resolveAcpxPluginConfig(params: {

260260

]),

261261

);

262262
263+

const probeAgent = normalized.probeAgent?.trim();

264+
263265

return {

264266

cwd,

265267

stateDir,

@@ -273,6 +275,7 @@ export function resolveAcpxPluginConfig(params: {

273275

normalized.strictWindowsCmdWrapper ?? DEFAULT_STRICT_WINDOWS_CMD_WRAPPER,

274276

timeoutSeconds: normalized.timeoutSeconds ?? DEFAULT_ACPX_TIMEOUT_SECONDS,

275277

queueOwnerTtlSeconds: normalized.queueOwnerTtlSeconds ?? DEFAULT_QUEUE_OWNER_TTL_SECONDS,

278+

probeAgent: probeAgent && probeAgent.length > 0 ? probeAgent : undefined,

276279

legacyCompatibilityConfig: {

277280

strictWindowsCmdWrapper: normalized.strictWindowsCmdWrapper,

278281

queueOwnerTtlSeconds: normalized.queueOwnerTtlSeconds,

Original file line numberDiff line numberDiff line change

@@ -145,6 +145,37 @@ describe("createAcpxRuntimeService", () => {

145145

await service.stop?.(ctx);

146146

});

147147
148+

it("forwards a configured probeAgent to the runtime factory so the probe does not hardcode the default", async () => {

149+

const workspaceDir = await makeTempDir();

150+

const ctx = createServiceContext(workspaceDir);

151+

const runtime = {

152+

ensureSession: vi.fn(),

153+

runTurn: vi.fn(),

154+

cancel: vi.fn(),

155+

close: vi.fn(),

156+

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

157+

isHealthy: vi.fn(() => true),

158+

doctor: vi.fn(async () => ({ ok: true, message: "ok" })),

159+

};

160+

const runtimeFactory = vi.fn(() => runtime as never);

161+

const service = createAcpxRuntimeService({

162+

pluginConfig: { probeAgent: "opencode" },

163+

runtimeFactory,

164+

});

165+
166+

await service.start(ctx);

167+
168+

expect(runtimeFactory).toHaveBeenCalledWith(

169+

expect.objectContaining({

170+

pluginConfig: expect.objectContaining({

171+

probeAgent: "opencode",

172+

}),

173+

}),

174+

);

175+
176+

await service.stop?.(ctx);

177+

});

178+
148179

it("warns when legacy compatibility config is explicitly ignored", async () => {

149180

const workspaceDir = await makeTempDir();

150181

const ctx = createServiceContext(workspaceDir);

Original file line numberDiff line numberDiff line change

@@ -53,6 +53,7 @@ function createDefaultRuntime(params: AcpxRuntimeFactoryParams): AcpxRuntimeLike

5353

mcpServers: toAcpMcpServers(params.pluginConfig.mcpServers),

5454

permissionMode: params.pluginConfig.permissionMode,

5555

nonInteractivePermissions: params.pluginConfig.nonInteractivePermissions,

56+

probeAgent: params.pluginConfig.probeAgent,

5657

timeoutMs:

5758

params.pluginConfig.timeoutSeconds != null

5859

? params.pluginConfig.timeoutSeconds * 1_000