shift+enter
Resolved 💬 14 comments Opened Apr 22, 2025 by adcore-dev Closed Aug 12, 2025
💡 Likely answer: A maintainer (tomascupr, contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0.1.2504211509
Which model were you using?
o4-mini
What platform is your computer?
linux | x64 | 6.8.0-58-generic
What steps can reproduce the bug?
add text and use shift+enter
What is the expected behavior?
The textbox should be enlarged and new line should be added
What do you see instead?
it send request
Additional information
_No response_
14 Comments
yes this remains a bug
the previous command was [control + J] which still works to give a new line fyi
+1
Just submitted a PR https://github.com/openai/codex/pull/568
I already made a post about this. Use
Ctrl + J. Should work.https://github.com/openai/codex/issues/508
Yes. But shift+enter is standard for many.
On Wed 23. 4. 2025 at 4:32, WAS @.***> wrote:
Is there any chance to make this suggestion customizable? Some terminal emulators don't support meta keys + enter combinations and it may be confusing for some people
It's not standard for terminal. I explored this and the way to do it makes input broken across new lines, and can't hop back to previous line. Though I may have simply not implemented it right. But seems I can see why this is a web thing, and not a terminal thing.
ALT+Enter is standart to many, but not Shift+Enter. this should be configurable
Muscle Memory Mayhem: Accidental Submissions in Codex Terminal (Shift+Enter)
I'm used to ChatGPT (web) and Gemini (AI Studio) where Shift+Enter (and often just Enter) creates a new line in my prompts.
Much like the box I am typing this message into at the moment...
When I switch to the Codex terminal, I instinctively hit Shift+Enter for a new line, but it submits the prompt instead! This means I'm constantly sending half-finished prompts.
Since the latest versions enables using shift + enter, let us close this issue. For other related feedback in this thread, opening a new issue would be appreciated.
On Windows (WSL) inside VSCode terminal Shift+Enter is sending the prompt. CTRL+J also doesn't work, that is the shortcut to hide the Terminal panel. Probably the issue should be ropened.
You can add a new line with Alt + Enter (on linux at least)
Just rebind this in Windows Terminal itself:
Open WIndows Terminal settings, then settings.json.
Add to "actions": [...]:
Press Save. It works now.
it works, thanks!