Regression: newline still broken in Zed on Windows in 0.130.0

Open 💬 3 comments Opened May 9, 2026 by lgc653
💡 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.130.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5

What platform is your computer?

Windows x64

What terminal emulator and version are you using (if applicable)?

Zed integrated terminal
Zed 1.1.7
commit c17f25cd782edffab64b7c4167abfa44f865b125

What issue are you seeing?

This is still broken for me in Zed on Windows.

I was asked to open a new issue after commenting here:
https://github.com/openai/codex/issues/20555#issuecomment-4412827981

What I confirmed:

  • 0.125.0: newline works
  • 0.128.0: broken
  • 0.130.0: still broken

Upgrading does not fix it.
Adding the suggested tui.keymap.editor.insert_newline config does not fix it either.

For me, the only workaround is downgrading back to 0.125.0.

What steps can reproduce the bug?

  1. Open Zed on Windows.
  2. Open the integrated terminal.
  3. Run codex.
  4. Type some text.
  5. Try to insert a newline.

What is the expected behavior?

A newline should be inserted so multi-line input works normally.

Additional information

I tested these in Zed and none of them inserted a newline:

  • Shift+Enter
  • Alt+Enter
  • Ctrl+J
  • custom tui.keymap.editor.insert_newline config

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 3 months ago

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

  • #20555
  • #20580

Powered by Codex Action

lgc653 · 3 months ago

I checked this with /keymap debug in Zed on Windows.

When I press Shift+Enter, Codex receives:

  • Detected: ctrl + enter
  • Config key: ctrl-enter
  • Raw event: code=Enter, modifiers=ctrl, kind=Press
  • Assigned actions: none

So in my environment, Codex is receiving the key event, but it is being interpreted as ctrl-enter, and ctrl-enter is not assigned to newline insertion by default.

This also explains why Shift+Enter still does nothing for me in Zed on Windows.

misrtjakub · 3 months ago

I put together a small patch for this path:

https://github.com/openai/codex/compare/main...misrtjakub:fix/zed-windows-ctrl-enter-newline?expand=1

It adds ctrl-enter to the default editor.insert_newline bindings, matching the /keymap debug output from Zed on Windows:

  • detected: ctrl + enter
  • config key: ctrl-enter
  • raw event: code=Enter, modifiers=ctrl, kind=Press
  • assigned actions before this change: none

Validation:

cargo test -p codex-tui default_editor_insert_newline_includes_current_aliases
cargo fmt --check
git diff --check