Skip to content

setup: name an older summer on PATH and how to update it - #243

Merged
mathias-heide merged 2 commits into
mainfrom
fix/setup-stale-summer-on-path
Oct 25, 2026
Merged

mathias-heide merged 2 commits into
mainfrom
fix/setup-stale-summer-on-path

Conversation

@mathias-heide

Copy link
Copy Markdown
Member

After npx -y summer-engine@latest setup claude --yes, a stale global summer 3.1.0 first on PATH shadowed 4.8.0, so summer login ran the old CLI (Velizar's RC1 agent test, Linear SUM-1278).

Setup now:

  • walks PATH, skips its own npx copy, and reads the summer-engine version of the next summer (its link target's package, or the npm prefix beside a Windows summer.cmd);
  • when that one is older, prints: "The summer command in your shell is 3.1.0 (/usr/local/bin/summer), older than this setup (4.8.0), so summer login would run the old CLI. Update it: npm install -g summer-engine@latest. Until then: npx -y summer-engine@latest login" (Homebrew installs get brew upgrade summerengine/tap/summer);
  • says nothing for an equal or newer one, none, or another program named summer.

Both the MCP setup and --cli setup show it; --json adds it as warnings.

Tests: src/installer/path-shadow.test.ts (4), plus setup.test.ts and setup.cli.test.ts pass.

🤖 Generated with Claude Code

mathias-heide and others added 2 commits October 25, 2026 10:19
After npx -y summer-engine@latest setup, a stale global summer (3.1.0)
first on PATH runs on the next summer login. Setup now finds the first
summer on PATH that is not its own npx copy, reads its summer-engine
version, and when it is older prints which one it is and the command that
updates it (npm install -g summer-engine@latest, or brew upgrade for a
Homebrew install), plus the npx login to use until then. --json adds it as
warnings; the --cli setup lists it with its other warnings.

Found in Velizar's RC1 agent test (SUM-1278).

Theme: cli-setup
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Theme: cli-setup

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mathias-heide
mathias-heide merged commit 51238dc into main Oct 25, 2026
8 checks passed
@mathias-heide
mathias-heide deleted the fix/setup-stale-summer-on-path branch October 25, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant