Skip to content

fix(install): use system Node for FreeBSD CLI setup - #147204

Merged
vincentkoc merged 2 commits into
mainfrom
fix/freebsd-cli-system-node
Sep 13, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/freebsd-cli-system-node

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 13, 2026 •

Copy link
Copy Markdown
Member

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-only recovery 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/bash when 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 blob 5684454aaf6022905039b70937c312b4d86ff1bc is unchanged from the runtime proofs below.

  • Independent source review and scoped autoreview: no actionable findings. Bash syntax, focused formatting/lint, and diff checks passed.
  • Exact-head Crabbox/Blacksmith at 8e865b56d93c91b07b7953ba681f3df5df37ae32: node scripts/run-vitest.mjs test/scripts/install-cli.test.ts test/scripts/install-cli.freebsd.test.ts passed 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.
  • Exact-head macOS 15 proof, attempt 1, passed on 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.
  • Existing installer smoke workflow passed at 24480988b8a0dbed8938a2da65ff3f56e1012d4b, including the actual private-prefix CLI installer in Linux Docker and the sibling website installers on Debian, Fedora, macOS, and Windows.
  • Native FreeBSD 15.1 fresh and repeat installation passed at 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.
  • Native proof covers released-npm installation and runtime selection. It does not claim a complete Git source build, service operation, or every native addon capability. Portable fixtures ran on Linux and macOS; the FreeBSD VM ran the real installer.
  • Node.js 24.19.0 published checksums contain no FreeBSD binary archive. FreeBSD owns Node and npm separately.

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 1efb4cfed93a8f9a0e97c1476faba2e01d1a7148 after 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.

@vincentkoc vincentkoc self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 13, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 13, 2026 17:09
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:38 PM ET / 18:38 UTC (Revision 6).

ClawSweeper review

What this changes

The 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
Reviewed head: 8e865b56d93c91b07b7953ba681f3df5df37ae32

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused implementation with strong platform proof and no remaining actionable findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): Native FreeBSD proof exercises the actual installer through fresh installation, runtime-alias reuse, and repeat installation using production bytes identical to this head. The exact-head macOS workflow resolves the prior fixture blocker; immutable drivers and successful steps were inspected, although raw log download was blocked.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): Native FreeBSD proof exercises the actual installer through fresh installation, runtime-alias reuse, and repeat installation using production bytes identical to this head. The exact-head macOS workflow resolves the prior fixture blocker; immutable drivers and successful steps were inspected, although raw log download was blocked.
Evidence reviewed 9 items Current main still lacks FreeBSD installation: At the fetched main revision, os_detect accepts Darwin and Linux and rejects other operating systems; install_node has no FreeBSD system-runtime branch.
Latest release also rejects FreeBSD: The installer source at the supplied v2026.9.4 release commit likewise accepts only Darwin and Linux. This capability is neither present on the reviewed main snapshot nor established as shipped.
Validation precedes FreeBSD runtime publication: The new branch rejects private Node recovery, discovers system executables, applies the existing version/npm/SQLite checks, resolves canonical targets, and only then publishes links. Existing Linux and macOS branches retain their selection behavior.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +142, Docs +8, Other +27. Total +177 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 142 0 +142
Docs 1 17 9 +8
Config 0 0 0 0
Generated 0 0 0 0
Other 1 32 5 +27
Total 3 191 14 +177

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This is a bounded installer capability for FreeBSD with native installation proof and no demonstrated urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): Native FreeBSD proof exercises the actual installer through fresh installation, runtime-alias reuse, and repeat installation using production bytes identical to this head. The exact-head macOS workflow resolves the prior fixture blocker; immutable drivers and successful steps were inspected, although raw log download was blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient. Native FreeBSD proof exercises the actual installer through fresh installation, runtime-alias reuse, and repeat installation using production bytes identical to this head. The exact-head macOS workflow resolves the prior fixture blocker; immutable drivers and successful steps were inspected, although raw log download was blocked.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • jason-allen-oneal: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (5 earlier review cycles)
  • reviewed 2026-09-13T17:17:31.566Z sha 2448098 :: blocked before merge. :: none
  • reviewed 2026-09-13T17:38:22.642Z sha 2448098 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T17:58:15.039Z sha 2448098 :: blocked before merge. :: [P2] Use system Bash for the sourced fixture on macOS
  • reviewed 2026-09-13T18:10:31.509Z sha 2448098 :: needs changes before merge. :: [P2] Use system Bash for the sourced fixture on macOS
  • reviewed 2026-09-13T18:25:45.901Z sha 8e865b5 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@vincentkoc vincentkoc closed this Sep 13, 2026
@vincentkoc vincentkoc reopened this Sep 13, 2026
@vincentkoc vincentkoc closed this Sep 13, 2026
@vincentkoc vincentkoc reopened this Sep 13, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 13, 2026
@vincentkoc
vincentkoc merged commit c2eb6a2 into main Sep 13, 2026
166 of 168 checks passed
@vincentkoc
vincentkoc deleted the fix/freebsd-cli-system-node branch September 13, 2026 18:43
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
* fix(install): use system Node for FreeBSD CLI setup

* test(install): use system Bash for sourced macOS fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant