Repository navigation
Closed
Labels
scriptA defect in hub tooling
Description
Problem
host-setup/windows/install-agents.ps1 arrived on develop in #2997, but it has only ever run under pwsh on Linux, against stub tools. The tests for it skip on native Windows: the hosted Windows runner is elevated, and the script refuses an elevated session by design. So none of its Windows-only paths has run on a real Windows host.
What to verify natively
Run each from a non-elevated pwsh 7 session in a checkout of develop, unless the item says otherwise.
- Elevation refusal. From an elevated session,
.\host-setup\windows\install-agents.ps1 -Reportexits non-zero and names the elevation. - Manager detection.
-Reportand-Report -Jsonname the right owner for each installed tool:winget,scoop,choco,npm,bun, orself. Each version should match the tool's own--version. - Version through a
.cmdshim. A tool installed through npm resolves to a.cmdshim, and its version is read throughcmd.exe. The report shows a version, notunknown. - Installers.
-Install claudeand-Install herdrdownload and run each tool'sinstall.ps1. Afterwards the tool resolves on PATH and-Reportshows it asself.-Install codexand-Install opencoderefuse, naming the documented route. - cswap.
-Upgradeupgrades cswap throughuv tool upgrade claude-swap, and-Install cswapinstalls it throughuv tool install claude-swap. - Upgrade leaves managed tools alone.
-Upgrade -DryRunlists onlyselftools. A tool owned by winget, scoop, choco or npm is reported and skipped. - Bootstrap handoff. From Windows PowerShell 5.1,
bootstrap.ps1 -Agents claude -DryRunhands off to pwsh 7 and keeps-Agents.bootstrap.ps1 -Upgrade -DryRunruns the agent upgrade after the packages. - Download time bound.
Invoke-WebRequest -TimeoutSecbounds only the connection and the headers, not the whole body. Check that a stalled installer download does not hang the run without limit. If it does, bound it the wayinstall-agents.shbounds curl with--max-time.
Done when
Each item above has been run on a Windows host, and any failure is fixed in its own pull request and run natively again. Record the results on this issue.
Metadata
Metadata
Assignees
Labels
scriptA defect in hub tooling
Activity
ptr727 commentedon Oct 23, 2026
Closed under the maintainer's decision (ptr727, 2026-10-23) on #3391: the backlog keeps real bugs with a stated failure, features the maintainer wants, and open decisions. A finding the review loop filed on code or text a change did not touch, a refactor or consolidation chore, a tracker, a wording item, or a guard shape no session has produced is closed rather than worked. Reopen with the input and the wrong result if this issue states one.