Restore shift-enter for newline

Resolved 💬 5 comments Opened Oct 17, 2025 by aehlke Closed Oct 19, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

You changed behavior: now shift-return submits instead of making a newline. I can only use ctrl-return for newlines now. Please restore the old behavior, and allow either modifier. I keep accidentally submitting!

Additional information

_No response_

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 10 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #4218
  • #3747
  • #3992
  • #4401
  • #3665

Powered by Codex Action

tibo-openai collaborator · 10 months ago

Which terminal emulator and OS are you using?

aehlke · 10 months ago

iTerm2 latest and macOS Tahoe

I noticed after posting this that in one session, neither ctrl nor shift newline was working - it would submit. And in another session, shift newline was still working. Mysterious.

I did close and reopen iTerm2 before this which resumed my sessions automatically. That may have caused the issue - I just tested and a new tab / codex session is working again. Seems that iTerm2's session restoration messes with codex.

hi-fox · 10 months ago

I don't know why all the CLI tools don't use Return for new line and CTRL Return for submit, it's so much better

tibo-openai collaborator · 10 months ago

Thanks @aehlke !