You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Setting to send prompt only with send button, not hitting enter. #16226
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Prompts are getting more complex and multi-paragraph. I don't know if I'm the only one frustratred when hitting enter to continue writing but instead have the prompt sent by mistake. Using shift+enter is a bit unnatural, even though is the usual in other apps too. I believe it could be customized to only have the prompt sent by clicking the send button.
Alternative: have pop up button that opens a text box in a modal so you can build the prompt properly, save it and then send it.
Final thought: I believe writing a prompt deserves something a little more complex than a regular chat bubble and send-by-enter.
Thanks for reading! (I've searched and didn't find this issue. Apollogies if I missed it)
Thanks for your answer. I believe it partly does, and I'll probably use the setting if merged. I think having a little label above the send button that reads "Enter = sends message"/"Enter = new line" could add to the UX.
I think the issue needs a bit more discussion though, but I wouldn't delay your merge for it.
Prompts (specially for engineers) are becoming complex text. I haven't seen any LLM's chat interfase address this. I wonder why the simple "text blob" hasn't still evolved to a UI that would allow text enrichment. I don't mean more than what we have here in github: simple formatting, bullets, hyperlinks, code, etc. Enter means a new line, since I'm not chatting: I'm building an argument, reasoning, showing something. Then I submit by clicking a button outside the text box. Or maybe ctrl+enter, as you suggest.
Anyways, I believe it's worth thinking about it. (I could close this issue and open a different one for this discussion.)
Thanks for your answer. I believe it partly does, and I'll probably use the setting if merged. I think having a little label above the send button that reads "Enter = sends message"/"Enter = new line" could add to the UX.
I think the issue needs a bit more discussion though, but I wouldn't delay your merge for it.
Prompts (specially for engineers) are becoming complex text. I haven't seen any LLM's chat interfase address this. I wonder why the simple "text blob" hasn't still evolved to a UI that would allow text enrichment. I don't mean more than what we have here in github: simple formatting, bullets, hyperlinks, code, etc. Enter means a new line, since I'm not chatting: I'm building an argument, reasoning, showing something. Then I submit by clicking a button outside the text box. Or maybe ctrl+enter, as you suggest.
Anyways, I believe it's worth thinking about it. (I could close this issue and open a different one for this discussion.)
i see what you saying, however bear in mind that the agent receives plain text. Your formatting does not really matter when it comes to reasoning. And, you can always create a doc file and mention it in the prompt, i.e. 'refer to this spec spec.md', and in that doc you can format however you like
Mobile users need a setting like or equivalent to this for the web (and probably by implication desktop) UI. It's currently impossible to type a newline on mobile via the normal keyboard.
Register prompt.submit (default enter) and prompt.newline (default shift+enter) as web commands so they surface in the existing Settings → Keyboard Shortcuts UI (auto-groups under "Prompt" via the id prefix). Dispatch stays local in prompt-input.tsx's handleKeyDown via matchKeybind. No new config schema; no migration; defaults preserve current behavior byte-for-byte.
Manual browser walkthrough completed — all four combinations (default/swapped × submit/newline) verified via Chrome DevTools against the built desktop instance. Zero accidental submissions thanks to event.stopPropagation() + the existing empty-content guard in handleSubmit.
(First attempt #23378 was auto-closed by the compliance bot before I'd run the manual walkthrough; #23430 supersedes it.)
This is still relevant. The issue was closed by inactivity cleanup rather than because the behavior was resolved.
Although the closed PR view is frozen at an older commit, the source branch for my PR #23430 is actively maintained and was recently refreshed against dev. It exposes prompt.submit and prompt.newline through the existing Keyboard Shortcuts settings, keeps Enter/Shift+Enter defaults unchanged, and supports both current prompt composers while keeping dispatch editor-local.
Activity
github-actions commentedon Mar 5, 2026
This issue might be a duplicate of existing issues. Please check:
For keybind-related issues, please also check our pinned keybinds documentation: #4997
alexyaroshuk commentedon Mar 5, 2026
Would this addresses the issue ?#13637
ronixinc commentedon Mar 6, 2026
Thanks for your answer. I believe it partly does, and I'll probably use the setting if merged. I think having a little label above the send button that reads "Enter = sends message"/"Enter = new line" could add to the UX.
I think the issue needs a bit more discussion though, but I wouldn't delay your merge for it.
Prompts (specially for engineers) are becoming complex text. I haven't seen any LLM's chat interfase address this. I wonder why the simple "text blob" hasn't still evolved to a UI that would allow text enrichment. I don't mean more than what we have here in github: simple formatting, bullets, hyperlinks, code, etc. Enter means a new line, since I'm not chatting: I'm building an argument, reasoning, showing something. Then I submit by clicking a button outside the text box. Or maybe ctrl+enter, as you suggest.
Anyways, I believe it's worth thinking about it. (I could close this issue and open a different one for this discussion.)
alexyaroshuk commentedon Mar 7, 2026
i see what you saying, however bear in mind that the agent receives plain text. Your formatting does not really matter when it comes to reasoning. And, you can always create a doc file and mention it in the prompt, i.e. 'refer to this spec spec.md', and in that doc you can format however you like
alexchandel commentedon Mar 13, 2026
Mobile users need a setting like or equivalent to this for the web (and probably by implication desktop) UI. It's currently impossible to type a newline on mobile via the normal keyboard.
CasualDeveloper commentedon Apr 19, 2026
Proposed fix in #23430. Approach:
Register
prompt.submit(defaultenter) andprompt.newline(defaultshift+enter) as web commands so they surface in the existing Settings → Keyboard Shortcuts UI (auto-groups under "Prompt" via the id prefix). Dispatch stays local inprompt-input.tsx'shandleKeyDownviamatchKeybind. No new config schema; no migration; defaults preserve current behavior byte-for-byte.Manual browser walkthrough completed — all four combinations (default/swapped × submit/newline) verified via Chrome DevTools against the built desktop instance. Zero accidental submissions thanks to
event.stopPropagation()+ the existing empty-content guard inhandleSubmit.(First attempt #23378 was auto-closed by the compliance bot before I'd run the manual walkthrough; #23430 supersedes it.)
Happy to adapt approach or drop if not wanted.
45 remaining items
github-actions commentedon Aug 6, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.
CasualDeveloper commentedon Aug 9, 2026
This is still relevant. The issue was closed by inactivity cleanup rather than because the behavior was resolved.
Although the closed PR view is frozen at an older commit, the source branch for my PR #23430 is actively maintained and was recently refreshed against
dev. It exposesprompt.submitandprompt.newlinethrough the existing Keyboard Shortcuts settings, keeps Enter/Shift+Enter defaults unchanged, and supports both current prompt composers while keeping dispatch editor-local.