mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 04:30:48 +00:00
fix: cancel parallel tool calls mid-execution (#489)
This commit is contained in:
parent
a8bfdf2d56
commit
fb1d13d600
2 changed files with 12 additions and 2 deletions
|
|
@ -395,7 +395,10 @@ export const useGeminiStream = (
|
|||
};
|
||||
|
||||
const streamingState: StreamingState =
|
||||
isResponding || toolCalls.some((t) => t.status === 'awaiting_approval')
|
||||
isResponding ||
|
||||
toolCalls.some(
|
||||
(t) => t.status === 'awaiting_approval' || t.status === 'executing',
|
||||
)
|
||||
? StreamingState.Responding
|
||||
: StreamingState.Idle;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue