[Bug] Windows Git update fails on long paths and can leave uv installation unusable (verified recovery)
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
- Existing
uv toolinstall trackinggit+https://github.com/omnigent-ai/omnigent.git, running Omnigent0.9.0.dev0at0b00c5302. Git'score.longpathswas unset. - Run
omni update. It detects target commit112f3085446323e035423c83747a9734a3c272daand runsuv tool install --reinstall git+https://github.com/omnigent-ai/omnigent.git. - Git checkout fails with numerous
Filename too longerrors undertests/e2e_ui/visual/snapshots/test_storybook_snapshot/test_story_matches_baseline/. - Enable
git config --global core.longpaths trueand rerunomni 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.- The previous install was not intact: the tool directory contained only
Scripts/anduv-receipt.toml;pyvenv.cfgwas gone.omni --versionfailed with:
No pyvenv.cfg fileA 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:
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 --checkThe 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.
Source: omnigent-ai/omnigent