Skip to content

/copy always copies most recent message, even after rewinding #18718

@raykyri

Description

@raykyri

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

Metadata

Metadata

Assignees

Labels

TUIIssues related to the terminal user interface: text input, menus and dialogs, and terminal displaybugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions