diff --git a/src/acp/runtime/error-text.test.ts b/src/acp/runtime/error-text.test.ts index b58cd3ef4fb..14f7ff91f55 100644 --- a/src/acp/runtime/error-text.test.ts +++ b/src/acp/runtime/error-text.test.ts @@ -7,13 +7,15 @@ describe("formatAcpRuntimeErrorText", () => { const text = formatAcpRuntimeErrorText( new AcpRuntimeError("ACP_BACKEND_MISSING", "backend missing"), ); - expect(text).toContain("ACP error (ACP_BACKEND_MISSING): backend missing"); - expect(text).toContain("next:"); + expect(text).toBe( + "ACP error (ACP_BACKEND_MISSING): backend missing\nnext: Run `/acp doctor`, install/enable the backend plugin, then retry.", + ); }); it("returns consistent ACP error envelope for runtime failures", () => { const text = formatAcpRuntimeErrorText(new AcpRuntimeError("ACP_TURN_FAILED", "turn failed")); - expect(text).toContain("ACP error (ACP_TURN_FAILED): turn failed"); - expect(text).toContain("next:"); + expect(text).toBe( + "ACP error (ACP_TURN_FAILED): turn failed\nnext: Retry, or use `/acp cancel` and send the message again.", + ); }); });