Repository navigation
revert(setup): restore npx rea-agents setup - #15245
Merged
Merged
Conversation
This reverts commit 92c61a7.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Medium impact] The PR appears safe to merge within its stated scope and accepted launcher-lifetime tradeoffs. SummaryRestores
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["npx rea-agents setup"] --> B["Select runtime and REA script"]
B --> C["Review and approve setup"]
C --> D["Save absolute launcher paths"]
D --> E["Client starts REA directly"]
Reviews (1) · Last reviewed commit: "Revert "fix(setup): do not persist versi..." · Reviewed by Greptile |
This was referenced Nov 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This reverts #15123 so that
npx rea-agents setupandnpx rea-agents@latest setupwork again and are the documented quick start. Related: #15243.Problem and expected behavior
#15123 made setup refuse to save launcher paths under package-runner caches (
_npx, pnpmdlx, Bun cache) and version managers (nvm, Volta, Homebrew Cellar, mise, fnm, and others). As a result,npx rea-agents setupno longer produces a usable registration, and the README replaced it withnpm install --global rea-agents+rea setup, plus a durable-Node and writable-npm-prefix prerequisite.We want one-command setup through
npx, like other MCP tools offer. We accept the #15023 tradeoff: a registration saved from an npx cache or a versioned Node may neednpx rea-agents@latest setupagain after a cache prune or Node upgrade.Change and scope
This is a plain
git revertof 92c61a7. It restores the 7.0.0 setup behavior, which saves the selected runtime and entry script even under_npxor version-manager paths. It also restores the README, translated README, installation, client-configuration,install.shand website copy that describenpx rea-agents setup.Not included: a durable launcher for npx runs that would avoid the #15022/#15023 problems. That is tracked in #15243.
Contract and boundary impact
Semantic owner and earliest changed stage:
src/application/ClientRegistrationIdentity.ts(launcher selection and versioned-path classification) andClientRegistrationStatus.ts, back to their pre-fix(setup): do not persist versioned launcher paths #15123 state.Contribution scope fit and linked maintainer decision: not applicable (revert of an existing setup fix).
CLI and MCP/tool-catalog contract: no change.
Provider, bridge, target-format, or platform compatibility: setup again accepts versioned and package-cache launcher paths on all platforms.
Evidence, artifact, provenance, or reconstruction contract: none.
Target selection, authority, upstream behavior, and cleanup details: not applicable.
Generated metadata, package, or installation impact: README, installation docs,
install.shand website copy return to thenpxquick start.Change process memory, registers, files, or configuration. (Setup writes agent MCP configuration, unchanged from 7.0.0.)
Evidence and regression coverage
defaultClientRegistrationBlockerrefuses an empty launcher, whichcurrentClientRegistrationCommandreturns for_npxcache entrypoints.npx rea-agents setupagainst a real agent configuration from this branch. setup: npx-cache launcher paths make REA's own registrations read as foreign #15022 (registrations read as foreign after a different npx cache folder) and setup: nvm, Volta, Homebrew Cellar, mise, and package-runner cache paths are not treated as temporary #15023 (paths go stale after a prune or upgrade) come back by design.Validation performed
npx tsc --noEmit -p tsconfig.json: passednpm run test:focused -- tests/acceptance/setup/registrationOwnershipSetup.test.ts tests/boundary/cli/packageRunnerBoundInstallation.test.ts tests/boundary/filesystem/aubeBinShimRegistration.test.ts tests/boundary/filesystem/installScript.test.ts tests/boundary/filesystem/setupLauncherAlias.test.ts: 5 files, 91 tests passednpm run check:fast: passed, including architecture guardsnpm run docs:check: passedoxfmt --check .: passedCompatibility, safety, and release
Author readiness
Human owner: