Skip to content

Verify install-agents.ps1 Natively on Windows #3014

Closed

Description

@ptr727

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.

  1. Elevation refusal. From an elevated session, .\host-setup\windows\install-agents.ps1 -Report exits non-zero and names the elevation.
  2. Manager detection. -Report and -Report -Json name the right owner for each installed tool: winget, scoop, choco, npm, bun, or self. Each version should match the tool's own --version.
  3. Version through a .cmd shim. A tool installed through npm resolves to a .cmd shim, and its version is read through cmd.exe. The report shows a version, not unknown.
  4. Installers. -Install claude and -Install herdr download and run each tool's install.ps1. Afterwards the tool resolves on PATH and -Report shows it as self. -Install codex and -Install opencode refuse, naming the documented route.
  5. cswap. -Upgrade upgrades cswap through uv tool upgrade claude-swap, and -Install cswap installs it through uv tool install claude-swap.
  6. Upgrade leaves managed tools alone. -Upgrade -DryRun lists only self tools. A tool owned by winget, scoop, choco or npm is reported and skipped.
  7. Bootstrap handoff. From Windows PowerShell 5.1, bootstrap.ps1 -Agents claude -DryRun hands off to pwsh 7 and keeps -Agents. bootstrap.ps1 -Upgrade -DryRun runs the agent upgrade after the packages.
  8. Download time bound. Invoke-WebRequest -TimeoutSec bounds 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 way install-agents.sh bounds 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.

Activity

  1. added
    script
    on Oct 14, 2026
  2. ptr727 commented on Oct 23, 2026

    @ptr727
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    script

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions