[BUG] Claude Desktop fails to launch on Windows 10 — EBADF renameSync error on git-worktrees.json
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Environment
<img width="1568" height="533" alt="Image" src="https://github.com/user-attachments/assets/4f1c731e-8cfd-4153-b78c-1f509a11bacd" />
<img width="1568" height="505" alt="Image" src="https://github.com/user-attachments/assets/60cba3a9-f6f3-4fab-8daf-788ac07fa05a" />
<img width="1568" height="570" alt="Image" src="https://github.com/user-attachments/assets/8661428a-0758-420f-99a5-3cab9ff9dc73" />
<img width="1568" height="274" alt="Image" src="https://github.com/user-attachments/assets/b99d4973-0fc8-4ba9-997b-eb54e504d3b3" />
<img width="1387" height="868" alt="Image" src="https://github.com/user-attachments/assets/ac702601-ec2b-4a17-a4f0-3e70f47ab2e0" />
<img width="1098" height="635" alt="Image" src="https://github.com/user-attachments/assets/a1a0c7e7-2435-499c-93e2-99804d9d26b8" />
<img width="1105" height="440" alt="Image" src="https://github.com/user-attachments/assets/ceae1f33-e299-4f9f-a326-7312d8908d5d" />
<img width="695" height="213" alt="Image" src="https://github.com/user-attachments/assets/4f55c708-baf4-4b33-9fb3-23bd0c3212b7" />
- OS: Windows 10 Pro 64-bit, Build 19045.6466
- CPU: Intel Core i5-7200U @ 2.50GHz
- RAM: 8GB
- Claude Desktop version: Unknown (app crashes before UI appears)
- Installation method: MSIX (via ClaudeSetup.exe from claude.ai/download)
What's Wrong?
Claude Desktop crashes immediately on every launch. No window appears.
The error dialog shows: "Claude Desktop failed to launch. Please check for updates and try again."
Steps to Reproduce
- Install Claude Desktop via ClaudeSetup.exe
- Launch Claude Desktop
- Error dialog appears immediately, no UI shown
Error Log
Found at: C:\Users\DELL\AppData\Local\Packages\Claude_pzs8sxrjxfjjc\LocalCache\Roaming\Claude\logs\launch-failure.err
What Should Happen?
Claude Desktop should launch normally and display the main chat window.
Error Messages/Logs
Error: EBADF: bad file descriptor, rename
'~\AppData\Roaming\Claude\git-worktrees.json.tmp-6584506452127bdd'
-> '~\AppData\Roaming\Claude\git-worktrees.json'
errno: -4083, code: 'EBADF', syscall: 'rename'
Steps to Reproduce
Attempted Fixes (all failed)
- Multiple uninstall/reinstall cycles
- Cleared all residual files and MSIX packages via PowerShell
- Installed Windows App Runtime 1.6
- Enabled Hyper-V via PowerShell
- Pre-created git-worktrees.json with content [] at both AppData paths
- Ran installer as Administrator
- Deleted CoworkVMService registry entries
Additional Notes
- Event Viewer shows no Claude entries (crashes before writing logs)
- Cannot access Help → About (no UI appears)
- main.log is 0 bytes
- This appears identical to issue #40311
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
Never worked — this is a fresh installation on Windows 10
Claude Code Version
N/A — this is a Claude Desktop issue, not Claude Code
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
This issue is identical to #40311.
The app crashes before any UI appears.
main.log is 0 bytes.
Event Viewer shows no Claude entries.
Please see attached screenshots.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗