Skip to content

Commit b038608

Browse files
committed
enqueue when generating response
1 parent b4cd212 commit b038608

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

extensions/cli/src/ui/UserInput.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,13 @@ const UserInput: React.FC<UserInputProps> = ({
468468
// select and submit the command
469469
const commandText = "/" + commandName;
470470
inputHistory.addEntry(commandText);
471-
onSubmit(commandText);
471+
472+
// queue up when responding/generating
473+
if (!isRemoteMode && (isWaitingForResponse || isCompacting)) {
474+
void messageQueue.enqueueMessage(commandText);
475+
} else {
476+
onSubmit(commandText);
477+
}
472478

473479
// reset after submitting command
474480
textBuffer.clear();

0 commit comments

Comments
 (0)