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
Extension's return key behavior is non-standard and frustrating #5687
I'm really struggling with the behavior of the Return key in the Codex extension on VS Code and Codex. Pressing return submits the prompt if it's a single line, or else it creates a newline if it's a multi-line prompt. While I understand what you folks were going for, this is entirely unlike any behavior I've ever seen and it almost always results in mistakes.
Thanks!
What steps can reproduce the bug?
Type or paste multi-line text.
Press return to submit, but get a newline instead.
Curse at the extension.
Cmd-return to submit.
What is the expected behavior?
Pressing return should always submit, regardless of presence of a newline.
Additional information
No response
Reacted by Akimasa Watanuki, Richard, Cedric Halbronn, Dean Pierce, Eric Traut, justinrush, Shaf M., Eddy Lin, Eric Traut, Matt Sullivan and 1 more
Please fix this. I don't know of any other IDE or even chat app that works this way, and I regularly switch through Cursor, Claude, and now Antigravity, and having to remember that I'm in upside down land whenever I use Codex is very off-putting.
Cohesive UX is important.
Reacted by Brent Traut, justinrush, Shaf M., Mor Shemesh, Eddy Lin, Hermes Martinez and Jackson Han
@martinezhermes I'm not sure how I'd do that. The non-standard (and frustrating) behavior of the Codex extension isn't something exposed as a keybiding that I can re-bind as far as I'm aware.
The inability to change the default behavior of the Enter key is why I dropped Kiro and switched to Codex. Kiro devs were simply disinterested in creating a simple configuration line that says "Send on {Enter | Ctrl + Enter}". After so many misfired messages to Kiro, when all I wanted was a new line, I finally had enough and said goodbye to it.
With Codex, I very much like how I can actually use the multi-line editor by default - although I have been caught off-guard occasionally when messages were sent just by pressing Enter, if they were a single line.
I don't speak for everyone, of course, but all of our lives would be made much easier with a bit of predictability and consistency here.
If users could have a choice between sending messages with either Enter or Ctrl+Enter, everyone could set up whatever choice they want and we'd all be happy little pandas.
That said, please, for the love of everything - do not take away the Ctrl+Enter functionality! I will make Enter on single-line work somehow and will never complain. Ever!
Good new! The next prerelease version of the Codex IDE Extension changes this behavior, aligning it with the more standard behavior seen in other chat interfaces like ChatGPT. The old behavior will still be available via a setting for users who preferred it.
Good new! The next prerelease version of the Codex IDE Extension changes this behavior, aligning it with the more standard behavior seen in other chat interfaces like ChatGPT. The old behavior will still be available via a setting for users who preferred it.
I cannot enable the option "^ + enter to send long prompts"
When I click "Open settings" under "IDE settings", this option doesn't show up in either 0.4.68 or 0.4.67.
I rolled back to 0.4.66 and am happy to stay there until we find a way to not force "Enter to send" on everyone.
Activity
github-actions commentedon Oct 25, 2025
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
adsqx commentedon Oct 25, 2025
I've described the problem here. #5683
Maybe requery_default_colors() will solve the problem.
pierce403 commentedon Nov 22, 2025
Please fix this. I don't know of any other IDE or even chat app that works this way, and I regularly switch through Cursor, Claude, and now Antigravity, and having to remember that I'm in upside down land whenever I use Codex is very off-putting.
Cohesive UX is important.
martinezhermes commentedon Dec 28, 2025
Why is this still an issue? why can't this be fixed by a keybinding if you guys insist in your inconsistent UX preferences?
btraut commentedon Dec 30, 2025
@martinezhermes I'm not sure how I'd do that. The non-standard (and frustrating) behavior of the Codex extension isn't something exposed as a keybiding that I can re-bind as far as I'm aware.
PowerSix commentedon Jan 23, 2026
The inability to change the default behavior of the Enter key is why I dropped Kiro and switched to Codex. Kiro devs were simply disinterested in creating a simple configuration line that says "Send on {Enter | Ctrl + Enter}". After so many misfired messages to Kiro, when all I wanted was a new line, I finally had enough and said goodbye to it.
With Codex, I very much like how I can actually use the multi-line editor by default - although I have been caught off-guard occasionally when messages were sent just by pressing Enter, if they were a single line.
I don't speak for everyone, of course, but all of our lives would be made much easier with a bit of predictability and consistency here.
If users could have a choice between sending messages with either Enter or Ctrl+Enter, everyone could set up whatever choice they want and we'd all be happy little pandas.
That said, please, for the love of everything - do not take away the Ctrl+Enter functionality! I will make Enter on single-line work somehow and will never complain. Ever!
etraut-openai commentedon Jan 27, 2026
Good new! The next prerelease version of the Codex IDE Extension changes this behavior, aligning it with the more standard behavior seen in other chat interfaces like ChatGPT. The old behavior will still be available via a setting for users who preferred it.
btraut commentedon Jan 28, 2026
Woohoo! Thanks @etraut-openai and team!
PowerSix commentedon Jan 29, 2026
I cannot enable the option "^ + enter to send long prompts"
When I click "Open settings" under "IDE settings", this option doesn't show up in either 0.4.68 or 0.4.67.
I rolled back to 0.4.66 and am happy to stay there until we find a way to not force "Enter to send" on everyone.