My first two open-source PRs, on Windows, in four days: what broke when I set up Switch and what I learned
A first-time contributor documented specific technical hurdles encountered while setting up Switch, an open-source layer that integrates AI coding agents into team chat, on Windows 11. The four-day effort, undertaken for a hackathon, led to two pull requests addressing documentation gaps and platform-specific issues within Switch's core repository.
Setting up Switch, an open-source platform designed to embed AI coding agents like Claude Code and OpenCode into team chat, presented distinct challenges for a developer working on Windows 11. While the initial setup times were manageable, two minutes for `just up` and 30 seconds for `just run` on Windows, compared to about a minute on Debian, several core functionalities required workarounds specific to the Windows environment.
Key obstacles included `just` recipes, which are bash scripts, failing in PowerShell and necessitating the use of Git Bash. Furthermore, Git for Windows' default `core.autocrlf=true` setting caused CRLF line endings, conflicting with Switch's connector catalog loader that expected LF endings. This required manual Git configuration adjustments or a specific `.gitattributes` fix to ensure proper file parsing.
The agent controller's `npm` package initially lacked `win32` in its platform support list, preventing installation without a `--force` flag. Although this was addressed with a proposed fix and a documented workaround, a persistent issue remained: the Switch Console identified OpenCode as installed, yet its embedded controller reported the CLI as absent, preventing agents from functioning on the Windows machine. This unresolved problem was openly acknowledged in the resulting quickstart guide, underscoring the practical complexities of cross-platform compatibility.
分享这篇文章
相关文章
6 则
'I Feel Like Modding is Kind Of Dying' – Mass Effect 3 Multiplayer Modder on AI's Impact on the Scene

BYD Yangwang Altior debuts with Rolls-Royce-style coach doors and 5.5-metre body

China's main intelligence agency reportedly recruited the spy who targeted NVIDIA's CEO

From Keralam with love, a biography of Soviet WW-II hero Marshal Zhukov to be out soon

无人驾驶出租车正在占领中国城市。乘坐体验究竟如何?

