fix(coding-agent): update interactive mode test fixture

This commit is contained in:
David Brailovsky 2026-09-03 09:53:14 +02:00
parent bea67d90d1
commit f41f80466e

View file

@ -49,6 +49,7 @@ type RenderSessionContextThis = {
isInitialized: boolean;
updateEditorBorderColor(): void;
getRegisteredToolDefinition(toolName: string): undefined;
maybeShowAssistantDiagnostics(message: AssistantMessage): void;
addMessageToChat(message: AgentMessage, options?: { populateHistory?: boolean }): void;
renderSessionItems: RenderSessionItems;
};
@ -79,6 +80,7 @@ function createFakeInteractiveModeThis(): RenderSessionContextThis {
isInitialized: true,
updateEditorBorderColor: vi.fn(),
getRegisteredToolDefinition: (_toolName: string) => undefined,
maybeShowAssistantDiagnostics: vi.fn(),
renderSessionItems: (InteractiveMode.prototype as unknown as { renderSessionItems: RenderSessionItems })
.renderSessionItems,
addMessageToChat(message: AgentMessage) {