[BUG] Auto-opened URLs (e.g. /login) are wrapped in literal quotes on Windows, breaking Edge
Open 💬 0 comments Opened Jul 4, 2026 by mananpatel2491
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?
Description
When Claude Code automatically opens a URL in the default browser (e.g. running /login), the URL is passed to the OS open command still wrapped in literal double quotes: "$url". Microsoft Edge receives the quotes as part of the URL string and fails to load the page.
Environment
- OS: Windows 11 Enterprise 10.0.22631
- Shell: PowerShell
- Default browser: Microsoft Edge
- Claude Code version: 2.1.201 (Claude Code)
PS C:\Users\User1> claude --version
2.1.201 (Claude Code)
What Should Happen?
The default browser should open the bare URL with no surrounding characters. For example, running /login should open:
not:
"https://claude.ai/login?...
Error Messages/Logs
Steps to Reproduce
Steps to reproduce
- In Claude Code, run a command that auto-opens a browser link, e.g.
/login - Observe the URL Edge tries to load
Expected behavior
Browser opens the bare URL, no surrounding quotes.
Actual behavior
Edge address bar shows the URL wrapped in "...", and the page fails to load.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
2.1.201
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
PowerShell
Additional Information
_No response_