Skip to content

IDE-integrated diff / approval #2998

Open

Description

@yuan763161

What feature would you like to see?

Codex CLI already has a good approval flow: it can show red/green diffs in the terminal and ask the user to approve or reject changes. This works well, but currently it only happens in the terminal.

It would be great to also have this experience directly inside an IDE (e.g. VS Code or Cursor). For example:

Show the diff inline in the IDE’s editor

Let the user approve, approve for session, or reject from there

Then send the decision back so Codex can apply or skip the patch

This would feel much smoother, similar to how CloudCode shows changes inside the editor, instead of switching back to the terminal.

Are you interested in implementing this feature?

Yes — I’d be happy to help prototype an extension that connects Codex approvals into VS Code / Cursor.

Additional information

No response

Activity

  1. added
    enhancement
    on Aug 31, 2025
  2. kromacie commented on Sep 1, 2025

    @kromacie

    Sounds good. I would vote to see it also in a Jetbrains IDE as well

  3. added
    extension
    on Sep 1, 2025
  4. bhack commented on Sep 4, 2025

    @bhack
  5. azeek commented on Sep 5, 2025

    @azeek
    Image Image

    It would be great if Codex had a feature to attach the code from the currently viewed file or selected line when sending commands.

    This is already supported in Claude Code.

  6. eugene-kim commented on Sep 12, 2025

    @eugene-kim

    Yes, this would be very helpful. I'd like an integration between IDE and Codex CLI (not the VSCode extension) that includes:

    • Sending selected lines in the IDE to the CLI
    • Sharing diagnostics like type and lint errors from IDE to CLI
    • Diff viewing
  7. yathxyz commented on Sep 15, 2025

    @yathxyz

    Was going to submit an issue asking for this, specifically for IDE integration that is agnostic.

    A good example that I am aware of (and currently use) is https://github.com/stevemolitor/monet which sends diff proposals from Claude Code to an Emacs diff buffer through a websocket connection.

  8. theclunkerjunker commented on Sep 16, 2025

    @theclunkerjunker

    The CC VScode extension has a much better diff viewing experience. It allows you to view the full diff in VScode's diff viewer BEFORE the file is written to disk. Codex only shows a tiny little window with a proposed diff and there is not even a way to expand it to full screen. You have to let it write to disk to use git and/or VSCode diff viewer which is not ideal when you are trying to collaborate and approve each change rather than using full on autonomous mode.

  9. gpeal commented on Sep 18, 2025

    @gpeal
    Contributor

    @theclunkerjunker Have you tried clicking "View all changes". That will open a full editor pane with all of the diffs. We will also be iterating on this surface over time.

    Image

    For the folks who want the CLI <> IDE integration, what do you prefer about the CLI vs using the extension directly?

  10. swfunc commented on Sep 18, 2025

    @swfunc

    Have you tried clicking "View all changes". That will open a full editor pane with all of the diffs

    That's the view that we are looking for, but we'd like to be able to see it before accepting or rejecting the proposed changes. Right now the View all changes button to see the full editor diff is only visible after accepting the changes

    It's a much nicer experience to be able to see the diff in the full editor view when deciding if the changes should be accepted or rejected. Especially when there are a lot of proposed changes, it's a lot harder to read them in the small chat window. For me it's the number 1 missing feature from Codex compared to Claude Code

  11. theclunkerjunker commented on Sep 18, 2025

    @theclunkerjunker

    @gpeal @swfunc yes, exactly that. You cannot "view changes" until the files have been written to disk already.

    CC has this great workflow I use where it proposes a change, shows me a full diff in the VSCode native diff viewer (not yet written to disk), and allows me to either approve it or "Reject and tell Claude what to do instead". Claude also seems to retain the context of the rejected diff and incorporates it into feedback.

    I've yet to be able to replicate this workflow with Codex.

  12. swfunc commented on Sep 18, 2025

    @swfunc

    Reject and tell Claude what to do instead

    This one I'd also love to have in Codex

  13. eugene-kim commented on Sep 18, 2025

    @eugene-kim

    @theclunkerjunker Have you tried clicking "View all changes". That will open a full editor pane with all of the diffs. We will also be iterating on this surface over time.

    Image For the folks who want the CLI <> IDE integration, what do you prefer about the CLI vs using the extension directly?

    @gpeal I prefer being able to have Codex in a CLI so that it's in a dedicated screen. This allows me to have maximum real estate for code and my filetree in my main monitor. Viewing the Codex extension means I can't see my file tree. I also find the Codex extension hard to read. If I want to make its text bigger, that zooms everything in, which isn't ideal.

  14. shiroyasha commented on Sep 19, 2025

    @shiroyasha

    The current "View all changes" is a good start, but I find it hard to use in practice.

    As mentioned by @bhack the accept or discard edits API offers the best usability in vscode and derivates https://code.visualstudio.com/docs/copilot/chat/chat-agent-mode#_accept-or-discard-edits.

  15. 45 remaining items

  16. tranvu18051998-netizen commented on May 22, 2026

    @tranvu18051998-netizen

    Please add this feature to vs code extension

  17. dydzio0614 commented on May 22, 2026

    @dydzio0614

    I think people talk about different features here, all under one "issue"...

    Personally I want codex CLI being able to integrate with diffs from jetbrains IDE's, so kind of /ide command support for jetbrains.

    Jetbrains codex plugin doesn't suffice for people who want more than basic features (there is no /plan, no /goal, no /compact and more..., and will likely stay that way for foreseeing future).

  18. Nadelopo commented on May 23, 2026

    @Nadelopo

    Эта функция ещё не добавлена. Если Copilot теперь позволит обновлять подписку, я больше не буду пользоваться Codex.

    dude, copilot is way more expensive than codex now

  19. Florence233 commented on May 28, 2026

    @Florence233

    Good news for Zed users! It is now possible to use this feature with Zed Agent with a ChatGPT subscription.

    Read the blog: https://zed.dev/blog/chatgpt-subscription-in-zed
    Image

    It's still not triggering, even though I've already configured the GPT API key in configure.

    Image
  20. darkseid4nk commented on Jun 19, 2026

    @darkseid4nk

    This has been the default behavior in most IDEs, the fact openai has sat on this feature request for almost a year now is very saddening. With a lot of orgs moving toward enterprise accounts where we are to use the codex extension in our respective IDE and we lose the integrated diff really impacts workflow.

    This feature should have already been added to the codex extension.

  21. sleepo581 commented on Jun 21, 2026

    @sleepo581

    This is why many people prefer Claude Code over Codex!

  22. muslimdevhamid commented on Jun 27, 2026

    @muslimdevhamid

    +1 A accepting and rejecting and diff viewing system like cursor and copilot would be really great to have, atleast in the codex vscode extension

  23. mv-inda commented on Jul 1, 2026

    @mv-inda

    +1 big disadvantage

  24. ats05 commented on Jul 13, 2026

    @ats05

    Recent changes seem to have made it impossible to even see diffs of just a few lines. I can't even confirm what I need to approve. I have doubts about the direction Open AI is heading.

  25. hksbindra commented on Jul 20, 2026

    @hksbindra

    Honestly first time user of Codex. An hour in I was still setting up the workflow, I felt okay, it's going good, more polished than CC, but then on the very first edit on an actual file I felt oh no!
    Please guys this is a deal breaker for serious work.
    Think about the non vibe coders.

  26. ArmandFrvr commented on Jul 21, 2026

    @ArmandFrvr

    After evaluating Codex for a week, this is the # 1 thing that is going to keep me from switching off of copilot. Too much friction requiring us to open a second window vs seeing inline diffs/approval.

  27. Variann commented on Sep 8, 2026

    @Variann

    Codex is giving me massive "Designed for vibe coders" feeling because it's missing approval. It makes the ChatGPT app basically useless for me. I've started using Kilo Code in CLion instead and won't be coming back until there's a "Approve or discard" feature

  28. nsp121 commented on Nov 6, 2026

    @nsp121

    I'm trying to make Codex my primary coding agent instead of Claude Code, but the current edit-review and permissions UX is a blocker. I have three related requests:

    1. Show proposed edits in the actual IDE editor, before applying them. In VS Code, I want a proper, full-size, side-by-side Git-style diff of the proposed change in the source editor, with Accept / Reject controls (ideally for individual files and hunks). The small approval popup in the Codex sidebar is not a substitute, and neither is reviewing a diff after the changes have already been written. Claude Code's manual edit review is the experience I'm looking for.

    2. Make that exact editor-based review work from both the Codex sidebar and Codex CLI. If I launch codex in the VS Code terminal, an edit approval should still open the proposed diff in my VS Code editor and send my decision back to the CLI session. The sidebar and CLI shouldn't have different review capabilities. A terminal-only fallback is fine when no IDE is attached.

    3. Make permissions granular, legible, and easy to switch. Currently it's hard to understand the interplay between sandbox restrictions, approval policy, and the available modes. I'd like clearly defined, independent controls for reading repository files, reading/searching the internet, modifying project files, executing commands, and higher-risk actions (e.g. destructive commands or writes outside the repo). Show the effective permissions clearly, and allow presets/profiles with an obvious toggle.

    My ideal everyday workflow: Repository reading and ordinary internet research are allowed in both modes. A simple Auto / Manual editing toggle controls only code modifications: Auto applies edits autonomously; Manual pauses before each proposed edit and shows the IDE diff for my approval. Approval scope (once, file/hunk, or session) should be explicit. Switching edit modes shouldn't unexpectedly disable internet access or require me to decipher multiple permission layers.

    These are usability issues, not a request for more unrestricted power. I want Codex to be autonomous when I choose, and genuinely reviewable when I choose. I would happily switch more of my work to Codex if this were supported.

  29. balabommablock-cpu commented on Nov 7, 2026

    @balabommablock-cpu

    The thread (and @nsp121's recent write-up) is really three products under one title:

    Ask What users want Exists today?
    A. Review before apply Proposed edit opens as a full IDE diff with Accept / Reject (file + hunk), before the file changes Sidebar approve popup / post-write diff — not the same
    B. Same review from CLI in the IDE terminal codex in the VS Code terminal still opens that IDE diff and sends the decision back CLI and sidebar diverge
    C. Clear Auto / Manual editing One toggle for "apply edits alone" vs "pause before each edit"; sandbox / net stay independent Modes and permissions are hard to read together

    A small Desktop / VS Code extension v1 that would close most of this:

    1. Manual editing mode: every proposed file edit opens in the editor as a side-by-side diff with Accept / Reject (file, then hunk if easy). Nothing is written until Accept.
    2. Auto editing mode: today's apply-then-show behaviour, labelled clearly.
    3. One place to switch Auto ↔ Manual for the session, without touching network or sandbox.
    4. Leave JetBrains parity and full CLI↔IDE bridging (B) for a follow-up once (A)+(C) exist in the extension.

    That matches what people compare to Claude Code's manual review and Copilot's inline accept, without waiting on a full permissions redesign. If maintainers prefer hunk-level Accept in v1 vs file-only, saying so would unblock anyone drafting against this.

  30. nsp121 commented on Nov 7, 2026

    @nsp121

    Hi @gpeal,

    Firstly, thanks for taking an interest in this. I'd really like to see Codex continue improving, as I think it has enormous potential.

    I've realised that the CLI integration is probably less important than I originally suggested. The Codex extension can already be docked horizontally at the bottom of VS Code, which works quite nicely. I suspect some developers (myself included) are simply accustomed to terminal-based coding agents after using Claude Code.

    The two improvements I'd particularly love to see are:

    1. Native editor diffs with approval before applying edits. A proper side-by-side comparison in the VS Code editor, allowing users to accept or reject proposed changes individually.

    2. Clearer, more granular permissions. Ideally, a simple Auto/Manual editing toggle, with independent permissions for reading files, accessing the internet and executing commands.

    I think these would meaningfully improve Codex for a broad range of developers, particularly those who want to stay closely involved in reviewing their code.

    Are either of these improvements currently being considered or actively developed?

    Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementextension

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions