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_

View original on GitHub ↗

14 Comments

The-Obstacle-Is-The-Way · 1 year ago

yes this remains a bug

the previous command was [control + J] which still works to give a new line fyi

wshobson · 1 year ago

+1

tomascupr contributor · 1 year ago
WASasquatch · 1 year ago

I already made a post about this. Use Ctrl + J. Should work.

https://github.com/openai/codex/issues/508

tomascupr contributor · 1 year ago

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: @.***>
v3ceban · 1 year ago

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

WASasquatch · 1 year ago
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.

vshuraeff · 1 year ago

ALT+Enter is standart to many, but not Shift+Enter. this should be configurable

SamMcCormick61 · 1 year ago

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.

seratch member · 11 months ago

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.

wintercounter · 9 months ago

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.

zuuxuux · 9 months ago

You can add a new line with Alt + Enter (on linux at least)

dkarelov · 6 months ago

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.

bolzzzz · 4 months ago
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!