[BUG] Claude Code hangs indefinitely when additionalDirectories contains unreachable network path

Resolved 💬 4 comments Opened Mar 22, 2026 by DarkSetis Closed Jun 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?

Claude Code (both VSCode extension and CLI) hangs on startup when additionalDirectories in settings.json contains a network/UNC path pointing to a machine that is currently offline or unreachable. No error message is shown, the process just hangs indefinitely.

What Should Happen?

Claude Code should timeout after a few seconds and either skip the unreachable directory or show an error message, not hang forever.

Error Messages/Logs

Steps to Reproduce

  1. Add a network path to additionalDirectories in ~/.claude/settings.json:
{
  "permissions": {
    "additionalDirectories": [
      "\\\\192.168.0.233\\ShareName\\some\\path"
    ]
  }
}
  1. Make sure the remote machine (192.168.0.233) is powered off / unreachable
  2. Start Claude Code (VSCode or CLI)
  3. Claude Code hangs indefinitely - no UI, no error, no timeout

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

Windows 11 Pro 10.0.26100

Terminal/Shell

bash

Additional Information

_No response_

View original on GitHub ↗

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