esc esc to "cancel" completely wipes chat history
What version of Codex is running?
0.1.2504251709
Which model were you using?
_No response_
What platform is your computer?
macos
What steps can reproduce the bug?
In a codex terminal with 26% context used up, many previous tool calls. Send a message, immediately hit esc esc to cancel, and it wipes the entire message history. All the messages still show up on my end, but if you ask the model "what's the first thing I said?" it has no recollection of anything before the esc esc.
I'm guessing there's some ungraceful handling here where it basically nukes the entire history instead of simply removing the latest tool invocation block.
What is the expected behavior?
cancels generation/tool use, allows me to type, message history not nuked
What do you see instead?
message history nuked
Additional information
as a workaround, it would be fine to relabel the "esc esc" action as "destructively nuke chat history"
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗