codex - 💡(How to fix) Fix 🔥 Regression: newline shortcut no longer works in PyCharm integrated terminal on Windows since 0.126.0-alpha.11 [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#21082Fetched 2026-05-05 05:53:41
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4closed ×1commented ×1cross-referenced ×1
RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

bisect versions

What subscription do you have?

irrelevant

Which model were you using?

irrelevant

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

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

PyCharm, "Classic" and "Reworked 2025"

What issue are you seeing?

After upgrading the npm-installed Codex CLI from 0.126.0-alpha.10 to 0.126.0-alpha.11, inserting a newline in the TUI composer no longer works in the PyCharm integrated terminal on Windows.

The same shortcut/input still works in normal Windows shell / PowerShell, and downgrading to 0.126.0-alpha.10 fixes the issue.

What steps can reproduce the bug?

Steps to reproduce:

  1. Install npm i -g @openai/[email protected]
  2. Open PyCharm integrated terminal
  3. Run codex
  4. Type a multi-line prompt
  5. Try inserting a newline using the usual newline shortcut (ctrl+j, shift+enter, alt+enter, ctrl+m)
  6. Observe that no newline is inserted / behavior differs from 0.126.0-alpha.10

What is the expected behavior?

The newline shortcut should insert a newline in the composer, as in 0.126.0-alpha.10.

Additional information

Actual: No newline is inserted in PyCharm integrated terminal.

Regression range: Works: 0.126.0-alpha.10 Broken: 0.126.0-alpha.11 (until tested version: 0.129.0-alpha.4)

config.toml contains:

<pre> [tui.keymap.editor] insert_newline = ["ctrl-j", "ctrl-m", "shift-enter"] </pre>

Likely related change: 0.126.0-alpha.11 includes PR #18593, which rewired TUI input handling through the new runtime keymap. The commit fix(tui): honor remapped submit keys removed the legacy Enter/Tab submission fallback. This likely changed how modified Enter events from JetBrains terminals are routed.

Suggested fix: Ensure modified Enter variants emitted by JetBrains integrated terminals are mapped to editor.insert_newline, or preserve the old textarea fallback for Enter events with unsupported/non-submit modifiers.

Potential regression test: Add a composer test that simulates the JetBrains/PyCharm Enter-with-modifier event and verifies:

  • it inserts a newline
  • it does not submit the composer

AND NO, THIS IS NO DUPLICATE AND STILL NOT FIXED!

extent analysis

TL;DR

The issue can be fixed by ensuring modified Enter variants from JetBrains integrated terminals are mapped to editor.insert_newline or preserving the old textarea fallback for Enter events.

Guidance

  • Review the changes introduced in PR #18593 and the commit fix(tui): honor remapped submit keys to understand how the TUI input handling was rewired.
  • Verify that the config.toml file contains the correct keymap configuration for the insert_newline action, as shown in the issue.
  • Test the suggested fix by mapping modified Enter variants to editor.insert_newline and verifying that it inserts a newline without submitting the composer.
  • Consider adding a regression test to simulate the JetBrains/PyCharm Enter-with-modifier event and verify the correct behavior.

Example

No code snippet is provided as the issue does not require a specific code change, but rather a configuration or keymap adjustment.

Notes

The issue seems to be specific to the PyCharm integrated terminal on Windows and the Codex CLI version 0.126.0-alpha.11. The suggested fix may not apply to other terminals or versions.

Recommendation

Apply the suggested fix by mapping modified Enter variants to editor.insert_newline or preserving the old textarea fallback for Enter events, as this is the most likely solution to resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix 🔥 Regression: newline shortcut no longer works in PyCharm integrated terminal on Windows since 0.126.0-alpha.11 [1 comments, 2 participants]