Skip to content

[BUG] Claude Code - Persistent JSON Parse Error on Windows (versions 2.0.62-2.0.73) #14442

Description

@DenisTEMPE

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code fails to start on Windows 11 VS Code with a persistent JSON parse error across all tested versions (2.0.62, 2.0.70, 2.0.73). The extension successfully authenticates via OAuth but crashes immediately when attempting to spawn the Claude process with the error: SyntaxError: Unexpected token 'C', "Claude con"... is not valid JSON

What Should Happen?

After OAuth authentication, Claude Code should successfully start and respond to user prompts without JSON parsing errors.

Error Messages/Logs

Authentication succeeds:
2025-12-18 10:06:43.201 [info] Login successful
2025-12-18 10:06:43.201 [info] OAuth tokens found in secure storage
2025-12-18 10:06:43.201 [info] Auth status: method=claudeai

Error Messages/Logs:
2025-12-18 10:13:07.032 [info] From claude: Spawning Claude Code native binary: c:\Users\dtempe\.vscode\extensions\anthropic.claude-code-2.0.62-win32-x64\resources\native-binary\claude.exe --output-format stream-json --verbose --input-format stream-json --max-thinking-tokens 0 --model default --permission-prompt-tool stdio --mcp-config {"mcpServers":{"claude-vscode":{"type":"sdk","name":"claude-vscode"}}} --setting-sources user,project,local --permission-mode plan --include-partial-messages --debug --debug-to-stderr --enable-auth-status
2025-12-18 10:13:07.972 [info] Closing Claude on channel: nmzlg0ox8n
2025-12-18 10:13:07.972 [error] Error from Claude (on channel nmzlg0ox8n): SyntaxError: Unexpected token 'C', "Claude con"... is not valid JSON

Steps to Reproduce

  1. Install Claude Code extension in VS Code on Windows 11
  2. Authenticate via OAuth with Claude.ai account (authentication succeeds)
  3. Open Claude Code panel and attempt to send any message (e.g., "hello")
  4. Error appears immediately: SyntaxError: Unexpected token 'C', "Claude con"... is not valid JSON

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.0.73

Platform

Other

Operating System

Windows

Terminal/Shell

VS Code integrated terminal

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:corearea:ideautocloseIssue will be closed automaticallybugSomething isn't workinghas reproHas detailed reproduction stepsplatform:windowsIssue specifically occurs on Windows

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions