{"version":"2.1.301","anchor":"wsl-detection-returns-false-when-an-earlier-check-is-true","canonical_anchor":"wsl-detection-returns-false-when-an-earlier-check-is-true","heading":"WSL detection now checks another condition first","tier":"internal","area":"Environment Detection","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.301\/e\/wsl-detection-returns-false-when-an-earlier-check-is-true","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.301","markdown":"### WSL detection now checks another condition first\n\nClaude Code's check for Windows Subsystem for Linux now runs an earlier environment check that can rule WSL out first\n\n**Unclear.** It is not clear which environments the new earlier check rules out, so it is unclear who is affected.\n\n**What**\n\nClaude Code checks whether it is running under WSL (Windows Subsystem for Linux, which runs Linux inside Windows). This check used to look only for the file `\/proc\/sys\/fs\/binfmt_misc\/WSLInterop`. It now runs another environment check first, and if that check passes, Claude Code decides it is not under WSL without looking for the file.\n\n**Why**\n\nThis may stop Claude Code from wrongly treating some environments as WSL.\n\n- Area: Environment Detection\n- Tier: Under the hood\n- Useful: 1\/5\n- Signal: 1\/5\n- Scope: individual\n- Heads-up: no"}