From 191006d5de83a903b7ec3bf79978300039886b16 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Fri, 28 Nov 2025 19:41:55 +0530 Subject: [PATCH 1/3] feat: submit slash command in one enter --- extensions/cli/src/ui/UserInput.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/extensions/cli/src/ui/UserInput.tsx b/extensions/cli/src/ui/UserInput.tsx index fb31e4e5c..c0c9c6d40 100644 --- a/extensions/cli/src/ui/UserInput.tsx +++ b/extensions/cli/src/ui/UserInput.tsx @@ -463,7 +463,22 @@ const UserInput: React.FC = ({ if ((key.return && !key.shift) || key.tab) { if (filteredCommands.length > 0) { - selectSlashCommand(filteredCommands[selectedCommandIndex].name); + const commandName = filteredCommands[selectedCommandIndex].name; + if (key.return && commandName !== "title") { + // select and submit the command + const commandText = "/" + commandName; + inputHistory.addEntry(commandText); + onSubmit(commandText); + + // reset after submitting command + textBuffer.clear(); + setInputText(""); + setCursorPosition(0); + setShowSlashCommands(false); + setShowBashMode(false); + } else { + selectSlashCommand(commandName); + } } return true; } From ca42e053ce27169b6d90c69830ef1ec7a9d2c4cd Mon Sep 17 00:00:00 2001 From: "continue[bot]" Date: Fri, 28 Nov 2025 14:18:40 +0000 Subject: [PATCH 2/3] docs: update shell-mode spec for single-enter slash command submission Document that slash commands now submit on Enter (except /title) rather than requiring Tab first. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue Co-authored-by: nate --- extensions/cli/spec/shell-mode.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/cli/spec/shell-mode.md b/extensions/cli/spec/shell-mode.md index 06ad477e9..c3d7c165e 100644 --- a/extensions/cli/spec/shell-mode.md +++ b/extensions/cli/spec/shell-mode.md @@ -27,6 +27,8 @@ Interaction with other input helpers - "/" slash command UI is disabled. - When in slash command mode (input starts with /): - "@" file search suggestions are disabled. + - Enter submits the highlighted slash command directly (except /title, which requires Tab to select first). + - Tab selects the highlighted command without submitting. Submission behavior From b0386085ac6202559ee0056bf36ee1341eee7492 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Thu, 4 Dec 2025 18:09:19 +0530 Subject: [PATCH 3/3] enqueue when generating response --- extensions/cli/src/ui/UserInput.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions/cli/src/ui/UserInput.tsx b/extensions/cli/src/ui/UserInput.tsx index c0c9c6d40..470688120 100644 --- a/extensions/cli/src/ui/UserInput.tsx +++ b/extensions/cli/src/ui/UserInput.tsx @@ -468,7 +468,13 @@ const UserInput: React.FC = ({ // 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();