mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why When a filename is already taken, saving a conversation with `/export` ends with an error. Users have to restart the export to choose a different name. ## What changed Show a conflict picker with options to choose another name, replace the existing file, or cancel. Choosing another name pre-fills an editable numbered filename, such as `notes-3.md` when `notes.md` and `notes-2.md` already exist. Offer replacement only for regular files. After confirmation, check the directory and file identities and use an atomic rename to install the new transcript. ## Testing Cover the picker actions and numbered filename suggestion, verify that replacement requires confirmation, and check that replacement rejects a changed file or redirected directory. GitOrigin-RevId: edcb2fad858bab15a7228c69bd27a8ffd18e8d05