[Windows Desktop 26.1117] Idle Unity repo repeatedly cancels review-summary Git diffs; Git/LFS process buildup, process-scoped workaround verified

オープン
#63,463 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
12/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
git

調査の方向性

The payload names no source files or tests. The reproduction centres on a recurring git diff against the merge-base with origin/main, which spawns Git for Windows shell and git-lfs filter-process children, and the issue asks for coalescing and full process-tree cleanup on cancellation. Start from the desktop worker's review-summary Git invocation and its cancellation path, which the report does not locate. Done would mean that repeated cancellations leave no orphan Git or LFS processes and that in-flight Git operations are capped per repository. Expect this to need maintainer guidance.

索引モデルが issue の本文から書いたものです。

説明

app bug code-review performance windows-os

Summary

On Windows 11 x64, Codex Desktop 26.1117.4957.0 can launch repeated, overlapping background Git branch-review diffs in an idle large Unity repository using Git LFS. The process count grows dramatically, making Windows sluggish. The problem was isolated to opening/selecting the affected project in Desktop; a different project remained idle with zero Git children.

New evidence on 2026-11-23: A read-only review of desktop worker logs found 678 canceled Git operations across four desktop runs, all with requestKind=review-summary, source=review_model, subcommand=diff. One run had 493 cancellations in about 17 minutes. The repeated target SHA was verified to equal git merge-base HEAD origin/main; it was not found in saved workspace settings or configuration. The default remote branch was substantially behind the active development branch. A standalone, equivalent detailed Git diff completed successfully in ~5.3 seconds, suggesting overlapping refreshes/cancellation rather than a single stuck Git operation.

Environment

  • Windows 11 x64
  • Codex Desktop MS Store package: OpenAI.Codex 26.1117.4957.0 (no update available in Store on incident date)
  • Git for Windows 2.54.0.windows.1; Git LFS 3.7.1
  • Large Unity repository with FBX, animations, textures and other LFS-tracked assets
  • Current branch diverges from an older origin/main; branch comparison spans thousands of paths
  • Codex CLI 0.171.0 worked independently, using API authentication, without demonstrated desktop process accumulation

Reproduction / controlled observations

  1. Fully quit Codex Desktop and terminate remaining orphan Git/Git LFS workers once no legitimate Git jobs are active.
  2. Leave Codex Desktop closed for five minutes: zero Git/LFS processes throughout.
  3. Start Desktop and select the large Unity project: Git processes appear immediately and accumulate; prior captures reached roughly 87 git.exe, 85 git-lfs.exe, and 85 sh.exe simultaneously.
  4. Quit/reopen and switch promptly to an unrelated project: zero Git-related processes during a 60-second observation.
  5. The recurring Git command shape:
    git -c diff.autoRefreshIndex=false -c diff.mnemonicPrefix=false -c diff.noprefix=false -c core.quotePath=false -c safe.bareRepository=explicit -c core.hooksPath=NUL -c core.fsmonitor= diff --no-ext-diff --no-textconv --color=never --src-prefix=a/ --dst-prefix=b/ <merge-base-with-origin/main> --find-renames --raw --no-abbrev --numstat -z
    
    It invokes Git for Windows shell and git-lfs filter-process children.
  6. Clearing selected/saved workspace-root fields in backed-up Codex state did not solve the issue.

Workaround verified

The application's Git settings UI on this build does not show a 'Git-based review' toggle, despite related strings being present in shipped webview assets.

After fully exiting Desktop, a process-scoped launcher started the Store app executable with GIT_DIR=NUL supplied only to the launched process and descendants (no persistent environment or repo configuration changes). The affected Unity project and existing conversations were visible. A 60-second monitor sampled every 2 seconds and observed git=0, git-lfs=0, sh/bash=0 at all 30 samples. This strongly supports background Git integration as the trigger, but is only a workaround: Git-backed features may be unavailable and the root defect remains.

Expected behavior / suggestions

  • Coalesce/debounce equivalent review-summary and branch-review refreshes; cap in-flight Git operations per repository.
  • On cancellation, reliably terminate the full Git for Windows launcher/child process tree, including Git LFS filter processes.
  • Avoid reissuing costly unchanged comparisons against an old default-branch merge base.
  • Expose a supported, accessible way to disable background Git-based review without disabling unrelated Git features, with a way to inspect whether it is enabled.
  • Keep idle workspaces responsive regardless of size and ensure quitting Desktop leaves no orphan Git workers.

Privacy and scope

This report deliberately omits personal usernames, local filesystem paths, project/repository names, commit hashes, chat IDs, credentials and raw logs. The controlled tests did not establish the precise scheduler/cleanup bug or prove that every canceled diff left children alive.

Related existing issues

  • #59285 (idle Unity workspace triggers Git/LFS subprocesses; view-dependent)
  • #58486 (review-summary cancellation loop)
  • #58583 (canceled branch diffs and surviving child processes)
  • #54497 (extreme Git process fan-out/resource exhaustion)

This report adds the Nov 23 current-build reproduction, identification of the actual merge-base baseline, 678 labeled cancellations, absent UI toggle, and successful 30-sample GIT_DIR=NUL isolation test.

主要言語
Rust
スター
136k
フォーク
21.6k
平均マージ
1分
マージ済み PR(30日)
998

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openai/codex のほかの issue

openai/codex の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。