Skip to content

Extension's return key behavior is non-standard and frustrating #5687

Closed

Description

@btraut

What version of Codex is running?

0.4.26

What subscription do you have?

Personal

Which model were you using?

No response

What platform is your computer?

Darwin 24.6.0 arm64 arm

What issue are you seeing?

I'm really struggling with the behavior of the Return key in the Codex extension on VS Code and Codex. Pressing return submits the prompt if it's a single line, or else it creates a newline if it's a multi-line prompt. While I understand what you folks were going for, this is entirely unlike any behavior I've ever seen and it almost always results in mistakes.

Thanks!

What steps can reproduce the bug?

  1. Type or paste multi-line text.
  2. Press return to submit, but get a newline instead.
  3. Curse at the extension.
  4. Cmd-return to submit.

What is the expected behavior?

Pressing return should always submit, regardless of presence of a newline.

Additional information

No response

Activity

  1. added
    bug
    on Oct 25, 2025
  2. added
    extension
    enhancement
    on Oct 25, 2025
  3. adsqx commented on Oct 25, 2025

    @adsqx

    I've described the problem here. #5683
    Maybe requery_default_colors() will solve the problem.

  4. removed
    enhancement
    on Nov 2, 2025
  5. pierce403 commented on Nov 22, 2025

    @pierce403

    Please fix this. I don't know of any other IDE or even chat app that works this way, and I regularly switch through Cursor, Claude, and now Antigravity, and having to remember that I'm in upside down land whenever I use Codex is very off-putting.

    Cohesive UX is important.

  6. martinezhermes commented on Dec 28, 2025

    @martinezhermes

    Why is this still an issue? why can't this be fixed by a keybinding if you guys insist in your inconsistent UX preferences?

  7. btraut commented on Dec 30, 2025

    @btraut
    Author

    @martinezhermes I'm not sure how I'd do that. The non-standard (and frustrating) behavior of the Codex extension isn't something exposed as a keybiding that I can re-bind as far as I'm aware.

  8. PowerSix commented on Jan 23, 2026

    @PowerSix

    The inability to change the default behavior of the Enter key is why I dropped Kiro and switched to Codex. Kiro devs were simply disinterested in creating a simple configuration line that says "Send on {Enter | Ctrl + Enter}". After so many misfired messages to Kiro, when all I wanted was a new line, I finally had enough and said goodbye to it.

    With Codex, I very much like how I can actually use the multi-line editor by default - although I have been caught off-guard occasionally when messages were sent just by pressing Enter, if they were a single line.

    I don't speak for everyone, of course, but all of our lives would be made much easier with a bit of predictability and consistency here.
    If users could have a choice between sending messages with either Enter or Ctrl+Enter, everyone could set up whatever choice they want and we'd all be happy little pandas.

    That said, please, for the love of everything - do not take away the Ctrl+Enter functionality! I will make Enter on single-line work somehow and will never complain. Ever!

  9. etraut-openai commented on Jan 27, 2026

    @etraut-openai
    Contributor

    Good new! The next prerelease version of the Codex IDE Extension changes this behavior, aligning it with the more standard behavior seen in other chat interfaces like ChatGPT. The old behavior will still be available via a setting for users who preferred it.

  10. btraut commented on Jan 28, 2026

    @btraut
    Author

    Woohoo! Thanks @etraut-openai and team!

  11. PowerSix commented on Jan 29, 2026

    @PowerSix

    Good new! The next prerelease version of the Codex IDE Extension changes this behavior, aligning it with the more standard behavior seen in other chat interfaces like ChatGPT. The old behavior will still be available via a setting for users who preferred it.

    I cannot enable the option "^ + enter to send long prompts"
    When I click "Open settings" under "IDE settings", this option doesn't show up in either 0.4.68 or 0.4.67.

    I rolled back to 0.4.66 and am happy to stay there until we find a way to not force "Enter to send" on everyone.

  12. locked as resolved and limited conversation to collaborators on Jan 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugextension

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions