mirror of
https://github.com/openai/codex.git
synced 2026-10-21 05:09:33 +00:00
## Why Composer drafts include attachments, mention targets, and deferred paste payloads in addition to visible text. Vim undo needs to restore that complete state as a single edit. ## What changed - Add bounded, draft-level Vim undo history, with `u` as the configurable default binding in normal mode. - Group complete Vim commands and insert sessions into undo steps, including direct composer changes such as pastes and attachments. - Preserve undo, repeat, and search state when a reverse-history preview is canceled, and start fresh history when another prompt is accepted. ## Testing - Cover grouped edits, custom bindings, history and search interactions, attachments, and large paste payloads. GitOrigin-RevId: 12ecdb3c34a2d66f5d856aa2f82dc15bd91b230b