{"name":"WSL_DISTRO_NAME","slug":"wsl-distro-name","family":"env","title":"Environment variables","noun":"environment variable","description":"Claude Code no longer always treats `WSL_DISTRO_NAME` being set as proof it runs under WSL, and can fall back to checking the system","description_source":"entry","described_by":{"version":"2.1.302","anchor":"wsl-detection-changed"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":149,"mined_builds":149,"first_cited":{"version":"2.1.302","released_at":"2026-10-16 16:48:28","spans":1}},"aliases":[],"entries":[{"version":"2.1.302","anchor":"wsl-detection-changed","heading":"WSL detection no longer relies on WSL_DISTRO_NAME alone","line":"Claude Code no longer always treats `WSL_DISTRO_NAME` being set as proof it runs under WSL, and can fall back to checking the system","released_at":"2026-10-16 16:48:28","reason":"found in this entry's text, named in this entry"}],"entries_total":1,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"WSL_INTEROP","slug":"wsl-interop","description":"On Linux, Claude Code's environment detection reports the platform as `wsl` when `WSL_DISTRO_NAME` or `WSL_INTEROP` is non-empty; with neither set, it decides from the kernel version string."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/wsl-distro-name","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}