[BUG] Windows 11: VSCode extension + CLI both die silently ~67ms after "Git remote URL: null" - "Query closed before response received"

Resolved 💬 5 comments Opened Apr 16, 2026 by creationjeux Closed Jun 30, 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?

Bug Description

On Windows 11, both the VSCode extension (Claude Code for VS Code) and the standalone CLI (claude) die silently about 60-90ms after the log line Git remote URL: null / No git remote URL found. The error shown in the VSCode extension is Query closed before response received. The CLI just returns to the prompt with no output at all (exit code 0).

This started happening suddenly on 2026-04-16 between 07:30 and 07:42 AM. Claude Code was working perfectly before 07:30 AM.

Environment

  • OS: Windows 11 (fresh install, 2 weeks old)
  • Claude Code CLI version: 2.1.111 (also tested 2.1.108, 2.1.112 - all fail)
  • VSCode extension version: 2.1.112 (latest)
  • Node.js: v24.14.1 (later upgraded to LTS, same result)
  • Git: 2.53.0 installed at C:\Program Files\Git\bin\bash.exe (detected correctly in logs)
  • Shell tested: PowerShell, CMD, Git Bash (winpty claude) — all fail identically

Reproduction

  1. Open PowerShell (or VSCode, or Git Bash)
  2. Type claude
  3. Process starts, creates debug logs, then dies silently
  4. claude --version works and returns 2.1.111 (Claude Code)
  5. claude --help works
  6. claude -p "hello" returns nothing (exit code 0)
  7. VSCode extension shows error toast: "Error: Query closed before response received"

Expected Behavior

Interactive TUI should launch, or authentication flow should start.

Actual Behavior

Process spawns, writes debug logs showing correct initialization (MDM settings, CA certs, mTLS, bash path), then dies at exactly the same point every time — about 60-90ms after "Git remote URL: null".

Debug Log Excerpt (last ~20 lines before crash)

What Should Happen?

should connect

Error Messages/Logs

[DEBUG] MDM settings load completed in 16ms
[DEBUG] Broken symlink or missing file encountered for settings.json at path: C:\Users\Creat.claude\settings.local.json
[DEBUG] Broken symlink or missing file encountered for settings.json at path: C:\Program Files\ClaudeCode\managed-settings.json
[DEBUG] CA certs: Config fallback - globalEnv keys: , settingsEnv keys: none
[DEBUG] [init] configureGlobalMTLS starting
[DEBUG] [init] configureGlobalMTLS complete
[DEBUG] [init] configureGlobalAgents starting
[DEBUG] CA certs: stores=bundled,system, extraCertsPath=undefined
[DEBUG] CA certs: Loaded 145 bundled root certificates
[DEBUG] CA certs: system store returned empty
[DEBUG] mTLS: Creating HTTPS agent with custom certificates
[DEBUG] [init] configureGlobalAgents complete
[DEBUG] Using bash path: "C:\Program Files\Git\bin\bash.exe"
[DEBUG] Error log sink initialized
[DEBUG] Applying permission update: Adding 90 allow rule(s) to destination 'userSettings': [...]
[DEBUG] Applying permission update: Adding 90 allow rule(s) to destination 'projectSettings': [...]
[DEBUG] Git remote URL: null
[DEBUG] No git remote URL found
<process dies silently here, ~67ms after the last log line>
Extension log then shows:
[error] Error spawning Claude (on channel XXXX): Error: Query closed before response received
[error] Failed to load config cache: Error: Query closed before response received
[error] Error processing client request: Error: Query closed before response received
## What Triggered It (Timeline)

- **Before 07:30 AM**: Claude Code working normally, had been working for 2 weeks on this fresh Windows 11 install
- **07:42 AM**: Installed Tailscale (for Raspberry Pi remote control setup)
- **Shortly after**: Claude Code starts failing with "Query closed before response received"
- **Later**: Uninstalled Tailscale, but problem persists

## What I Already Tried (None Fixed It)

- [x] Uninstalled Tailscale via Add/Remove Programs
- [x] `netsh winsock reset`, `netsh int ip reset`, `ipconfig /flushdns`, `ipconfig /release/renew`
- [x] Checked for residual Tailscale drivers with `pnputil /enum-drivers` — none found
- [x] Removed residual native binary at `C:\Users\Creat\.local\bin\claude.exe`
- [x] `npm uninstall -g @anthropic-ai/claude-code` then reinstalled
- [x] Downgraded to 2.1.108, then back to 2.1.111, then 2.1.112 — all fail identically
- [x] Cleared `~/.claude/ide/*.lock` and `~/.claude/debug/`
- [x] Copied `.credentials` file from old Windows 10 install on D: drive
- [x] Tested with Git installed AND bash in PATH (confirmed via `where.exe bash`)
- [x] Disabled Windows Defender real-time protection — no change
- [x] `sfc /scannow` — no integrity violations found
- [x] Tested on mobile hotspot (completely different network) — same failure
- [x] Windows System Restore to pre-Tailscale restore point (7:42 AM snapshot) — no change
- [x] Multiple Windows restarts
- [x] Confirmed environment variables are clean (USERPROFILE, APPDATA, HOME all correct)
- [x] Confirmed network TLS connectivity to api.anthropic.com works (`Test-NetConnection` returns True)

## Critical Observation

**Same Claude Code version, same account, same Wi-Fi network, works perfectly on my work laptop (also Windows 11).** The issue is specific to this desktop machine.

## Ask

What runs immediately after `Git remote URL: null / No git remote URL found` in the init sequence? That's where the process consistently dies. I suspect something there fails silently on my machine but I have no way to see the actual error.

Any debug flag to get more verbose logging past that point would help enormously.

Full debug log file available on request (21KB, contains all 90 permission rules + init sequence).

## System Info

- CPU: [à compléter — tape `Get-CimInstance Win32_Processor | Select Name` dans PowerShell]
- RAM: [à compléter — clic droit sur le menu Démarrer → Système]
- Antivirus: Windows Defender only (no third-party)
- No VPN, no corporate policies (home machine)

Steps to Reproduce

  1. Open any shell on Windows 11 (tested in PowerShell, CMD, Git Bash, and winpty claude — all fail identically)
  1. Type claude and press Enter
  1. Expected: Interactive TUI launches, or authentication flow starts
  1. Actual: Process spawns, writes full debug logs to ~/.claude/debug/*.txt, then dies silently after ~60-90ms. No stdout, no stderr, no error message. Exit code 0.
  1. Confirm process started but exited: claude -p "hello"; echo "Exit code: $LASTEXITCODE" returns Exit code: 0 with no output
  1. claude --version works and returns 2.1.111 (Claude Code)
  1. claude --help works and displays help text
  1. In VSCode extension, same failure manifests as error toast: "Error: Query closed before response received"
  1. Debug log shows initialization completes successfully up to the line [DEBUG] No git remote URL found, then process dies silently. See attached debug log file for full trace.

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.112

Platform

Anthropic API

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

CPU : Intel Core i7-8700 @ 3.20GHz (6 cores/12 threads, Coffee Lake, 2017)
RAM : 24 GB

View original on GitHub ↗

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