Skip to content

fix(app): hide sandbox distros from the Add WSL server dialog - #327

Merged
quickbeard merged 1 commit into
mainfrom
hide-sandbox-distros
Aug 25, 2026
Merged

quickbeard merged 1 commit into
mainfrom
hide-sandbox-distros

Conversation

@quickbeard

Copy link
Copy Markdown
Owner

Problem

The "Add WSL server" dialog (Settings → Servers → + → Add WSL server) lists every installed WSL distribution, including the codev-* distros the sandbox provider creates for itself — codev-default-sandbox and any user-named sandbox, since wslDistroName in codev-sandbox prefixes every sandbox distro with codev-. Each shows up as "CoDev not installed" with an Install CoDev button.

Installing into one would be wrong: a sandbox guest is a minimal image that gets the server bundle bind-mounted at boot and is owned by the sandbox lifecycle — it is not a distro of the user's to run a standalone WSL server in.

Fix

Extend isHiddenDistro in packages/app/src/wsl/settings-model.ts to hide the sandbox's reserved codev- namespace, the same way it already hides Docker Desktop's docker-desktop/docker-desktop-data infrastructure distros. This filters both the installed-distros list and the catalog view (which could never contain one anyway).

Validation

  • New test: a state containing docker-desktop, docker-desktop-data, codev-default-sandbox, codev-my-project-1, and Ubuntu yields only Ubuntu as visible/addable/selected.
  • bun test src/wsl/settings-model.test.ts (11 pass) and bun typecheck from packages/app.

packages/app/src/wsl/ is fork-only, so no DIVERGENCES.md row; CHANGELOG.md gets a Sandbox entry.

🤖 Generated with Claude Code

The dialog listed every installed distribution, including the codev-*
distros the sandbox provider creates for itself (wslDistroName prefixes
every sandbox distro with codev-), each marked "CoDev not installed"
with an Install CoDev button. Installing into one would be wrong: a
sandbox guest is a minimal image that gets the server bundle
bind-mounted at boot and is owned by the sandbox lifecycle.

Extend isHiddenDistro to hide the sandbox's reserved codev- namespace
the same way it already hides docker-desktop's infrastructure distros.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@quickbeard
quickbeard merged commit 3090ebe into main Aug 25, 2026
0 of 5 checks passed
@quickbeard
quickbeard deleted the hide-sandbox-distros branch August 25, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant