mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-19 09:33:53 +00:00
fix: early stop on invalid tool call (#458)
This commit is contained in:
@@ -644,8 +644,9 @@ export const useGeminiStream = (
|
|||||||
options?: { isContinuation: boolean },
|
options?: { isContinuation: boolean },
|
||||||
prompt_id?: string,
|
prompt_id?: string,
|
||||||
) => {
|
) => {
|
||||||
// Prevent concurrent executions of submitQuery
|
// Prevent concurrent executions of submitQuery, but allow continuations
|
||||||
if (isSubmittingQueryRef.current) {
|
// which are part of the same logical flow (tool responses)
|
||||||
|
if (isSubmittingQueryRef.current && !options?.isContinuation) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user