Skip to content

Feature request: show Codex-generated diffs in Neovim and allow accept/reject #33

@ccarvalho-eng

Description

@ccarvalho-eng

Summary

It would be very useful if codex.nvim could show file diffs for Codex-generated changes directly inside Neovim, with an interactive accept/reject workflow.

Desired behavior

After Codex proposes or makes changes, the plugin should:

  • show a diff view for modified files inside Neovim
  • let me review changes before applying them
  • support accept/reject at least per file, ideally per hunk
  • make this work naturally with the existing Codex panel/buffer flow

Why

Right now, I can use Codex from Neovim, but there is no clear review UX for proposed edits. That makes it harder to trust and control changes without dropping back to manual git diff or external tooling.

Possible implementation ideas

  • integrate with Neovim's built-in diff mode
  • optionally integrate with plugins like diffview.nvim
  • expose commands such as:
    • :CodexDiff
    • :CodexAccept
    • :CodexReject

Notes

This seems related to plugin UX rather than Codex model capability itself. The CLI can already apply changes, but the Neovim plugin would benefit from a first-class review flow.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions