Inconsistent Claude Model Version Detection in Claude Code
Bug Description cant get claude code to use Claude 4 it wont update, I even followed the exact order when I ran the /doctor command to cd into the local Claude install file and manually update it which it says has no new packages updates so what am i doing wrong? I ask Claude what version he is and he reply's with sonnet 3.5 but notes tell him that Calude-Sonnet 3.7 is activated for Claude code but on cursor it tells me it is running Claude opus or Claude sonnet 4.0!
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 0.2.126
- Feedback ID: e603660c-3b59-4787-a59e-a7c1caf07bbd
Errors
[{"error":"Error: spawn ENOTDIR\n at ChildProcess.spawn (node:internal/child_process:420:11)\n at spawn (node:child_process:753:9)\n at execFile (node:child_process:346:17)\n at file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:644:3137\n at new Promise (<anonymous>)\n at PX (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:644:3115)\n at p0 (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:644:3041)\n at $v (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:644:4240)\n at Object.<anonymous> (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:644:4455)\n at Object.Q [as getRuntimes] (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:532:13335)","timestamp":"2025-05-24T15:53:35.790Z"},{"error":"AggregateError\n at vx.from (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:568:8164)\n at IY.o1 (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:571:10136)\n at IY.emit (node:events:518:28)\n at IY.emit (node:domain:489:12)\n at $L1.<computed> (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:82:7318)\n at ClientRequest.emit (node:events:530:35)\n at ClientRequest.emit (node:domain:489:12)\n at emitErrorEvent (node:_http_client:104:11)\n at TLSSocket.socketErrorListener (node:_http_client:518:5)\n at TLSSocket.emit (node:events:518:28)\n at pc.request (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:573:2081)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at listOnTimeout (node:internal/timers:555:9)\n at process.processTimers (node:internal/timers:529:7)\n at async fjA (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:574:10878)\n at async Lm9 (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:574:13596)\n at async nq (file:///home/jman/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:574:13800)","timestamp":"2025-05-24T15:53:37.282Z"}]
I've also noticed that my Anthropic Console logs indicate that claude code is not using Claude 4 Sonnet/Opus models, but rather a mix of Claude 3.7 Sonnet and Claude 3.5 Haiku. When I search all of the session history I don't see any Opus even though my claude code is explicitly configured to use only Opus now.
This issue has been inactive for 30 days. If the issue is still occurring, please comment to let us know. Otherwise, this issue will be automatically closed in 30 days for housekeeping purposes.