Repository navigation
fix(daemon): distinguish shared and embedded SQLite in system Node warning - #107990
Conversation
904f8aa to
5f12f1e
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 16, 2026, 3:53 AM ET / 07:53 UTC. Summary PR surface: Source +14, Tests +25. Total +39 across 2 files. Reproducibility: yes. The submitted current-main daemon-install transcript reaches the misleading warning, and the source path plus the genuine shared-build evidence from the merged sibling fix establish the affected condition with high confidence. Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the narrow probe and warning update after required checks complete, retaining focused coverage for both shared and embedded SQLite builds. Do we have a high-confidence way to reproduce the issue? Yes. The submitted current-main daemon-install transcript reaches the misleading warning, and the source path plus the genuine shared-build evidence from the merged sibling fix establish the affected condition with high confidence. Is this the best way to solve the issue? Yes. Carrying the build fact through the existing self-contained candidate-Node probe is the narrowest reliable fix and preserves the current embedded-build behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against fcd2a784f45f. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +14, Tests +25. Total +39 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (1 earlier review cycle)
|
5f12f1e to
2be0a02
Compare
|
Re-review proof for the two rank-up items. Head: Focused tests (after rebase, Node 24.15.0): Before/after transcript (real
|
|
🦞👀 Command router queued. I will update this comment with the next step. |
2be0a02 to
cf979be
Compare
|
@clawsweeper re-review Head moved to cf979be (rebased onto latest main to pick up ca2d4d7, which fixes the main-broken auto-reply queue state test that failed CI on the previous head; the security-sensitive-guard failure was a CI-side 500 flake). The shared-SQLite proof above remains valid on this head — the PR diff is unchanged (rebase-only). |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
This is a follow-up to #107771 — extends the same Node shared-SQLite warning fix to the daemon-install and doctor gateway-services paths. Why ready to merge:
The change replaces the shared-SQLite probe timeout constant with the same bounded approach used in the already-merged runtime fix. Existing behavior is preserved for embedded SQLite; only the misleading shared-SQLite error message is corrected. Ready for maintainer review. |
|
Merged via squash.
|
What Problem This Solves
#107771 fixed the runtime error message when Node is built with
node_shared_sqlite=true. The same misleading wording exists in the daemon-install / doctor gateway-services warning path: when a system Node uses a shared SQLite library that is not WAL-reset-safe,renderSystemNodeWarningstill tells the user to "Install Node 24.15+...", which will not upgrade the system library.Why This Change Was Made
NODE_RUNTIME_PROBEnow detectsprocess.config.variables.node_shared_sqlite(handling GYP string values) and reports it alongsidenodeVersionandsqliteVersion.NodeRuntimeInfo/SystemNodeInfocarry the newnodeSharedSqlitefield.renderSystemNodeWarningbranches the remediation:This keeps the daemon install warning consistent with the runtime error fix in #107771.
User Impact
Users on distro-packaged Node builds (Kali, Debian, Ubuntu, Homebrew with shared SQLite, etc.) who see the daemon-install or
doctor gateway-serviceswarning will now get actionable remediation instead of being told to reinstall Node.Evidence
2be0a026c18rebased ontoupstream/main29475988dac(2026-07-16);node scripts/run-vitest.mjs src/daemon/runtime-paths.test.ts --runpasses 31/31 after the rebase.CI=true pnpm test src/commands/daemon-install-runtime-warning.test.ts src/commands/doctor-gateway-services.test.ts src/commands/daemon-install-helpers.test.ts src/commands/node-daemon-install-helpers.test.ts --runpasses (100/100).pnpm exec oxlint --config .oxlintrc.json src/daemon/runtime-paths.ts src/daemon/runtime-paths.test.tsclean.openclaw daemon install --runtime nodeworkflow on a host whose system libsqlite3 is WAL-reset-unsafe (3.26.0): a real Node 24.15.0 binary probed as the system candidate with its two build-flag-derived facts (node_shared_sqlite,sqlite_version()) simulated via aNODE_OPTIONSpreload, because no--shared-sqliteNode ≥ 22.22.3 can run on this glibc 2.28 box (details and raw probe outputs in the proof comment below).upstream/main):System Node 24.15.0 at /usr/local/bin/node uses SQLite 3.26.0, which is not WAL-reset-safe. ... Install Node 24.15+ (recommended) or Node 22.22.3+ from nodejs.org or Homebrew.System Node 24.15.0 at /usr/local/bin/node uses shared system SQLite 3.26.0, which is not WAL-reset-safe. ... Upgrade the system SQLite library to 3.51.3+ (or patched 3.50.7+/3.44.6+), or install a Node build that embeds a safe version.System Nodewarning; service installs cleanly.Fixes no open issue; this is a follow-up to #107771.