Skip to content

Name the WSL provider for the machine OpenBot makes on Windows (#1860) - #2485

Open
joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/1860-windows-wsl-provider
Open

joei4cm wants to merge 1 commit into
CopilotKit:mainfrom
joei4cm:fix/1860-windows-wsl-provider

Conversation

@joei4cm

@joei4cm joei4cm commented Nov 30, 2026

Copy link
Copy Markdown
Contributor

What this changes

Setup on Windows now asks Podman for a WSL machine, instead of letting Podman follow the provider
its Windows installer wrote down.

Podman's Windows installer asks whether to use WSL or Hyper-V and remembers the answer in
99-podman-machine-provider.conf under %APPDATA%\containers\containers.conf.d\. With Hyper-V
remembered, podman machine init goes through Podman's Hyper-V backend, which enumerates
root\virtualization\v2 over WMI: on Windows 11 Home that namespace does not exist and the step
fails with could not find virtual machine: failure advancing enumeration (#1860), and on the
editions that do have Hyper-V it makes a machine OpenBot cannot use, because the user-mode
networking that follows belongs to the WSL provider.

Everything else in the Windows setup already assumes a WSL machine: machine init registers a WSL
distribution, the machine's disk is placed by provisionWSLDist under the install folder, and
machine set --user-mode-networking=true is the WSL provider's own podman-net-usermode
distribution. The provider is now named, so the machine is made the way the rest of the setup
expects it to be.

The flag is added on Windows only. macOS keeps the provider Podman gives it (applehv on Apple
silicon since 6.1).

Where it runs

  • New state that outlives a request? No. This is OpenBot Desktop's own setup on the
    person's computer, before a server is started.
  • What happens on the second replica? Nothing changes: one flag on the podman machine init the desktop runs once, for the machine it makes for itself.
  • Anything serialised? No.
  • Anything fanned out to a browser? No.
  • New listener, port, or schedule? No.

Boundary and audit

  • Every acting call still goes through the gateway: no call is made on the server.
  • New refusals and new failures each write a row: there are none.
  • Nothing new is trusted from the client that the server can resolve itself: nothing is
    trusted from a client.

API and database

  • This changes nothing under api/, no app's requests, no database change and no
    release-policy.json.

Changelog

  • A line in CHANGELOG.md under Unreleased.

Proof

  • cargo test --lib passed: 1381 passed, 0 failed.
  • cargo fmt --check and git diff --check passed.
  • cargo clippy --all-targets -- -D warnings passed.
  • Not reproduced on a Windows machine: this was made on Linux, and the failure needs Windows with
    a Hyper-V provider remembered.

Related to #1860.

🤖 Generated with Claude Code

Podman's Windows installer asks whether to use WSL or Hyper-V and writes the
answer to 99-podman-machine-provider.conf, so `podman machine init` followed
it. With Hyper-V remembered, init goes through Podman's Hyper-V backend and
enumerates root\virtualization\v2 over WMI: on Windows 11 Home that namespace
does not exist, and the step fails with "could not find virtual machine:
failure advancing enumeration" (CopilotKit#1860). On the editions that do have Hyper-V
it makes a machine OpenBot cannot use, because the user-mode networking that
follows belongs to the WSL provider.

The rest of the Windows setup already assumes a WSL machine: init registers a
WSL distribution, the disk is placed by provisionWSLDist under the machine
home, and user-mode networking is the WSL provider's own podman-net-usermode
distribution. So the provider is named on Windows, and only there.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@joei4cm
joei4cm force-pushed the fix/1860-windows-wsl-provider branch from 356a962 to c90e64d Compare December 1, 2026 14:21

This branch has not been deployed

No deployments
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