Skip to content

revert(setup): restore npx rea-agents setup - #15245

Merged
morluto merged 1 commit into
mainfrom
revert/15123-restore-npx-setup
Nov 30, 2026
Merged

morluto merged 1 commit into
mainfrom
revert/15123-restore-npx-setup

Conversation

@morluto

@morluto morluto commented Nov 30, 2026

Copy link
Copy Markdown
Owner

Summary

This reverts #15123 so that npx rea-agents setup and npx rea-agents@latest setup work 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, pnpm dlx, Bun cache) and version managers (nvm, Volta, Homebrew Cellar, mise, fnm, and others). As a result, npx rea-agents setup no longer produces a usable registration, and the README replaced it with npm 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 need npx rea-agents@latest setup again after a cache prune or Node upgrade.

Change and scope

This is a plain git revert of 92c61a7. It restores the 7.0.0 setup behavior, which saves the selected runtime and entry script even under _npx or version-manager paths. It also restores the README, translated README, installation, client-configuration, install.sh and website copy that describe npx 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) and ClientRegistrationStatus.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.sh and website copy return to the npx quick start.

  • Change process memory, registers, files, or configuration. (Setup writes agent MCP configuration, unchanged from 7.0.0.)

Evidence and regression coverage

Validation performed

  • npx tsc --noEmit -p tsconfig.json: passed
  • npm 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 passed
  • npm run check:fast: passed, including architecture guards
  • npm run docs:check: passed
  • oxfmt --check .: passed

Compatibility, safety, and release

Author readiness

Human owner:

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

@morluto morluto added the area: setup Setup, packaging, upgrade, install, Doctor, and client registration label Nov 30, 2026
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-30T15:02:56.256219Z
We couldn’t complete this review. Comment @codex review to try again.
273257b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@morluto
morluto merged commit 9a4e2df into main Nov 30, 2026
53 checks passed
@morluto
morluto deleted the revert/15123-restore-npx-setup branch November 30, 2026 15:05
@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge within its stated scope and accepted launcher-lifetime tradeoffs.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge within its stated scope and accepted launcher-lifetime tradeoffs.

Summary

Restores npx rea-agents setup as the quick start and allows setup to save cache and version-manager paths again.

  • Setup saves the runtime and REA script selected by the package runner.
  • Setup instructions use npx as the quick start again.
  • The installer points to nvm and fnm when its Node version is unsupported.

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"]
Loading

Reviews (1) · Last reviewed commit: "Revert "fix(setup): do not persist versi..." · Reviewed by Greptile

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

Labels

area: setup Setup, packaging, upgrade, install, Doctor, and client registration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant