Regression: Shift+Enter / Alt+Enter no longer insert newline in TUI prompt
Resolved 💬 4 comments Opened May 1, 2026 by timur-nocodia Closed May 1, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex CLI is running?
codex-cli 0.128.0
Which model were you using?
Not model-specific; this is a TUI input handling issue.
What platform is your computer?
macOS / Darwin 25.4.0 arm64
Terminal environment:
TERM_PROGRAM=vscodeTERM=xterm-256color
What steps can reproduce the bug?
- Open Codex CLI in the VS Code integrated terminal.
- Type a multi-line prompt draft.
- Press
Shift+EnterorAlt+Enterto insert a newline.
What is the expected behavior?
Shift+Enter and/or Alt+Enter should insert a newline in the prompt, matching common chat/editor behavior.
At minimum, modified Enter key sequences should not submit the prompt accidentally.
What do you see instead?
The prompt is submitted instead of inserting a newline.
The current visible workaround is Ctrl+J, but this is easy to miss and differs from the expected behavior in most chat/editor UIs.
Additional information
This looks related to existing TUI input regressions / requests:
- #4218 reported
Shift+Entersubmitting instead of inserting a line break on macOS. - #4401 reported modified Enter escape sequence handling issues on Windows.
- #12129 tracks a broader request to make multiline input behavior configurable.
This report is for the current CLI version 0.128.0 and specifically includes both Shift+Enter and Alt+Enter in the VS Code integrated terminal on macOS.
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same, using old version for now
npm install -g @openai/codex@0.125.0Yep, here too. Painful
Shift+Enter doesn't work, but Alt+Enter does