/copy always copies most recent message, even after rewinding

Resolved 💬 0 comments Opened Apr 20, 2026 by raykyri Closed Apr 20, 2026

What version of Codex CLI is running?

codex-cli 0.121.0

What subscription do you have?

Pro

Which model were you using?

gpt-5.4

What platform is your computer?

Darwin 25.2.0 arm64 arm

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

ghostty

What issue are you seeing?

Using /copy always copies the latest sent message in a conversation, even when the Codex CLI has been rewound to an earlier state by using Esc and selecting an earlier message. This also means it's not possible to /copy an earlier message without re-generating it, since rewinding now requires sending a new message before I can copy from that branch again.

(cc @etraut-openai who was active on the original feature request)

What steps can reproduce the bug?

  • Send message "foo"
  • Send message "bar"
  • Rewind to "foo" by double-tapping Esc
  • Send /copy
  • Clipboard says "bar"

What is the expected behavior?

_No response_

Additional information

_No response_

View original on GitHub ↗