fix: clean up acpx probe agent config

This commit is contained in:
Peter Steinberger
2026-04-23 04:10:07 +01:00
parent 6fb55f8959
commit cf1e48672b
2 changed files with 3 additions and 8 deletions

View File

@@ -98,11 +98,6 @@
"label": "State Directory",
"help": "Directory used for embedded ACP session state and persistence."
},
"probeAgent": {
"label": "Health Probe Agent",
"help": "Agent id used for the embedded ACP runtime health probe. Defaults to Codex when unset.",
"advanced": true
},
"permissionMode": {
"label": "Permission Mode",
"help": "Default permission policy for embedded ACP runtime prompts."
@@ -137,7 +132,7 @@
"advanced": true
},
"probeAgent": {
"label": "Probe Agent",
"label": "Health Probe Agent",
"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.",
"advanced": true
},

View File

@@ -67,10 +67,10 @@ describe("embedded acpx plugin config", () => {
expect(resolved.probeAgent).toBeUndefined();
});
it("carries an explicit probeAgent through to the resolved plugin config, trimmed", () => {
it("carries an explicit probeAgent through to the resolved plugin config, trimmed and lowercased", () => {
const resolved = resolveAcpxPluginConfig({
rawConfig: {
probeAgent: " opencode ",
probeAgent: " OpenCode ",
},
workspaceDir: "/tmp/openclaw-acpx",
});