Repository navigation
refactor(cli): remove unsupported Node 24 cache workaround - #124271
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 15, 2026, 4:12 PM ET / 20:12 UTC. ClawSweeper reviewWhat this changesRemoves the obsolete Windows-specific compile-cache workaround, version parameters, and tests for Node 24.0–24.14 from the CLI entry cache path. Merge readinessKeep this maintainer-labeled PR open for normal exact-head CI and maintainer handling. The cleanup is correct: both supported entry paths reject Node 24.0–24.14 before any OpenClaw compile-cache decision, and no blocking patch or security finding was identified. Priority: P3 Review scores
Verification
How this fits togetherThe package launcher validates a runtime before it imports the compiled CLI, while the compiled entry also validates before cache respawn or enablement. The cache path then either keeps source checkouts cache-free or enables a scoped cache for packaged installs. flowchart LR
A[CLI command] --> B[Package launcher]
B --> C{Supported Node runtime?}
C -->|No| D[Clear version error]
C -->|Yes| E[Compile-cache setup]
G[Source checkout marker] --> E
E --> F[Compiled CLI runtime]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -37, Tests -100. Total -137 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one runtime floor ahead of both launcher and compiled-entry cache setup, then land this deletion once exact-head CI completes green. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR removes obsolete internal handling; the retained launcher fixture already covers the observable Node 24.14 rejection boundary. Is this the best way to solve the issue? Yes: the package launcher and compiled entry each enforce the same unsupported-runtime floor before their cache decisions, making the removed version-specific cache branch unreachable for supported execution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8f807ae912d4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready proof for
Production delta: -34 net lines. Tests/test support: -104 net lines. Unsupported Node 24.0-24.14 remains rejected by both launcher/runtime boundaries before compile-cache handling. No docs, changelog, schema, protocol, migration, or operator-state change. |
|
Merged via squash.
|
What Problem This Solves
The compile-cache entry path still carried a Windows workaround and tests for Node 24.0–24.14 even though those runtimes are now rejected before compile-cache handling. This left an unreachable production branch, version parser, test-support parameters, and four obsolete tests.
Why This Change Was Made
The early-Node-24 deadlock workaround is removed from
src/entry.compile-cache.ts. Compile cache is now enabled for packaged installs unless explicitly disabled, while no-cache respawn remains scoped to source checkouts. The supported-runtime guard and launcher continue rejecting Node 24 before 24.15.This PR is AI-assisted as part of the maintainer-requested repository test-value audit.
User Impact
No behavior changes on supported runtimes. Unsupported Node 24.0–24.14 installations still fail at the existing runtime floor instead of reaching compile-cache startup logic.
Evidence
node scripts/run-vitest.mjs src/entry.compile-cache.test.ts src/infra/runtime-guard.test.ts— 33 passednode scripts/run-vitest.mjs test/openclaw-launcher.e2e.test.ts— 37 passed, 1 skipped; includes real Node 24.14 rejection coveragepnpm build— passednode scripts/check-changed.mjs -- src/entry.compile-cache.ts src/entry.compile-cache.test-support.ts src/entry.compile-cache.test.ts— passed via the documented local fallback; core/test typechecks, lint, dead exports, boundaries, import cycles, and guards were greengit diff --check— passedProduction delta: -34 net lines. Test/test-support delta: -104 net lines. No docs, changelog, schema, protocol, migration, or operator-state change is required.