[Bug] Extension Fails with Spaces in Project Directory Path
Bug Report:
Bug Description
Claude Code VS Code extension hangs indefinitely ("Unravelling..." state) when the workspace directory path contains spaces. Extension works correctly only when all directory names in the path have no spaces.
Current Workaround
Opening Claude via VS Code's integrated terminal (claude command) works correctly regardless of spaces in directory path.
Expected Behavior
Extension should properly escape/quote directory paths with spaces, matching the behavior of the CLI.
Environment
- Platform: darwin (macOS)
- VS Code Extension Version: 2.0.0
- Claude Code CLI Version: 2.0.1
- Terminal: vscode
- Feedback ID: 20b18886-3527-4632-a325-0e758b93071e
Steps to Reproduce
- Open VS Code in a directory with spaces in the path (e.g.,
/Users/theo/My Projects/test) - Attempt to use Claude Code extension (Cmd+Shift+/)
- First query may work, but subsequent queries hang on "Unravelling..." indefinitely
- Extension becomes unresponsive
Error Log
[
{
"error": "AbortError: The operation was aborted.\n at unknown\n at abortChildProcess (node:child_process:859:42)\n at onAbortListener2 (node:child_process:35:24)\n at abort (unknown)\n at <anonymous> (/$bunfs/root/claude:3557:80)",
"timestamp": "2025-09-30T23:31:01.204Z"
}
]
Impact
Forces users to rely on integrated terminal instead of extension features, significantly reducing UX quality for projects with spaces in paths.
This issue has 11 comments on GitHub. Read the full discussion on GitHub ↗