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

Abierto
#63,463 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
12/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
git

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
136k
Forks
21.6k
Merge medio
1 min
PR fusionados (30 d)
998

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de openai/codex

Todos los issues de openai/codex

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.