Skip to content

Edit Queued Message with Option + Up (⌥↑ edit) Not Working on MacOS terminal or iTerm. #4490

Closed

Description

@omar-hanafy

What version of Codex is running?

codex-cli 0.42.0

Which model were you using?

gpt-5-codex

What platform is your computer?

MacOS 15.6.1 (24G90)

What steps can reproduce the bug?

  • Wirte a prompt and press enter.
  • Queue another prompt while in progress.
  • Press ⌥↑ to edit queued prompt.

What is the expected behavior?

to be able to edit queued messages.

What do you see instead?

nothing happenning.

Additional information

is there anything wrong I might be doing? I usually use iTerm, but tried MacOS Terminal.app, cursor terminal, JetBrains, Warp, and Ghostty and all of them are not working.

Activity

  1. added
    bug
    on Sep 30, 2025
  2. vuyelwadr commented on Oct 3, 2025

    @vuyelwadr

    same thing happens for me so I dug into why ⌥↑ (“Alt+Up edit”) is a no-op on macOS terminals where Option isn’t set to send Meta.

    • Environment: macOS Sequoia 15.6 (24G84) on a 16‑inch MacBook Pro (Nov 2024, Apple M4 Pro, 48 GB RAM), Apple Terminal (default settings), codex-cli 0.42.0 (tui main).
    • Repro: queue a couple of messages (start a long-running task, hit Enter twice), then press ⌥↑. The status panel shows ⌥↑ edit, but nothing happens.
    • Raw key capture: running cat -vet and pressing ⌥↑ prints ^[[A, which is the same escape sequence produced by a plain Up arrow. With Option configured to send Meta, the sequence changes to ^[ [ 1 ; 3 A or ^[ [ 1 ; 9 A.
    • Crossterm behaviour: because the terminal emits ^[[A, crossterm normalizes Up and Option+Up into a single event: KeyEvent { code: KeyCode::Up, modifiers: KeyModifiers::NONE, kind: KeyEventKind::Press, … }.
    • Codex handling: the edit-queued-message branch in ChatWidget::handle_key_event (codex-rs/tui/src/chatwidget.rs:1023) checks modifiers.contains(KeyModifiers::ALT). With the modifier bit absent, the branch never runs. The chat composer
      already consumes bare KeyCode::Up for history navigation (codex-rs/tui/src/bottom_pane/chat_composer.rs:870+), so no edit action is triggered.
  3. eddywebs commented on Nov 1, 2025

    @eddywebs

    I have issue on osx 15.6 running on apple silicon.

  4. added
    TUI
    on Nov 14, 2025
  5. austinm911 commented on Jan 1, 2026

    @austinm911

    nor on Warp

  6. andrewchen5678 commented on Jan 3, 2026

    @andrewchen5678

    got hit with the same issue today, can't believe this, did the developer actually test the shortcuts?

  7. Hyperrick commented on Feb 2, 2026

    @Hyperrick

    Still an issue in native Mac Terminal

  8. snwfdhmp commented on Feb 7, 2026

    @snwfdhmp

    still an issue here. macOS 15, vscode terminal

  9. linminhtoo commented on Feb 18, 2026

    @linminhtoo

    yup still not working. no way for me to edit my queue.

  10. snwfdhmp commented on Feb 18, 2026

    @snwfdhmp

    Put 👍 on issue to make it go up in their priority list

    #4490 (comment)

  11. Hyperrick commented on Feb 18, 2026

    @Hyperrick

    Working in iterm2

  12. etraut-openai commented on Feb 22, 2026

    @etraut-openai
    Contributor

    This will be fixed in the next release.

  13. CodeLuca commented on Feb 23, 2026

    @CodeLuca

    Cant wait

  14. added a commit that references this issue on Jun 27, 2026
    a964279
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

    TUIbug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions