"Pasting a content" twice, then deleting one of them also deletes the first "pasted content"
What version of Codex is running?
codex-cli 0.63.0
What subscription do you have?
Pro
Which model were you using?
gpt-5.1-codex-max
What platform is your computer?
6.17.8-arch1-1
What issue are you seeing?
I pasted something long and then accidentally pasted it again. Then I deleted the second paste and the first one was removed from the chat. I could tell because it did not expand in the cli when I sent it and the model had no clue what I was talking about.
<img width="1386" height="608" alt="Image" src="https://github.com/user-attachments/assets/f801e666-4c20-4c4c-9ae9-7d48881840d5" />
<img width="673" height="156" alt="Image" src="https://github.com/user-attachments/assets/500887e0-1bda-46f9-a788-bcd42abff3b3" />
What steps can reproduce the bug?
Paste a long text (and potentially image. Did not test as pasting an image itself is flaky) twice. Then delete the second copy
What is the expected behavior?
Don't delete the first [pasted content]
Additional information
_No response_
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗