Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.302 ·

WSL detection no longer relies on WSL_DISTRO_NAME alone

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

You'll notice No documentation found Improvements
JSON All of v2.1.302
You'll noticeTier: how much it should matter to you
2Useful: my rating, 1 to 5
1Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
ImprovementsKind: in v2.1.302,
ImprovementsSection of the release

Unclear It is not clear what condition decides whether WSL_DISTRO_NAME is still trusted.

What

WSL (Windows Subsystem for Linux) lets you run Linux inside Windows, and Claude Code adjusts some behaviour when it runs there. Before, having the WSL_DISTRO_NAME environment variable set was always enough for Claude Code to decide it was under WSL. Now it runs another check first, and only trusts that variable when that check does not hold. Otherwise it looks at the system's version information instead.

Why

If you run Claude Code in a container or another setup where WSL_DISTRO_NAME is set but you are not really under WSL, it may now be detected correctly.

Read from
Names in the bundleWSL_DISTRO_NAME
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear what condition decides whether `WSL_DISTRO_NAME` is still trusted.

See this entry in the whole of v2.1.302 →

Feedback