[BUG] VS Code Extension 2.0.75 crashes with JSON parse error when CLI outputs OTEL Resource Attributes debug info (macOS)

Resolved 💬 3 comments Opened Jan 3, 2026 by DaoFlow Closed Jan 3, 2026

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?

VS Code Extension crashes every ~30-60 seconds with JSON parse error. The extension attempts to parse CLI debug output as JSON and fails when encountering OTEL Resource Attributes formatting.
Root cause: The CLI outputs debug lines like === Resource Attributes === which the extension incorrectly tries to parse as JSON.

What Should Happen?

Extension should not parse debug output as JSON, or CLI should not output OTEL debug info to the stream that the extension parses.

Error Messages/Logs

2026-01-03T10:21:39.759Z [DEBUG] "\n=== Resource Attributes ==="
2026-01-03T10:21:39.759Z [DEBUG] {"host.arch":"arm64","os.type":"darwin","os.version":"24.6.0","service.name":"claude-code","service.version":"2.0.75"}
2026-01-03T10:21:39.759Z [DEBUG] "===========================\n"

[error] Error from Claude (on channel wpf0ioirvqm): SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)

Steps to Reproduce

Install Claude Code VS Code extension 2.0.75 on macOS
Open any project
Start using Claude Code normally
Wait ~30-60 seconds
Extension crashes with JSON parse error
Repeats indefinitely

Claude Model

Not sure / Multiple models

Is this a regression?

Yes, this worked in a previous version

Last Working Version

Unknown - was working 2 days ago (Jan 1, 2026)

Claude Code Version

VS Code Extension: 2.0.75 (bundled CLI: 2.0.74)/ Terminal CLI (npm): 2.0.76 - works perfectly

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

VS Code integrated terminal

Additional Information

  • Terminal Claude Code (npm, 2.0.76) works perfectly - only VS Code Extension is affected
  • Extension version: 2.0.75
  • Bundled CLI version: 2.0.74 (version mismatch, may be related)
  • Similar to #14442 but different error pattern (that's Windows with "Claude con"..., this is macOS with "=== Resource"...)

Attempted Fixes (all failed)

Clean reinstall of extension
Clearing all caches (~/.claude/debug/, settings)
Replacing bundled CLI (2.0.74) with npm CLI (2.0.75 and 2.0.76) - caused additional ripgrep ENOENT errors
Setting telemetryDisabled: true in config
Environment variable CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗