claude-code - 💡(How to fix) Fix [BUG] Windows 11: VSCode extension + CLI both die silently ~67ms after "Git remote URL: null" - "Query closed before response received" [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#49522Fetched 2026-04-17 08:38:44
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×5commented ×2

Error Message

[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)

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

Code Example

[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)
RAW_BUFFERClick to expand / collapse

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?

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)

  2. Type claude and press Enter

  3. Expected: Interactive TUI launches, or authentication flow starts

  4. 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.

  5. Confirm process started but exited: claude -p "hello"; echo "Exit code: $LASTEXITCODE" returns Exit code: 0 with no output

  6. claude --version works and returns 2.1.111 (Claude Code)

  7. claude --help works and displays help text

  8. In VSCode extension, same failure manifests as error toast: "Error: Query closed before response received"

  9. 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

extent analysis

TL;DR

The issue is likely related to a silent failure in the Claude Code initialization sequence after detecting no Git remote URL, and using a debug flag to increase logging verbosity may help identify the root cause.

Guidance

  1. Increase logging verbosity: Look for a debug flag or environment variable that can increase the logging level of Claude Code to get more detailed output after the [DEBUG] No git remote URL found line.
  2. Inspect Git configuration: Verify that the Git configuration on the affected machine is correct and similar to the working laptop, paying attention to any differences in Git version, configuration files, or environment variables.
  3. Check for conflicts with other tools: Although Tailscale was uninstalled, ensure there are no residual components or configuration changes that could interfere with Claude Code's operation, especially considering the sudden onset of the issue after Tailscale's installation.
  4. Compare system and environment differences: Systematically compare the working laptop and the affected desktop for any differences in software versions, environment variables, and system settings that could contribute to the issue.

Example

No specific code snippet is applicable in this case, as the issue seems related to the interaction between Claude Code and the system environment rather than a code-level problem.

Notes

The fact that the same version of Claude Code works on another Windows 11 machine suggests the issue is specific to the environment or configuration of the affected machine. The sudden onset after installing and then uninstalling Tailscale hints at a potential environmental or configuration change causing the problem.

Recommendation

Apply a workaround by increasing the logging verbosity of Claude Code to gather more information about what happens immediately after the [DEBUG] No git remote URL found line, which may require searching through documentation or reaching out to the developers for specific flags or settings.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Windows 11: VSCode extension + CLI both die silently ~67ms after "Git remote URL: null" - "Query closed before response received" [2 comments, 2 participants]