mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:30:43 +00:00
fix: clean up acpx probe agent config
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
@@ -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",
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user