Skip to content

[Windows Desktop] Automatic turn-diff capture intermittently cancels fast Git commands with stale snapshot error #53874

Open

Description

@uyeldan

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

  1. Open an existing local Git repository in Codex Desktop and send a short chat message.
  2. The desktop automatically starts turn-diff-capture-start (source=turn_diff_analytics), with Git commands against a temporary index.
  3. Intermittently, the desktop cancels its own Git command (failureReason=canceled, aborted=true, exitCode=null, timedOut=false) and logs Git snapshot became stale.
  4. 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

I can provide a small sanitized log excerpt or run a focused diagnostic build if maintainers need more information.

Activity

  1. added
    bug
    app
    windows-os
    code-review
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugcode-reviewwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions