Skip to content

Add redo support to Vim composer history - #42140

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0cf5bb376ff865ddc0a77705dcb322ef6b57b3a3
Sep 1, 2026
Merged

Add redo support to Vim composer history#42140
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/0cf5bb376ff865ddc0a77705dcb322ef6b57b3a3

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026

Copy link
Copy Markdown

Add redo support to Vim composer history

What changed

  • Add a bounded redo stack for complete composer drafts, including paste payloads and image attachments. Ctrl+R now reapplies the last undone edit in Vim normal mode, while new edits clear stale redo history.
  • Add the configurable vim_normal.redo action to the keymap schema and picker. Preserve reverse prompt-history search in Vim insert mode and non-Vim mode, and honor explicitly configured bindings.
  • Keep pending edit snapshots outside the shared undo/redo byte budget so canceled commands cannot evict committed history.

Testing

  • Cover grouped edits, Vim searches, direct draft changes, history limits, empty redo stacks, and custom or unbound shortcuts.

## What changed

- Add a bounded redo stack for complete composer drafts, including paste payloads and image attachments. `Ctrl+R` now reapplies the last undone edit in Vim normal mode, while new edits clear stale redo history.
- Add the configurable `vim_normal.redo` action to the keymap schema and picker. Preserve reverse prompt-history search in Vim insert mode and non-Vim mode, and honor explicitly configured bindings.
- Keep pending edit snapshots outside the shared undo/redo byte budget so canceled commands cannot evict committed history.

## Testing

- Cover grouped edits, Vim searches, direct draft changes, history limits, empty redo stacks, and custom or unbound shortcuts.

GitOrigin-RevId: 0cf5bb376ff865ddc0a77705dcb322ef6b57b3a3
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/0cf5bb376ff865ddc0a77705dcb322ef6b57b3a3 branch from 474d735 to b192442 Compare September 1, 2026 21:31
@copyberry
copyberry Bot merged commit b192442 into main Sep 1, 2026
23 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/0cf5bb376ff865ddc0a77705dcb322ef6b57b3a3 branch September 1, 2026 21:32
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants