[BUG] Claude desktop on Windows autorun incorrect registry entry
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?
Claude Desktop for Windows is writing incorrect data to the Windows registry, preventing it from autorunning at startup. It's creating invalid data in the following location: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run in the Claude entry, it's adding the following data: "\"C:\Users\John Doe\AppData\Local\AnthropicClaude\claude.exe\" --startup" Maybe because there's a space in the account name? If the error is not corrected, not only does Claude not autorun at startup, but worse, it prevents access to any App settings in ALL Windows App!
What Should Happen?
The correct data should be: "C:\Users\John Doe\AppData\Local\AnthropicClaude\claude.exe" --startup
Error Messages/Logs
Steps to Reproduce
On Windows, log in to an account that has spaces in the user name (it may still work without spaces in the user name), for example, John Doe. Enable the "Run on startup" option in File -> Settings -> General, if it's already enabled, disable it, then re-enable it, then restart Windows.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
Claude for Windows v1.3561.0 (fbc74b)
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗