codex - 💡(How to fix) Fix Feature request: Use Return for newline; Cmd+Return to submit [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#17355Fetched 2026-04-11 06:17:05
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Timeline (top)
labeled ×2closed ×1commented ×1
RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

App

What feature would you like to see?

Intro The Codex app’s composer currently only inserts a newline on Return if a newline already exists in the prompt. I’d like an option where Return always inserts a newline, and Cmd+Return submits the prompt.

Expected behavior Return: inserts a newline, regardless of existing newlines Cmd+Return: sends the prompt

Current behavior Return inserts a newline only if a newline already exists; otherwise it submits.

Why this matters This is a standard chat/composer UX pattern and makes multi-line prompts faster to compose without a first “forced” newline.

Additional information

No response

extent analysis

TL;DR

Modify the Codex app's composer to insert a newline on Return regardless of existing newlines and submit on Cmd+Return.

Guidance

  • Review the composer's current implementation to identify the conditional logic that only inserts a newline if a newline already exists.
  • Update the logic to always insert a newline when the Return key is pressed, and submit the prompt when Cmd+Return is pressed.
  • Consider adding an option or setting to allow users to choose between the current behavior and the proposed behavior.
  • Test the updated composer to ensure it behaves as expected in different scenarios, such as when the prompt is empty or already contains multiple lines.

Notes

The feasibility of this modification depends on the specifics of the Codex app's architecture and the technologies used to implement the composer.

Recommendation

Apply workaround: Modify the composer's logic to always insert a newline on Return and submit on Cmd+Return, as this change aligns with standard chat/composer UX patterns and improves usability.

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