diff --git a/plugins/ask-user-question/src/server-harness.test.ts b/plugins/ask-user-question/src/server-harness.test.ts index fb9ca1174..50ba91782 100644 --- a/plugins/ask-user-question/src/server-harness.test.ts +++ b/plugins/ask-user-question/src/server-harness.test.ts @@ -85,6 +85,20 @@ describe("provider gating", () => { }, ); + it.each(["codex", "pi", "acp-cursor"])( + "does not prescribe provider-specific plan tools to %s", + async (providerId) => { + const host = createHost(); + const resolved = await host.harness.resolveAgentConfiguration( + configurationContext(providerId), + ); + expect(resolved.tools).toHaveLength(1); + expect(resolved.tools[0]?.description).not.toMatch( + /EnterPlanMode|ExitPlanMode/, + ); + }, + ); + it("advertises multiSelect as optional and defaults it during execution", async () => { const host = createHost(); const resolved = await host.harness.resolveAgentConfiguration(