mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 12:40:44 +00:00
allow aborting of shell mode (!) commands, similar to shell tool commands. fix bug that prevented aborts after first abort. more robust killing logic (#616)
This commit is contained in:
parent
b0aeeb53b1
commit
8935a248f6
3 changed files with 92 additions and 31 deletions
|
|
@ -199,7 +199,7 @@ export const useGeminiStream = (
|
|||
return { queryToSend: null, shouldProceed: false }; // Handled by scheduling the tool
|
||||
}
|
||||
|
||||
if (shellModeActive && handleShellCommand(trimmedQuery)) {
|
||||
if (shellModeActive && handleShellCommand(trimmedQuery, signal)) {
|
||||
return { queryToSend: null, shouldProceed: false };
|
||||
}
|
||||
|
||||
|
|
@ -492,7 +492,7 @@ export const useGeminiStream = (
|
|||
const userMessageTimestamp = Date.now();
|
||||
setShowHelp(false);
|
||||
|
||||
abortControllerRef.current ??= new AbortController();
|
||||
abortControllerRef.current = new AbortController();
|
||||
const signal = abortControllerRef.current.signal;
|
||||
|
||||
const { queryToSend, shouldProceed } = await prepareQueryForGemini(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue