[BUG] Full crash on UNC path - pathToFileURL throws Empty UNC servername

Resolved 💬 3 comments Opened May 7, 2026 by ForeverTools Closed Jun 4, 2026

Description

Claude Code crashes entirely when encountering a UNC network path. Not a warning or permission issue — the process terminates.

Error

ERROR  The argument 'path' Empty UNC servername. Received '\\192.168.1.93\tmp\comp_form_submit.png'

node:internal/url:1652:13
- pathToFileURL (node:internal/url:1652:13)
- Q0 (cli.js:1851:2506)
- W$ (cli.js:527:20995)
- z2 (cli.js:527:39534)
- Ms (cli.js:527:50224)
- NS6 (cli.js:527:86896)
- nZ (cli.js:527:85858)
- VS6 (cli.js:527:85681)
- fJ6 (cli.js:527:82426)

Environment

  • Windows 11 Pro
  • Claude Code CLI (npm)
  • File on network share: \192.168.1.93\tmp\comp_form_submit.png

Related issues

  • #14403, #29935, #44152, #46276, #45297 (UNC path handling, but none describe a full crash)

Expected behavior

Should either handle UNC paths or fail gracefully with a helpful message, not crash the entire process.

View original on GitHub ↗

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