Skip to content

Remove the npm and Bun Upgrade Paths From install-agents That No Managed Tool Reaches #4450

Backlog

Description

@ptr727

Problem

Once install-agents records the native installer's copy as the managed copy of claude and codex (#4158), no managed agent tool reaches the npm and bun upgrade paths in either installer.

  • Linux: claude, codex, and opencode each keep one managed copy from their own installer, and a copy from any other source is a stray that is reported and never upgraded. herdr and cswap have no npm package. So manager_upgrade for npm and bun, and the npm and bun branches of manager_plan, reach no tool.
  • Windows: opencode's managed copy is the npm package @opencode/cli, so npm upgrade is still reached through it. bun reaches no tool.

The code is still reviewed, tested, and maintained, and nothing runs it.

Proposal

Remove the unreachable paths in a pull request of its own, as the maintainer settled on #4402 (option 1: the removal is a follow-up, so each diff is reviewed alone).

  • host-setup/linux/install-agents.sh: the npm and bun upgrade plans, their ownership and writability checks, and the tests that exercise them directly. Keep what the stray report still uses to name a removal command, package_step remove and the ownership reads it relies on.
  • host-setup/windows/install-agents.ps1: the bun upgrade plan and what only it uses. Keep npm's, which opencode reaches.
  • tests/test_install_agents.py, and the install-agents bullets in host-setup/linux/README.md, host-setup/windows/README.md, and docs/host-setup.md.

Per the maintainer's rule on #4210, a one-off is detected and reported and never corrected by code, so a stray claude or codex stays report-only.

Found while implementing #4158.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions