mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
fix(coding-agent): update interactive mode test fixture
This commit is contained in:
parent
bea67d90d1
commit
f41f80466e
1 changed files with 2 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue