Repository navigation
fix(setup): do not persist versioned launcher paths - #15123
Conversation
A command saved from nvm, Volta, Homebrew Cellar, mise, or a package cache stops launching after an upgrade or prune, and doctor then treats that registration as foreign. Co-authored-by: Cursor <[email protected]>
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. |
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummarySetup now refuses to save short-lived runtime and REA paths while preserving verified durable aliases. Installation guides and translated quick starts now use global installation followed by
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[Selected runtime and REA script] --> B{Verified managed shim?}
B -- Yes --> C{Durable shim and fallback runtime?}
C -- Yes --> D[Use managed wrapper]
B -- No --> E[Check selected paths and same-file PATH aliases]
C -- No --> E
E --> F{Both paths durable?}
F -- Yes --> G[Build registration command]
F -- No --> H[Return no command and explain recovery]
Reviews (13) · Last reviewed commit: "chore(website): format setup introductio..." · Reviewed by Greptile |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 45a1cbaf64
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The usual POSIX install is ~/.nvm/versions/node, and nvm-windows stores each release in nvm\v<version>. Both were still saved, and the launcher guide still told setup to keep a cache path. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3f7b345309
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Default Windows Volta and pnpm dlx stores were still persisted, and mise's stable latest alias was dropped before the Aube launcher could use it. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 05290b1c22
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
A versioned running runtime was rejected before a durable Node alias could be selected, and fnm's installed tree was still saved. Doctor now tells version-manager and package-cache paths apart from a session directory. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e760ebad09
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Reject version-tagged node_modules/.mise store targets beneath mise latest aliases (while keeping verified outer Aube shims), reject asdf/nodenv/nvs/nix/snap versioned paths, fix the nvm-sensitive Windows runtime assertion in setupLauncherAlias tests, and align installation docs, install.sh, and getting-started guidance with durable-path registration.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 234e01d14f
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Pass environment through versionedLauncherPath and transientLauncherRemediation so custom version-manager env roots are classified accurately while preserving fnm_multishells as a session path; fix Windows PowerShell rea.cmd and Linux PATH persistence in get-started; align remaining setup quick starts and affected setup acceptance/boundary tests.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d49459bf7e
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Windows fnm session directories and custom npm or Bun cache roots were still eligible for client registration. Quick starts now require a durable Node install, and the website setup copy no longer uses a PowerShell-invalid command chain. Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6c6aceb651
ℹ️ About Codex in GitHub
Codex has been enabled to automatically 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
|
Thanks! I added the linked-root fix, aligned the localized prerequisites, and fixed the Bash login-profile gap found in review. Browser and targeted regressions pass; the final head is now in CI. |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dd5a3fdc1c
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
thanks for working through this! merged with the launcher, shell-profile and writable-prefix fixes. review findings are resolved; the full CI run passed, including Windows, Apple and website checks. |
* commit 'c86e86d697cc00dd00367ee2a4e726d4552e637e': fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157)
* commit '91380cff6a6ce8b82b042ceb4e5013f3cc87a9d0': fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172)
* commit '91380cff6a6ce8b82b042ceb4e5013f3cc87a9d0': fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155)
* commit '6053481d47c518af7de8e6a88a3579f1f95e7851': fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860)
* commit '5c3c1edd72453746266691deca2c7355a8df9b0d': (623 commits) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) fix(ubi): bound smaller-grid probe memoization (morluto#15168) fix(artifacts): distinguish content from containment changes (morluto#15165) fix(bflt): retain complete text when data is truncated (morluto#15160) refactor(domain): reuse graph projection and validation helpers (morluto#15173) fix(iso9660): read a directory record's data length from its little-endian half (morluto#14801) test(ghidra): wait for each fixture spawn before expiring startup (morluto#15172) test(beam): reuse the CLI Evidence reader (morluto#15171) ... # Conflicts: # src/cli/cliCommandRegistrations.ts
* commit '31cec30f51fb59b28a1849a67d09ab79b1c40094': (803 commits) fix(android): declare Android mapping and JNI fixed allowances (morluto#15183) fix(artifacts): retain deep comparison source chains (morluto#15191) perf(evidence): bound link inspection frontier by records (morluto#15189) perf(evidence): retain snapshots across duplicate imports (morluto#15186) fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) ...
* commit '31cec30f51fb59b28a1849a67d09ab79b1c40094': (803 commits) fix(android): declare Android mapping and JNI fixed allowances (morluto#15183) fix(artifacts): retain deep comparison source chains (morluto#15191) perf(evidence): bound link inspection frontier by records (morluto#15189) perf(evidence): retain snapshots across duplicate imports (morluto#15186) fix(nro): exclude ASET header bytes from asset ranges (morluto#15185) fix(bflt): reject relocation tables overlapping image segments (morluto#15188) docs(artifacts): document Kubernetes audit log inventory (morluto#15187) fix(dtbo): keep coverage unknown beyond the declared image (morluto#15182) perf(n64): stream ROM byte-order normalization (morluto#15179) fix(oci)!: keep unobserved directory identity unknown (morluto#15164) fix(nds): bind file names to disjoint FNT subtables (morluto#15178) fix(glb): preserve JSON chunk read failures (morluto#15181) fix(ci): run npm lifecycle hooks in selected host lanes (morluto#15169) fix(artifacts): retain stored files in Godot PCK patches (morluto#15180) fix(setup): do not persist versioned launcher paths (morluto#15123) fix(devicetree): read later FDT versions backwards compatible with v17 (morluto#14136) fix(json): classify JSON input heap headroom and string-ceiling refusals (morluto#14949) fix(macos-pkg): retain cpio hard-link contents (morluto#15157) fix(artifacts): report macOS package bundle release versions (morluto#14860) test(asar): verify cleanup on the original file handle (morluto#15155) ...
Summary
Setup no longer saves a Node or REA script path that lives under nvm (including custom
NVM_DIR/NVM_HOME), Volta (including customVOLTA_HOME), Homebrew Cellar (including customHOMEBREW_CELLAR), numbered mise installs (including customMISE_DATA_DIR/MISE_INSTALLS_DIR),node_modules/.misepackage-store targets (even beneathmise/installs/<tool>/latest),fnmversion trees (including customFNM_DIR, while keepingfnm_multishellsclassified as a session path),asdf/installs(ASDF_DATA_DIR),nodenv/versions(NODENV_ROOT), versionednvs(NVS_HOME),/nix/store, numbered/snaprevisions,_npx, pnpmdlx, or the bun cache. A same-file PATH alias whose own spelling is outside those roots (and verified outer Aube v2 shims undermise/installs/.../latest) is still saved. On Windows those spellings are transient as well.All setup quick starts (
README.md, 23 translateddocs/readme/README_*.mdfiles,docs/index.md,docs/getting-started/installation.md,docs/getting-started/client-configuration.md,install.sh,website/public/index.html,website/public/get-started/index.html,website/public/faq/index.html, andwebsite/public/first-investigation/index.html) now align with durable global installation (npm install --global rea-agents+rea setup), includingrea.cmd setupin Windows PowerShell execution-policy recovery blocks and updating~/.bashrcand~/.zshrcalongside~/.profileplus exporting$HOME/.local/binin the current shell for Linux manual Node setup.Fixes #15023
Problem and expected behavior
A command saved from one of those directories stops launching after an upgrade or cache prune. Doctor then treats the row as foreign or unknown, and setup, uninstall, and update skip it. The registration should keep a durable alias when one exists, and otherwise leave the command empty instead of storing a path that will disappear.
Change and scope
The registration-identity owner classifies those spellings lexically and via configured version-manager environment roots (
VOLTA_HOME,NVM_DIR,NVM_HOME,FNM_DIR,MISE_DATA_DIR,MISE_INSTALLS_DIR,ASDF_DATA_DIR,NODENV_ROOT,NVS_HOME, andHOMEBREW_CELLAR). It does not follow a symlink into the versioned store, so a Homebrewoptalias and a same-file mise/Volta/asdf/nodenv/nvs shim/default alias outside versioned directories still persist, andfnm_multishellsstays classified as a session path rather than a versioned install. When the only candidate is versioned,currentClientRegistrationCommandreturns no command and the existing empty-command blocker explains why.This does not add a provider or any target execution, injection, mutation, or protection recovery.
Follow the contribution scope.
Unresolved scope, authority, side effects, or required verification block
integration. Link the required maintainer scope decision for new providers or
capabilities involving target execution, injection, mutation, or protection
recovery; ordinary fixes within existing boundaries may state "not applicable".
Draft PRs may leave the scope decision pending and the Author readiness and
Author checklist unchecked. Maintainers can help resolve open questions.
Contract and boundary impact
ClientRegistrationIdentitydecides which runtime and script spellings may be stored and passesenvironmentintoversionedLauncherPathandtransientLauncherRemediation. Setup, doctor, uninstall, and update consume that command.PATH.docs/public/product-catalog.json), package, or installation impact (CI generates and validates ignored catalogs andskills/; edit authored instructions in.agents/skills/reverse-engineer-anything/and never commit build outputs): noneExpected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
tests/boundary/filesystem/setupLauncherAlias.test.ts,tests/boundary/filesystem/aubeBinShimRegistration.test.ts,tests/boundary/filesystem/installScript.test.ts,tests/boundary/cli/packageRunnerBoundInstallation.test.ts, andtests/acceptance/setup/registrationOwnershipSetup.test.ts. Covers Cellar/nvm/fnm/Volta/mise/asdf/nodenv/nvs/nix/snap/_npx/dlx/.bun/.miseclassification, custom env roots (VOLTA_HOME,NVM_DIR,NVM_HOME,FNM_DIR,MISE_DATA_DIR,MISE_INSTALLS_DIR,ASDF_DATA_DIR,NODENV_ROOT,NVS_HOME,HOMEBREW_CELLAR), keepingfnm_multishellsas a session path, offline global npm installation binding without project hijacking, non-cache other-install ownership checks, and rejecting unverified.mise/<pkg>@<ver>fallbacks while keeping validlatestAube shims.README.md, all 23 translateddocs/readme/README_*.mdfiles,docs/index.md,docs/getting-started/client-configuration.md,docs/getting-started/installation.md,install.sh,website/public/index.html,website/public/get-started/index.html,website/public/faq/index.html, andwebsite/public/first-investigation/index.html.currentClientRegistrationCommand,transientClientLauncherPaths,transientLauncherRemediation,registrationRuntimePath,readClientRegistrationInspections,install.sh, and compiledreaCLI commands. Local environment gaps: Windows runtime behavior is simulated viaplatform: "win32"on macOS,scripts/website.py checkcould not run locally because optional Python packages (polib/cairosvg) are not installed,tests/boundary/cli/cliSetup.test.tsinteractive completion cases andscripts/generate-package-metadata.mjs --checkrequire.nvmrcNode24.22.1, whereas local verification ran under Node26.12.1afternpm run compile.For boundary fixes, identify the applicable boundary regressions
and lifecycle regressions
covered by the evidence above, and explain relevant gaps.
The boundary is the registration command derived from the current runtime and entrypoint. The tests cover versioned spellings, custom manager environment roots, a same-file alias outside the root, session-path classification, and the Windows short-circuit. They do not cover process cleanup.
For evidence-bearing changes:
Validation performed
./node_modules/.bin/oxfmt --checkon modified.tsand.htmlfiles (0errors)./node_modules/.bin/oxlinton modified tests (0warnings,0errors) and source files (0errors)node scripts/verify-module-boundaries.mjs(5155files),node scripts/verify/architecture-guards.mjs(3327files),node scripts/verify/fixed-ceilings.mjs(85declarations)./node_modules/.bin/tsc --noEmit -p tsconfig.jsonand-p tsconfig.scripts.json(0errors)node --test website/worker.test.mjs(6passed)./node_modules/.bin/vitest runacross57setup/registration/launcher/install-script/docs/conformance/src/applicationsuites (519 passed | 3 skippedplatform-specific cases,0 failedacross57files) under Node26.12.1afternpm run compileCompatibility, safety, and release
npm install --global rea-agents) and run setup from a durable Node, or add a stable alias onPATH, to refresh the row.platform: "win32"to the registration functions on macOS.Maintainer validation
Author readiness
Human owner: @ambujone
Author checklist (completed by the PR author before requesting review)
type(scope): outcome.REA_runtime setting with a default, floor, and maximum, unless a fixed ceiling has a stated reason. See Adding a runtime setting.Made with Cursor