What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.212.1823 (661)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
Codex Desktop diff viewer appears to show stale/incorrect diff content after code changes. The displayed diff and line mapping in the viewer do not match the actual file state in the repository (e.g., unchanged/old hunks shown, wrong line highlights, or mismatched context). This makes it hard to trust the review view, and causes confusion when adding or checking comments.
What steps can reproduce the bug?
- Open repo: /Users/peterryszkiewicz/Repos/opencode-cloud-codex
- Check out commit:
833190f59d983109aa67377cf4d2a8e5b64f7d37
- Repro the local Diff-view mismatch while inspecting the file at:
/Users/peterryszkiewicz/Repos/opencode-cloud-codex/justfile
Specifically compare the pre-commit target before/after this delta:
- pre-commit: check-opencode-submodule-published sync-opencode-sdk fmt lint build test-all-fast e2e
+ pre-commit: check-opencode-submodule-published sync-opencode-sdk fmt lint build test-all-fast
+ PLAYWRIGHT_WORKERS="${PLAYWRIGHT_WORKERS:-1}" OPENCODE_E2E_CLEAN_SESSION_STATE="${OPENCODE_E2E_CLEAN_SESSION_STATE:-0}" just e2e
- Run "cd /Users/peterryszkiewicz/Repos/opencode-cloud-codex && just pre-commit"
- In Codex Desktop, open the diff view for justfile and confirm whether the rendered diff is stale or incorrect versus actual file content (git diff, file contents).
- Edit another part of justfile again and reopen the diff to verify repeated stale-hunk behavior.
What is the expected behavior?
The diff viewer should always reflect the current file state from the opened checkout and update reliably after each edit/reload. Diff hunks and line numbers should match the actual content, with no stale or incorrect file snapshots.
Additional information
App behavior observed in: Codex Desktop
OS: macOS
Repository: /Users/peterryszkiewicz/Repos/opencode-cloud-codex
Repro commit: 833190f59d983109aa67377cf4d2a8e5b64f7d37
Includes submodule changes in working tree (packages/opencode submodule modified)
Repro frequency: consistent
What version of the Codex App are you using (From “About Codex” dialog)?
Version 26.212.1823 (661)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
Codex Desktop diff viewer appears to show stale/incorrect diff content after code changes. The displayed diff and line mapping in the viewer do not match the actual file state in the repository (e.g., unchanged/old hunks shown, wrong line highlights, or mismatched context). This makes it hard to trust the review view, and causes confusion when adding or checking comments.
What steps can reproduce the bug?
833190f59d983109aa67377cf4d2a8e5b64f7d37
/Users/peterryszkiewicz/Repos/opencode-cloud-codex/justfile
Specifically compare the pre-commit target before/after this delta:
What is the expected behavior?
The diff viewer should always reflect the current file state from the opened checkout and update reliably after each edit/reload. Diff hunks and line numbers should match the actual content, with no stale or incorrect file snapshots.
Additional information
App behavior observed in: Codex Desktop
OS: macOS
Repository: /Users/peterryszkiewicz/Repos/opencode-cloud-codex
Repro commit: 833190f59d983109aa67377cf4d2a8e5b64f7d37
Includes submodule changes in working tree (packages/opencode submodule modified)
Repro frequency: consistent