Skip to content

shift+enter #545

Closed
Closed

Description

@adcore-dev

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

Activity

  1. added
    bug
    on Apr 22, 2025
  2. The-Obstacle-Is-The-Way commented on Apr 22, 2025

    @The-Obstacle-Is-The-Way

    yes this remains a bug

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

  3. wshobson commented on Apr 22, 2025

    @wshobson

    +1

  4. tomascupr commented on Apr 23, 2025

    @tomascupr
    Contributor

    Just submitted a PR #568

  5. WASasquatch commented on Apr 23, 2025

    @WASasquatch

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

    #508

  6. tomascupr commented on Apr 23, 2025

    @tomascupr
    Contributor
  7. v3ceban commented on Apr 23, 2025

    @v3ceban

    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

  8. WASasquatch commented on Apr 24, 2025

    @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
    #545 (comment), or
    unsubscribe
    https://github.com/notifications/unsubscribe-auth/BQCPGMCVQWTOFYT7K3M7T6L2233UXAVCNFSM6AAAAAB3UHYWKOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDQMRSHEYDMNJRGA
    .
    You are receiving this because you commented.Message ID:
    @.***>
    WASasquatch left a comment (#545)
    #545 (comment)

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

    —
    Reply to this email directly, view it on GitHub
    #545 (comment), 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.

  9. vshuraeff commented on Apr 26, 2025

    @vshuraeff

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

  10. SamMcCormick61 commented on May 7, 2025

    @SamMcCormick61

    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.

  11. seratch commented on Aug 12, 2025

    @seratch
    Member

    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.

  12. wintercounter commented on Sep 26, 2025

    @wintercounter

    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.

  13. zuuxuux commented on Oct 13, 2025

    @zuuxuux

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

  14. dkarelov commented on Dec 29, 2025

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

  15. bolzzzz commented on Mar 6, 2026

    @bolzzzz

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions