test(coding-agent): update stale mocks and fix /clone expectation (#3608)

This commit is contained in:
Julian LaNeve
2026-04-23 14:52:03 -04:00
committed by GitHub
parent d862ae50f8
commit ab744e216d
5 changed files with 9 additions and 6 deletions

View File

@@ -450,6 +450,7 @@ describe("AgentSession concurrent prompt guard", () => {
systemPrompt: string,
systemPromptOptions: BuildSystemPromptOptions,
) => Promise<undefined>;
invalidate: (message?: string) => void;
};
};
sessionWithRunner._extensionRunner = {
@@ -466,6 +467,7 @@ describe("AgentSession concurrent prompt guard", () => {
},
emitInput: async () => ({ action: "continue" }),
emitBeforeAgentStart: async () => undefined,
invalidate: () => {},
};
await session.prompt("hi");
@@ -590,6 +592,7 @@ describe("AgentSession concurrent prompt guard", () => {
systemPrompt: string,
systemPromptOptions: BuildSystemPromptOptions,
) => Promise<undefined>;
invalidate: (message?: string) => void;
};
};
sessionWithRunner._extensionRunner = {
@@ -601,6 +604,7 @@ describe("AgentSession concurrent prompt guard", () => {
},
emitInput: async () => ({ action: "continue" }),
emitBeforeAgentStart: async () => undefined,
invalidate: () => {},
};
await session.prompt("hi");