Repository navigation
feat(browser): run turno-browser on Windows - #152
Merged
Merged
Conversation
william-monroy
force-pushed
the
feat/browser-windows
branch
from
November 22, 2026 19:50
43670a8 to
57d18ae
Compare
…ows browser locations Named pipes for the background and live servers, Chrome found through its lockfile and the PowerShell process table, process trees ended with taskkill, Chrome, Edge and Brave in their Windows folders, agents' .cmd shims run through cmd.exe with escaped arguments, and tests that run on windows-latest.
Session owners know cmd, PowerShell and Git Bash on Windows; doctor's secret store and Chrome install hints name what works there; the docs say how to install turno-browser on Windows, where its data lives and what was checked; CI installs the packed packages with npm on windows-latest.
…old the Windows secret store job in
…al-Chrome tests on Windows
william-monroy
force-pushed
the
feat/browser-windows
branch
from
November 22, 2026 20:11
57d18ae to
b4ddaa0
Compare
…e tests there on DPAPI
…vault and lock tests
… under LOCALAPPDATA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
turno-browser (the CLI and the MCP server) now installs with npm and runs on Windows 10 and 11 (x64), with no admin rights. turno-cli stays macOS and Linux only: its
osfield makes npm refuse it on Windows.What changed
POSIX assumptions found, and what replaces each on Windows:
%APPDATA%(settings) and%LOCALAPPDATA%(data, state);TURNO_*_DIRandXDG_*still win. The home isUSERPROFILE.\\.\pipe\turno-browser-<id>-<hash>); the default pipe DACL lets only the user, administrators and SYSTEM write.taskkill /T(killTreein core). Messages printtaskkill /PID <pid> /T /Fwhere they printedkill <pid>. Tests that freeze Chrome with SIGSTOP are skipped on Windows.psandSingletonLock. The process table comes from WMI through Windows PowerShell. Chrome's profile lock is itslockfile, and the Chrome pid in the runtime lock comes from the process table. The script calls .NET only: any cmdlet (Get-CimInstance, Add-Type) took 20 s when an agent passes a trimmed environment, and .NET takes 0.3 s (measured on windows-latest). The DPAPI script from feat(core): a Windows secret store with DPAPI-encrypted files #154 got the same change.findOnPathreadsPATHEXT. An npm.cmdshim can only start throughcmd.exe, sosetupandinitregistercmd /c turno-browser-mcp --identity <id>, andinit --yesruns an agent's.cmdthroughcmd.exe /d /s /cwith each argument escaped. The standalone executable from feat(browser): standalone executables without Node, with checksums and attestations #155 keeps its own<exe> mcpentry.Program Files,Program Files (x86)and%LOCALAPPDATA%. Chrome for Testing goes to%LOCALAPPDATA%\ms-playwright. Doctor adds a winget hint.USERPROFILEpoints somewhere other than the account's profile. Chrome now always gets the account's ownUSERPROFILE(chromeEnv); the rest of the sandbox env is unchanged.rundll32 url.dll,FileProtocolHandlerinstead ofopenorxdg-open.cmd /c,powershell -Commandandpwsh -care seen through when turno-cli works out who started a session.scripts/shrinkwrap.mjshandles backslash paths and a CRLFpnpm-lock.yaml.How it was verified
The CI job
browser on windowsruns on windows-latest with Node 22 and 24:pnpm packof both packages, thennpm installof the tarballs, then, through the.cmdshims,add,setup claude-code,install-browser,doctor --json(asserting the smoke launch and the Chrome for Testing checks) andremove.In run 45110969003, both Node versions pass: turno-core has 22 passed and 9 skipped, and turno-browser has 704 passed and 32 skipped. Doctor's smoke launch started and closed Chrome in 3 to 5 s.
On Windows, the secret store tests run against the real DPAPI store in the sandbox's LOCALAPPDATA instead of the macOS and Linux stand-ins. macOS and Ubuntu stay green.
Skipped on Windows only, each with its reason in the test:
SingletonLockandpsparsing tests;SingletonLockand HOME-scoped servers.Known gaps
cmd /centries is unverified. Claude Code, Codex, Gemini and the Cursor CLI resolve it.destroycannot tell stray servers apart by their environment on Windows, because the process table has no environment.