Windows acceptance checklist
devhub’s Windows support has so far been tested only with mocks on macOS and has not been verified on real Windows. Please follow the steps in order and report each one as “pass” or “fail plus the information to attach”.
Always attach with your report: the Windows version (winver), system language, Node version (node -v), Git version (git --version), the shell you used (cmd/PowerShell), and the devhub commit (git rev-parse --short HEAD). Do not paste tokens, the contents of cf.env or certificate private keys.
Items not yet verified on real Windows
| Item | Risk |
|---|---|
Output of netstat -ano in each language |
Parsing relies on “remote address :0” rather than state wording, but the column format hasn’t been confirmed on real machines |
tasklist /FI "PID eq n" /FO CSV /NH |
Process name parsing, what is returned for PID 4 |
taskkill /PID n /T (graceful) and /T /F (forced) on npm/dotnet process trees |
Whether the whole tree is cleared and whether grandchild processes are left behind |
| Actual effect of graceful stop | Expected to have no effect on console programs without a window; confirm that the wait is skipped as expected |
icacls restricting the config directory and token file |
The resulting permissions, user names of domain accounts |
Binding 127.0.0.1:443/80 |
Behavior alongside HTTP.sys/IIS, whether the firewall prompts |
Running a service’s cmd with cmd.exe /d /s /c |
Handling of quotes, && and set VAR=… |
.cmd shims (orca, glab, devhub) |
Execution through a shell and the character rejection rules |
podman machine (WSL backend) |
Start/stop, container log streaming |
| Path comparison | Drive letter and path case (worktrees, --here) |
server start breaking away from the agent’s Job Object with WMI (Invoke-CimMethod Win32_Process Create) |
Whether the server survives after the session closes; whether the environment variables are passed completely (see step 11) |
| Copying and cleaning up the runtime copy on long paths | %APPDATA%\devhub\runtime\… exceeding 260 characters, renaming while antivirus locks files |
C:/… paths from git worktree list --porcelain |
After conversion to C:\… they compare equal to other paths |
Acceptance steps
1. Installation
git clone <repo-url> devhubcd devhubnpm cinode --test test/platform.test.mjs test/gitworktrees.test.mjs- Expected: all tests in both files pass.
- Note: the other tests in the full
node --test test/use/bin/shandlsofand are expected to fail on Windows; no action is needed. - On failure report: the names of the failing tests and the full error output.
2. Start and config directory permissions
node devhub.mjsIn another window:
dir $env:APPDATA\devhubicacls $env:APPDATA\devhub- Expected: the terminal prints
http://127.0.0.1:4999;%APPDATA%\devhub\services.jsonhas been created; theicaclsoutput lists only your account (no Users, Everyone or inherited entries). Openinghttp://127.0.0.1:4999in the browser shows the admin UI. - On failure report: the startup output (especially “Warning: unable to use icacls…”) and the full
icaclsoutput.
3. repos (getting worktrees without Orca)
Edit %APPDATA%\devhub\services.json and add the following (replace the path with your repo, which needs several worktrees; you can first run git worktree add ..\my-app-feat -b feat):
"repos": { "my-app": "C:\\Users\\me\\code\\my-app" }Press “Refresh worktrees” in the header.
- Expected: without Orca installed, the header’s “worktree source” pill shows a green “worktree: git”; the worktree switcher contains the main checkout and the branch names of the other worktrees; paths are written as
C:\…. - Variation: change the
repospath to a folder that doesn’t exist; expect that repo’s error to be shown while other repos are unaffected. - On failure report: the full text of the header notice, the output of
git worktree list --porcelain, andworktreeSourceandrepoErrorsfromcurl http://127.0.0.1:4999/api/state(you may remove other sensitive fields first).
4. Start and stop a service
In the UI add a service: choose the project from the previous step as repo, set cwd to ., set cmd to a command that listens on a fixed port (for example npm run dev, or node -e "require('http').createServer((q,r)=>r.end('ok')).listen(3999)"), and set port to that port.
- Press “Start”: expect the port to show running and the log to have output.
- Press “Stop”: expect it to become stopped within a few seconds; confirm with
netstat -ano | findstr :3999that the port is released, and with Task Manager that no node/cmd processes remain. Note how long it took. - Start it again, press Stop, and during the countdown press “Force stop”: expect it to end immediately.
- Expected (graceful stop): a console program without a window doesn’t receive
taskkill /T, so devhub should skip thestopTimeoutSecwait and end it by force, taking far less than 10 seconds. - On failure report: the time taken, whether processes remain (
tasklist | findstr node), the devhub terminal output and the service log.
5. Switching worktrees
For the service from step 4, choose another worktree and press “Restart”.
- Expected: it comes up from the new directory on the same port;
cwd=at the start of the log is the new worktree path. - On failure report: the first 5 lines of the log and the selected path (mind case and slash direction).
6. Taking over an external holder
Manually run node -e "require('http').createServer((q,r)=>r.end('x')).listen(3998)" in another window, and add a service on port 3998.
- Expected: the row shows “Occupied”; pressing Stop takes it over and releases the port.
- On failure report: the output of
netstat -ano | findstr :3998and oftasklist /FI "PID eq <pid>" /FO CSV /NH.
7. 80/443 and HTTPS
Set proxy.host and a DNS provider in the config (see https-proxy.md) and restart devhub.
- Expected: the Proxy pill shows “Running”;
https://<host>/devhub/opens in the browser; no Windows firewall prompt appears at any point (devhub binds only127.0.0.1). - On failure report: the full text of the Proxy pill popover, the last 20 lines of
.devhub\proxy.log(first make sure they hold no sensitive data), and whether a firewall prompt appeared.
8. IIS/HTTP.sys holding the ports (when the machine has IIS or HTTP.sys)
- Expected: the Proxy pill shows “Held by a Windows system service”, its text includes
net stop w3svcandnetsh http show servicestate, and devhub did not stop IIS. - On failure report: the full pill text and the output of
netstat -ano | findstr :443andnetsh http show servicestate.
9. Containers (when Podman Desktop and WSL2 are present)
Add one container service and one compose service (see containers.md).
- Expected: the header’s Podman pill shows the machine state; when the machine is stopped, starting a container runs
podman machine startautomatically; container start/stop and log streaming work. - On failure report:
podman machine list, a summary ofpodman info, the full text of the header pill popover and the devhub terminal output.
10. CLI
npm linkdevhub statusdevhub worktreescd C:\Users\me\code\my-app\src # any subdirectory inside the projectdevhub restart --hereRun each once in cmd and once in PowerShell; also try --here once with a path in a different case (for example cd c:\users\ME\code\MY-APP).
- Expected: the
devhubcommand runs (npm createsdevhub.cmd);statusandworktreesprint normally;--hereresolves the worktree it belongs to, regardless of path case and drive letter case. - On failure report: the commands with their full output,
where devhubandnpm prefix -g.
11. Server survives the agent session (Job Object breakaway)
On Windows, Claude Code may put the session’s processes in a Job Object (ended together when it closes). server start therefore creates the server process through WMI first (its parent is not in that Job) and only falls back to a detached spawn if that fails.
-
First stop any other devhub:
devhub server stop(or confirm nothing holds 4999:netstat -ano | findstr :4999). -
In a Claude Code session (with the devhub plugin installed) run
/devhub:start, or ask the agent to rundevhub server start --json. -
Check the start method and the copy:
終端機視窗 Get-Content $env:APPDATA\devhub\server.log -Tail 5devhub server statusdir $env:APPDATA\devhub\runtimeExpected: the last part of
server.logdoes not containWMI 脫離啟動失敗,改用 detached spawn(the log text is in Chinese: “WMI breakaway start failed, falling back to detached spawn”);statusshowssourceRoot(the plugin directory) andruntimeRoot(%APPDATA%\devhub\runtime\<version>-<hash>), andruntimehas only one or two version folders. -
Close Claude Code completely (end the whole window and process, not just start a new conversation), wait 10 seconds, then check in a fresh PowerShell:
終端機視窗 devhub server statuscurl.exe -s -H "X-Devhub: 1" http://127.0.0.1:4999/api/servertasklist /FI "IMAGENAME eq node.exe"Expected: the server is still running (
statusshows running with the same pid as before closing;/api/serverreturns JSON containingsourceRootandruntimeRoot). -
Also try a service the server manages: start a service, repeat step 4, and expect the service to still be running (the service is started by devhub and has nothing to do with the session’s Job).
-
Cleanup:
devhub server stop.
- Fallback path: if the log in step 3 shows
WMI 脫離啟動失敗…, step 4 may fail (the server ends together with the session); report the reason on that log line. - On failure report: the last 20 lines of
server.log, the output ofdevhub server status, the Claude Code version (claude --version), thetasklistoutput after step 4, andpowershell -NoProfile -Command "Get-CimInstance Win32_Process -Filter \"Name='node.exe'\" | Select ProcessId,ParentProcessId,CommandLine"(to confirm node’s parent isn’t Claude Code).