mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
Fixing at command race condition (#6663)
This commit is contained in:
parent
52e340a11b
commit
4642de2a5c
4 changed files with 139 additions and 36 deletions
|
|
@ -307,6 +307,13 @@ export const useGeminiStream = (
|
|||
messageId: userMessageTimestamp,
|
||||
signal: abortSignal,
|
||||
});
|
||||
|
||||
// Add user's turn after @ command processing is done.
|
||||
addItem(
|
||||
{ type: MessageType.USER, text: trimmedQuery },
|
||||
userMessageTimestamp,
|
||||
);
|
||||
|
||||
if (!atCommandResult.shouldProceed) {
|
||||
return { queryToSend: null, shouldProceed: false };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue