diff options
| author | N. Taylor Mullen <[email protected]> | 2025-06-02 01:50:28 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-06-02 08:50:28 +0000 |
| commit | 34b81abd9ce96e47edd36013e92ca1a1844a5a10 (patch) | |
| tree | da552a72390e082b17841ed8ee8565afb9108ef7 /packages/cli/src/ui/hooks/useGeminiStream.ts | |
| parent | 27ba28ef76614102ad5fc5d658076974a34e471f (diff) | |
fix: Ensure all tool calls are complete before submitting responses (#689)
Diffstat (limited to 'packages/cli/src/ui/hooks/useGeminiStream.ts')
| -rw-r--r-- | packages/cli/src/ui/hooks/useGeminiStream.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/cli/src/ui/hooks/useGeminiStream.ts b/packages/cli/src/ui/hooks/useGeminiStream.ts index 35e5a26a..b6ef1481 100644 --- a/packages/cli/src/ui/hooks/useGeminiStream.ts +++ b/packages/cli/src/ui/hooks/useGeminiStream.ts @@ -530,7 +530,10 @@ export const useGeminiStream = ( }, ); - if (completedAndReadyToSubmitTools.length > 0) { + if ( + completedAndReadyToSubmitTools.length > 0 && + completedAndReadyToSubmitTools.length === toolCalls.length + ) { const responsesToSend: PartListUnion[] = completedAndReadyToSubmitTools.map( (toolCall) => toolCall.response.responseParts, |
