Repository navigation
fix(install): use system Node for FreeBSD CLI setup - #147204
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:38 PM ET / 18:38 UTC (Revision 6). ClawSweeper reviewWhat this changesThe CLI installer adds FreeBSD setup using validated system Node/npm packages, documents prerequisites, and adds runtime-selection and failure-preservation tests. Merge readiness✅ Ready for maintainer review The PR remains useful: current main still rejects FreeBSD. The previous macOS fixture finding and its proof follow-up are resolved, and this review found no remaining actionable defect. Priority: P2 Review scores
Verification
How this fits togetherThe CLI installer prepares a Node runtime and installs OpenClaw under a local prefix. On FreeBSD, it validates administrator-installed Node/npm packages before linking them into the prefix used by the CLI. flowchart TD
A[CLI installation request] --> B[Detect operating system]
B --> C[FreeBSD system Node and npm]
C --> D[Check versions and SQLite]
D -->|Invalid| E[Explain prerequisites and preserve links]
D -->|Valid| F[Publish local runtime links]
F --> G[Install and verify OpenClaw]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +142, Docs +8, Other +27. Total +177 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep FreeBSD runtime ownership with system packages while using the existing installer validation and local-prefix installation flow. Do we have a high-confidence way to reproduce the issue? Not applicable as an existing-support regression: this adds an unsupported platform. Current-main source confirms FreeBSD rejection, and the supplied native proof exercises that baseline. Is this the best way to solve the issue? Yes. Reusing system packages and the existing runtime validator avoids inventing a FreeBSD binary-download path or a second validation policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 69213b315cb3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (5 earlier review cycles)
|
|
Merged via squash.
|
* commit '28887b564210326174413d0d8ade72b38268d5f3': (1827 commits) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) improve: reduce workspace agent lookup work for large fleets (#147144) refactor(macos): share connect credential selection (#144214) fix(plugins): restore Slack onboarding after core updates (#147109) refactor: share ANSI compatibility matching (#146998) fix(test): settle Models catalog before picker open (#147215) test(ui): reuse panel tab drag fixture (#147250) fix(install): use system Node for FreeBSD CLI setup (#147204) fix(cli): explain MCP probes with no enabled servers (#147216) docs: require UI screenshots in chat and PR (#147263) docs(skills): clarify remote gog OAuth setup for Gateway hosts (#145945) test: replace idle account catalog waits with synchronization (#147228) feat(qa): preserve maturity decision context (#147219) feat(macos): clarify agent activity in native chat (#147197) fix(runtime): complete Bun compatibility follow-ups (#147085) fix(ui): release closed chat panes after queued updates (#147240) ...
* fix(install): use system Node for FreeBSD CLI setup * test(install): use system Bash for sourced macOS fixtures
Related: #45233
What Problem This Solves
The bundled CLI installer rejects FreeBSD and would otherwise request a Node archive that Node.js does not publish.
User Impact
FreeBSD CLI setup can use an installed, supported Node/npm runtime. The installer reports missing prerequisites and preserves existing runtime links when validation fails. Install the documented FreeBSD packages first; private
--node-onlyrecovery remains unavailable on FreeBSD.Why This Change Was Made
FreeBSD owns Node through its package manager. The installer reuses its existing Node version, npm startup, and SQLite capability checks before linking the system runtime into the private prefix. Canonical link targets allow subsequent installs to reuse those links. Linux, macOS, Alpine, and service branches retain their existing behavior.
This is one slice of FreeBSD support; it does not claim complete desktop support or add permanent CI workflows.
Evidence
Current signed head:
8e865b56d93c91b07b7953ba681f3df5df37ae32. The latest commit only corrects fixture shell selection: macOS uses/bin/bashwhen sourcing; other hosts retain PATH-resolved Bash. This matches the installer's existing macOS guard and preserves FreeBSD Bash discovery. The late review finding was reproduced with actual Homebrew Bash 5.3.12 before correction. Production installer blob5684454aaf6022905039b70937c312b4d86ff1bcis unchanged from the runtime proofs below.8e865b56d93c91b07b7953ba681f3df5df37ae32:node scripts/run-vitest.mjs test/scripts/install-cli.test.ts test/scripts/install-cli.freebsd.test.tspassed 126 tests, with one Darwin-only skip. The original completed client receipt was inspected and binds the full source SHA, reviewed driver, frozen dependency install, clean tracked source before/after, exit 0, and the stopped disposable Testbox. Backing lifecycle run.8e865b56d93c91b07b7953ba681f3df5df37ae32. With actual Homebrew Bash 5.3.15 first on PATH, all eight old-fixture cases failed through the installer sourcing guard. Restoring the corrected fixture passed all 127 tests with no skips, including the existing streamed-installer re-exec case. The terminal source pin, driver digest, expected failures, restored source, and final result were independently inspected.24480988b8a0dbed8938a2da65ff3f56e1012d4b, including the actual private-prefix CLI installer in Linux Docker and the sibling website installers on Debian, Fedora, macOS, and Windows.24480988b8a0dbed8938a2da65ff3f56e1012d4b: the parent rejects FreeBSD; packaged Node 24.20.0/npm install OpenClaw 2026.9.4; SQLite 3.53.4 preserves embedded NUL bytes; runtime alias reuse and a second complete install with that alias first on PATH both leave the CLI working.Normal PR CI passed at the current head; the canonical watcher and required GitHub check are green. Native maintainer preparation and merge are next. The temporary Mac proof workflow was removed in signed commit
1efb4cfed93a8f9a0e97c1476faba2e01d1a7148after independent verification of its result; only that workflow was deleted. Earlier native FreeBSD proof is attributed to its tested head and identical production bytes; it is not claimed as new-head macOS proof. The unrelated Workboard lint defect was fixed by #147203.