test: tighten acp spawn mismatch error assertion · openclaw/openclaw@49e8f59
shakkernerd
·
2026-05-11
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -946,7 +946,10 @@ describe("spawnAcpDirect", () => {
|
946 | 946 | status: "error", |
947 | 947 | errorCode: "runtime_agent_mismatch", |
948 | 948 | }); |
949 | | -expect(result).toHaveProperty("error", expect.stringContaining("OpenClaw config agent")); |
| 949 | +expect(result).toHaveProperty( |
| 950 | +"error", |
| 951 | +'agentId "pleres" is an OpenClaw config agent, not an ACP harness. Use runtime="subagent" or omit runtime for OpenClaw config agents. Use runtime="acp" only with external ACP harness ids such as codex, claude, droid, gemini, or opencode, or configure agents.list[].runtime.type="acp" with runtime.acp.agent.', |
| 952 | +); |
950 | 953 | expect(hoisted.initializeSessionMock).not.toHaveBeenCalled(); |
951 | 954 | expectGatewayMethodNotCalled("agent"); |
952 | 955 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。