codex icon indicating copy to clipboard operation
codex copied to clipboard

shift+enter

Open adcore-dev opened this issue 1 year ago • 14 comments

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

adcore-dev avatar Apr 22 '25 17:04 adcore-dev

yes this remains a bug

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

The-Obstacle-Is-The-Way avatar Apr 22 '25 17:04 The-Obstacle-Is-The-Way

+1

wshobson avatar Apr 22 '25 17:04 wshobson

Just submitted a PR https://github.com/openai/codex/pull/568

tomascupr avatar Apr 23 '25 00:04 tomascupr

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

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

WASasquatch avatar Apr 23 '25 02:04 WASasquatch

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: @.***>

tomascupr avatar Apr 23 '25 06:04 tomascupr

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

v3ceban avatar Apr 23 '25 17:04 v3ceban

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.

WASasquatch avatar Apr 24 '25 17:04 WASasquatch

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

vshuraeff avatar Apr 26 '25 20:04 vshuraeff

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.

SamMcCormick61 avatar May 07 '25 22:05 SamMcCormick61

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.

seratch avatar Aug 12 '25 05:08 seratch

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.

wintercounter avatar Sep 26 '25 07:09 wintercounter

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

zuuxuux avatar Oct 13 '25 13:10 zuuxuux

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.

dkarelov avatar Dec 29 '25 08:12 dkarelov

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!

bolzzzz avatar Mar 06 '26 04:03 bolzzzz