Codex Diff Says "Oops"? Review Changes Safely

Codex Diff Says "Oops"? Review Changes Safely

Aident AI

Two fractured color planes sit above one continuous cyan layer, showing that code changes survive a broken viewer.

Codex Diff Says "Oops"? Review Changes Safely

If the Codex IDE extension Diff or full Review tab in VS Code shows "Oops, an error has occurred" and then "No diff available", do not reset your repository or delete extension state. First verify the changes with Git, then review them through the inline Codex card or VS Code Source Control. Current reports show that the full editor-diff-page can crash while the underlying files, inline diff, native VS Code diff, and git diff remain healthy.

As of July 27, 2026, the main OpenAI report is still open. The safest recovery is therefore a trustworthy review path, not an unverified repair to the extension bundle.

Prerequisites

Before troubleshooting:

  • save any open editor buffers;

  • open the repository folder that Codex edited;

  • use a terminal in that repository;

  • record your VS Code and Codex extension versions;

  • keep the Codex conversation open if its inline Review changes card still works.

This guide applies when Codex made file changes but its full Review page fails. It does not apply when Git itself cannot find a repository, the files were never written, or the entire Codex sidebar is unavailable.

If files may actually be missing rather than hidden by the viewer, preserve the repository first and follow the recovery boundaries in How to Prevent Codex from Deleting Files.

Step 1: Prove the Repository and Changes Still Exist

Run:

git rev-parse --show-toplevel
git status --short
git diff --stat

Expected result:

  • git rev-parse prints the repository root;

  • git status --short lists modified, staged, or untracked files;

  • git diff --stat summarizes unstaged changes to tracked files.

If git status --short is empty, the Review page may be correct: there may be no working-tree change left to show. Check the current commit and recent history before assuming the viewer lost work:

git log -3 --oneline

Do not run git reset --hard, git clean, or delete the repository to make the viewer refresh. Those commands can destroy the evidence you are trying to review.

Step 2: Inventory Unstaged, Staged, and Untracked Work

One command does not show every kind of change. Run all three:

git diff --
git diff --cached --
git ls-files --others --exclude-standard

Expected result:

  • git diff -- shows tracked changes not yet staged;

  • git diff --cached -- shows changes already staged;

  • git ls-files --others --exclude-standard lists untracked files.

An untracked file does not appear in a normal git diff, so an empty diff alone does not prove that Codex created nothing.

For a large change, start with filenames and status:

git diff --name-status
git diff --cached --name-status

Then review one path at a time:

git diff -- path/to/file
git diff --cached -- path/to/file

Step 3: Use the Inline Codex Diff

Return to the Codex conversation and open its inline Review changes card instead of the full editor tab.

Expected result: the inline renderer shows the changed files even though the full Review page still displays the error boundary. OpenAI issue #35362 reproduced exactly this split: inline review worked while the standalone full page crashed.

If the inline card also fails, continue with VS Code's native Source Control view.

Step 4: Review Through VS Code Source Control

Open Source Control:

  • macOS: Control+Shift+G;

  • Windows or Linux: Ctrl+Shift+G;

  • or select the Source Control icon in the Activity Bar.

Select each file under Changes or Staged Changes. VS Code opens its native side-by-side or inline diff against the committed version.

Expected result: each tracked change opens in the native diff editor. Untracked files appear as new files and should be reviewed directly.

Git remains the source of truth for the working tree, and VS Code's Source Control view uses the same repository state as the command line. A crash in the Codex webview does not erase that state.

Step 5: Try the Non-Destructive Refresh Once

After preserving and reviewing the changes:

  1. Open the Command Palette.

  2. Run Developer: Reload Window.

  3. Check the Codex extension for an update.

  4. Reopen the same conversation and full Review page.

If the full Review page still fails, stop repeating reloads or reinstallations. Reports on extension builds 26.721.30844 and 26.721.41059 show that reloads, restarts, and reinstalls often leave this route-specific failure unchanged.

The OpenAI issues identify a recurring exception:

Thread context is unavailable for non-thread routes
editor-diff-page error boundary

That points to the standalone viewer, not to a corrupt Git working tree.

Step 6: Decide Whether to Roll Back the Extension

Most users can keep working with the inline, native VS Code, and Git review paths. That avoids pinning an older extension.

If the full Codex Review page is essential:

  1. Open the Codex extension page in VS Code.

  2. Select the extension gear menu.

  3. Choose Install Another Version.

  4. If available, install 26.715.61943.

  5. Temporarily disable automatic updates for that extension.

  6. Reload VS Code and open the full Review page again.

A July 26 issue comment reported that version as working, with 8 visible reactions. Treat it as a user-reported workaround, not an OpenAI guarantee. Re-enable updates and move to a current build after the matching OpenAI issue confirms a fix. Do not edit minified files inside the installed extension: one diagnostic patch isolated the problem, but extension updates overwrite it and the patch is not a supported repair.

When to Stop Using the Workaround

Retest after the matching OpenAI issue reports a fix or VS Code offers a newer Codex extension build. Re-enable automatic updates, install the current version, and open a full Review page in two small repositories.

The workaround is no longer needed when the full Review page renders twice, the inline and native diffs agree with Git, and the developer console no longer records the route-context error. Update this guide if OpenAI publishes a fixed version or an official recovery procedure.

Step 7: Collect Evidence That Helps the Fix

If the failure persists, capture:

  • VS Code version;

  • Codex extension version;

  • operating system and architecture;

  • local, WSL, container, or Remote-SSH environment;

  • whether inline Codex review works;

  • whether native Source Control and git diff work;

  • the first relevant stack line from Developer: Open Webview Developer Tools;

  • a minimal repository reproduction with no secrets.

Search the open issues before filing another duplicate. Add a reaction to the matching report and comment only when you have new environment details, a new reproduction, or a verified version outcome.

Common Failure Modes

What you see

What it means

Safe next step

git status --short lists changes, but full Review crashes

The viewer is failing while the working tree remains intact

Use inline review, Source Control, or Git

git diff is empty, but git status shows ?? files

The files are untracked

Open them directly or use git diff --no-index when useful

git diff --cached has output

The changes are staged

Review the staged diff before committing

Inline review works, full Review fails

The standalone editor-diff-page route is isolated

Keep working through the inline card

Native VS Code diff also fails

The problem is broader than the Codex viewer

Check VS Code Git output and repository health

An older extension restores full Review

The current build likely contains the regression

Pin briefly, then retest a confirmed fixed build

A reinstall changes nothing

The failure is not caused by a damaged install

Stop reinstalling and attach reproducible evidence

Why This Recovery Is Trustworthy

Codex writes changes to the repository. Git records the difference between the working tree, index, and commits independently of the Codex Review webview. The inline card and VS Code Source Control are separate rendering paths over the same files.

That separation explains the current reports: the full page can reach a route-context exception while git diff, native Source Control, and sometimes the inline Codex renderer continue to work. Reviewing through those paths preserves the same change evidence without mutating or resetting it.

Verify One External Action After Recovery

Once you have reviewed the repository safely, use a bounded read-only task to confirm Codex can still inspect external evidence. In Codex, paste:

Follow https://aident.ai/SETUP.md

Then ask:

Check my Aident Loadout account and Vault status.
Find one connected read-only GitHub Action that searches issues.
Inspect its current schema, search openai/codex for editor-diff-page, and stop.
Do not edit files or ask me to paste a provider key

Expected result: Codex inspects one live Action schema, returns current matching issues, makes no repository change, and requires no copied provider credential.

Use Aident Loadout to verify one read-only Action. Measure success as one schema-inspected result, zero pasted secrets, and zero local file changes.

Sources

Home

Home

Home

Integrations

Integrations

Integrations

Vault

Vault

Vault

Audit

Audit

Audit

Arana Grande

Arana Grande

Arana Grande

Free

Free

Free

30-day audit summary

30-day audit summary

30-day audit summary

Daily action-call volume and the latest receipts from the Loadout audit trail.

Daily action-call volume and the latest receipts from the Loadout audit trail.

Daily action-call volume and the latest receipts from the Loadout audit trail.

View Audit

View Audit

View Audit

Loadout usage

Loadout usage

Loadout usage

617 action calls in the last 30 days

617 action calls in the last 30 days

617 action calls in the last 30 days

May 19 - Jun 17

May 19 - Jun 17

May 19 - Jun 17

10 active days

10 active days

10 active days

Less

Less

Less

More

More

More

Recent activity

Recent activity

Recent activity

Latest action-call receipts from connected agents

Latest action-call receipts from connected agents

Latest action-call receipts from connected agents

Apr 23, 09:23 AM

Apr 23, 09:23 AM

Apr 23, 09:23 AM

Shopify

Shopify

Shopify

Creates Or Updates An Asset For A Theme

Creates Or Updates An Asset For A Theme

Creates Or Updates An Asset For A Theme

Success

Success

Success

Apr 23, 09:21 AM

Apr 23, 09:21 AM

Apr 23, 09:21 AM

Shopify

Shopify

Shopify

Update Products Param Product Id

Update Products Param Product Id

Update Products Param Product Id

Success

Success

Success

Apr 23, 08:53 AM

Apr 23, 08:53 AM

Apr 23, 08:53 AM

Shopify

Shopify

Shopify

Update Products Param Product Id

Update Products Param Product Id

Update Products Param Product Id

Failed

Failed

Failed

Apr 22, 22:13 PM

Apr 22, 22:13 PM

Apr 22, 22:13 PM

Shopify

Shopify

Shopify

Create Product Image

Create Product Image

Create Product Image

Success

Success

Success

Apr 22, 22:12 PM

Apr 22, 22:12 PM

Apr 22, 22:12 PM

Shopify

Shopify

Shopify

Create Product Image

Create Product Image

Create Product Image

Success

Success

Success

Connected integration coverage

Connected integration coverage

Connected integration coverage

162

162

162

of 753 accessible connected

of 753 accessible connected

of 753 accessible connected

Callable actions

Callable actions

Callable actions

1,126

1,126

1,126

Vault credentials

Vault credentials

Vault credentials

8

8

8

Explore what's possible

Explore what's possible

Explore what's possible

See all Integrations

See all Integrations

See all Integrations

Google Ads

Google Ads

Google Ads

All available Goolge Ads tools via...

All available Goolge Ads tools via...

All available Goolge Ads tools via...

X (twitter)

X (twitter)

X (twitter)

All available X tools via...

All available X tools via...

All available X tools via...

Github

Github

Github

All available Github tools via...

All available Github tools via...

All available Github tools via...

Notion

Notion

Notion

All available Notion tools via...

All available Notion tools via...

All available Notion tools via...

Slack

Slack

Slack

All available Slack tools via...

All available Slack tools via...

All available Slack tools via...

Firecrawl

Firecrawl

Firecrawl

All available Firecrawl tools via...

All available Firecrawl tools via...

All available Firecrawl tools via...

753 integrations are available for loadouts.

753 integrations are available for loadouts.

753 integrations are available for loadouts.

Plug your entire stack into your AI agents.

Plug your entire stack into your AI agents.

Plug your entire stack into your AI agents.

Skip the integration headache. Plug 750+ tools into Claude Code, Codex, and OpenClaw in one go, and let your agents execute today.

Skip the integration headache. Plug 750+ tools into Claude Code, Codex, and OpenClaw in one go, and let your agents execute today.