shift+enter
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
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:
I already made a post about this. Use Ctrl + J. Should work.
— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/545#issuecomment-2822906510, or unsubscribe https://github.com/notifications/unsubscribe-auth/BQCPGMCVQWTOFYT7K3M7T6L2233UXAVCNFSM6AAAAAB3UHYWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSHEYDMNJRGA . You are receiving this because you commented.Message ID: @.***> WASasquatch left a comment (openai/codex#545) https://github.com/openai/codex/issues/545#issuecomment-2822906510
I already made a post about this. Use Ctrl + J. Should work.
— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/545#issuecomment-2822906510, or unsubscribe https://github.com/notifications/unsubscribe-auth/BQCPGMCVQWTOFYT7K3M7T6L2233UXAVCNFSM6AAAAAB3UHYWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSHEYDMNJRGA . You are receiving this because you commented.Message ID: @.***>
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
Yes. But shift+enter is standard for many.
On Wed 23. 4. 2025 at 4:32, WAS @.***> wrote:
I already made a post about this. Use Ctrl + J. Should work.
— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/545#issuecomment-2822906510, or unsubscribe https://github.com/notifications/unsubscribe-auth/BQCPGMCVQWTOFYT7K3M7T6L2233UXAVCNFSM6AAAAAB3UHYWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSHEYDMNJRGA . You are receiving this because you commented.Message ID: @.***> WASasquatch left a comment (openai/codex#545) https://github.com/openai/codex/issues/545#issuecomment-2822906510
I already made a post about this. Use Ctrl + J. Should work.
— Reply to this email directly, view it on GitHub https://github.com/openai/codex/issues/545#issuecomment-2822906510, or unsubscribe https://github.com/notifications/unsubscribe-auth/BQCPGMCVQWTOFYT7K3M7T6L2233UXAVCNFSM6AAAAAB3UHYWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSHEYDMNJRGA . You are receiving this because you commented.Message ID: @.***>
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": [...]:
{
"command": { "action": "sendInput", "input": "\u000A" },
"keys": "shift+enter"
}
Press Save. It works now.
Just rebind this in Windows Terminal itself:
Open WIndows Terminal settings, then settings.json.
Add to "actions": [...]:
{ "command": { "action": "sendInput", "input": "\u000A" }, "keys": "shift+enter" }Press Save. It works now.
it works, thanks!