enqueue when generating response
This commit is contained in:
parent
b4cd212942
commit
b0386085ac
1 changed files with 7 additions and 1 deletions
|
|
@ -468,7 +468,13 @@ const UserInput: React.FC<UserInputProps> = ({
|
|||
// select and submit the command
|
||||
const commandText = "/" + commandName;
|
||||
inputHistory.addEntry(commandText);
|
||||
onSubmit(commandText);
|
||||
|
||||
// queue up when responding/generating
|
||||
if (!isRemoteMode && (isWaitingForResponse || isCompacting)) {
|
||||
void messageQueue.enqueueMessage(commandText);
|
||||
} else {
|
||||
onSubmit(commandText);
|
||||
}
|
||||
|
||||
// reset after submitting command
|
||||
textBuffer.clear();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue