Repository navigation
Description
Summary
Codex Desktop for Windows intermittently cancels its own automatic Git review/turn-diff snapshot and logs Git snapshot became stale. This occurs when a user sends a normal chat message, without asking for a Git operation. After staging the previously untracked files, the affected Git commands are fast when run independently, but the desktop still cancels them in some turns.
Environment
- Windows desktop app MSIX:
OpenAI.Codex_26.1007.2314.0_x64 - Git:
2.53.0.windows.3(bundled runtime Git) - Local, valid Git repository on an
E:drive - Private workspace path, account name and repository identity intentionally omitted
Steps and observations
- Open an existing local Git repository in Codex Desktop and send a short chat message.
- The desktop automatically starts
turn-diff-capture-start(source=turn_diff_analytics), with Git commands against a temporary index. - Intermittently, the desktop cancels its own Git command (
failureReason=canceled,aborted=true,exitCode=null,timedOut=false) and logsGit snapshot became stale. - Restarting the desktop did not prevent recurrence. Staging approximately 1,893 previously untracked files reduced an independent snapshot probe from ~50 seconds to <1 second, but the desktop still produced the error after staging. A test of
git-review-mode = "last-turn-only"followed by a restart did not prevent it either; that setting was reverted.
Redacted log examples:
2026-10-14T02:02:15.443Z [git] write-tree
requestKind=turn-diff-capture-start source=turn_diff_analytics
durationMs=527 aborted=true failureReason=canceled
exitCode=null timedOut=false success=false
2026-10-14T02:02:16.245Z Failed to start turn diff analytics capture
errorMessage="Git snapshot became stale"
2026-10-14T05:23:33.588Z [git] add
requestKind=turn-diff-capture-start source=turn_diff_analytics
durationMs=0 aborted=true failureReason=canceled
exitCode=null timedOut=false success=false
2026-10-14T05:23:33.598Z Failed to start turn diff analytics capture
errorMessage="Git snapshot became stale"
The equivalent local temporary-index probe succeeded: git add -u took ~0.06 s, git write-tree ~0.05 s, and the whole probe ~0.36 s; the real Git index was unchanged. git status, connectivity check and remote fetch/push also worked. Some desktop captures succeeded, so the failure is intermittent. The exact invalidation trigger is not yet established.
Expected behavior
Routine turns should not produce an error from automatic Git change capture. If a snapshot becomes obsolete, the app should cancel/retry it quietly without presenting it as a user-facing Git failure, while preserving normal review behavior.
Related reports
- [Windows] Canceled turn-diff captures leave over 774 GiB of tmp_pack_* files in the repository #50920 describes canceled turn-diff captures on Windows, with a separate large temporary-pack accumulation effect.
- Codex Desktop on Windows eagerly runs review-summary Git snapshots on restored workspaces, causing CPU/IO spikes #30820 describes eager review snapshot work and resource spikes.
I can provide a small sanitized log excerpt or run a focused diagnostic build if maintainers need more information.
Activity