diff options
Diffstat (limited to 'packages/cli/src/core/gemini-stream.ts')
| -rw-r--r-- | packages/cli/src/core/gemini-stream.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/packages/cli/src/core/gemini-stream.ts b/packages/cli/src/core/gemini-stream.ts index 70361f10..0e3ca025 100644 --- a/packages/cli/src/core/gemini-stream.ts +++ b/packages/cli/src/core/gemini-stream.ts @@ -1,4 +1,4 @@ -import { ToolCallEvent , HistoryItem } from '../ui/types.js'; +import { ToolCallEvent, HistoryItem } from '../ui/types.js'; import { Part } from '@google/genai'; import { handleToolCallChunk, @@ -161,7 +161,11 @@ export const processGeminiStream = async ({ renderTimeoutId = null; } // Delegate history update for error message - addErrorMessageToHistory(error as (Error | DOMException), setHistory, getNextMessageId); + addErrorMessageToHistory( + error as Error | DOMException, + setHistory, + getNextMessageId, + ); } finally { isStreamComplete = true; // Signal stream end for render loop completion if (renderTimeoutId) { |
