fix: clean up acpx probe agent config · openclaw/openclaw@cf1e486
steipete
·
2026-04-23
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -98,11 +98,6 @@
|
98 | 98 | "label": "State Directory", |
99 | 99 | "help": "Directory used for embedded ACP session state and persistence." |
100 | 100 | }, |
101 | | -"probeAgent": { |
102 | | -"label": "Health Probe Agent", |
103 | | -"help": "Agent id used for the embedded ACP runtime health probe. Defaults to Codex when unset.", |
104 | | -"advanced": true |
105 | | - }, |
106 | 101 | "permissionMode": { |
107 | 102 | "label": "Permission Mode", |
108 | 103 | "help": "Default permission policy for embedded ACP runtime prompts." |
|
137 | 132 | "advanced": true |
138 | 133 | }, |
139 | 134 | "probeAgent": { |
140 | | -"label": "Probe Agent", |
| 135 | +"label": "Health Probe Agent", |
141 | 136 | "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 | 137 | "advanced": true |
143 | 138 | }, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -67,10 +67,10 @@ describe("embedded acpx plugin config", () => {
|
67 | 67 | expect(resolved.probeAgent).toBeUndefined(); |
68 | 68 | }); |
69 | 69 | |
70 | | -it("carries an explicit probeAgent through to the resolved plugin config, trimmed", () => { |
| 70 | +it("carries an explicit probeAgent through to the resolved plugin config, trimmed and lowercased", () => { |
71 | 71 | const resolved = resolveAcpxPluginConfig({ |
72 | 72 | rawConfig: { |
73 | | -probeAgent: " opencode ", |
| 73 | +probeAgent: " OpenCode ", |
74 | 74 | }, |
75 | 75 | workspaceDir: "/tmp/openclaw-acpx", |
76 | 76 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。