Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,15 @@ class ClaudeChatProvider {
} else {
// Use native claude command
console.log('Using native Claude command');
claudeProcess = cp.spawn('claude', args, {
// On Windows with shell:true, we need to properly quote arguments with spaces
const quotedArgs = args.map(arg => {
// Quote arguments that contain spaces
if (arg.includes(' ') && !arg.startsWith('"')) {
return `"${arg}"`;
}
return arg;
});
claudeProcess = cp.spawn('claude', quotedArgs, {
shell: process.platform === 'win32',
cwd: cwd,
stdio: ['pipe', 'pipe', 'pipe'],
Expand Down