#8673·omnigent

[Bug] Windows Git update fails on long paths and can leave uv installation unusable (verified recovery)

Author: Wado729Created Sep 30, 2026Updated Oct 1, 2026
LabelsBugP2-mediumtriagedcomp:tuivalidated:reproduced

Description

Updating an existing Git-based Omnigent install on native Windows failed first on long snapshot paths, then left the uv tool environment unusable after a second failure. The local installation was recovered successfully with the workaround below; this report does not claim an upstream fix.

Steps to reproduce / observed sequence

  1. Existing uv tool install tracking git+https://github.com/omnigent-ai/omnigent.git, running Omnigent 0.9.0.dev0 at 0b00c5302. Git's core.longpaths was unset.
  2. Run omni update. It detects target commit 112f3085446323e035423c83747a9734a3c272da and runs uv tool install --reinstall git+https://github.com/omnigent-ai/omnigent.git.
  3. Git checkout fails with numerous Filename too long errors under tests/e2e_ui/visual/snapshots/test_storybook_snapshot/test_story_matches_baseline/.
  4. Enable git config --global core.longpaths true and rerun omni update. Checkout succeeds, but replacing the tool environment fails:
Ignoring existing environment for `omnigent`: the requested Python interpreter does not match the environment interpreter
Resolved 91 packages in 2.07s
error: failed to remove directory `%APPDATA%\\\uv\tools\omnigent`: Access is denied. (os error 5)
Error: Upgrade command exited with status 2; your previous install is intact.
  1. The previous install was not intact: the tool directory contained only Scripts/ and uv-receipt.toml; pyvenv.cfg was gone. omni --version failed with:
No pyvenv.cfg file

A direct uv tool install --reinstall --python 3.12 git+https://github.com/omnigent-ai/omnigent.git also failed while querying the broken environment's Scripts\python.exe, with exit code 106 and the same missing-config message.

No Omnigent processes remained after the failed updater exited. A Windows lock on the updater's own running environment is a suspected cause of the removal failure, not independently proven.

Additional observation on the original version: omni update --dry-run actually executed the Git reinstall and hit the same long-path failure, rather than only printing a plan.

Expected behavior

The updater should identify the Windows Git long-path requirement, honor --dry-run for Git installs, and avoid leaving the tool environment unusable. It should not promise that the previous installation is intact when it has been partially removed.

Verified workaround / local resolution

With no Omnigent processes running, these commands recovered the installation:

powershell
git config --global core.longpaths true
uv tool uninstall omnigent
uv tool install --python 3.12 git+https://github.com/omnigent-ai/omnigent.git
omni --version
omni upgrade --check

The uninstall/reinstall replaced the uv tool environment; app data was not removed.

Verification:

omnigent 0.17.0.dev0 (112f3085, built 2026-09-30T21:05:52Z)
omnigent is up to date (git 112f30854, tracking git+https://github.com/omnigent-ai/omnigent.git).

The self-updater was not exercised again on the recovered 0.17.0.dev0 install.

Version

Failure: 0.9.0.dev0, commit 0b00c5302. Recovered: 0.17.0.dev0, commit 112f3085446323e035423c83747a9734a3c272da.

OS / environment

  • Windows 11 Pro, build 26200 (10.0.26200), native PowerShell 7.6.6
  • Python 3.12.12
  • uv 0.9.25 (38fcac0f3)
  • Git for Windows 2.52.0.windows.1
  • Install method: uv tool, Git source
  • Harness: not applicable; failure is in CLI updating

Related: #8155 also reports an update failure leaving an unusable tool environment, but its cause is concurrent macOS host auto-upgrades; this incident involved a single native Windows CLI update.