fix(macos): align minimum Node.js version with runtime guard (22.12.0)#14666
fix(macos): align minimum Node.js version with runtime guard (22.12.0)#14666sumleo wants to merge 4 commits intoopenclaw:mainfrom
Conversation
The macOS RuntimeLocator.swift uses minNode of 22.0.0 while the actual minimum enforced by runtime-guard.ts and package.json engines is 22.12.0. Users with Node 22.0.0-22.11.x see the macOS error message suggesting they have an incompatible version, install what they believe is a compatible version, then hit a different error from the runtime guard. Update minNode and error messages to 22.12.0.
Wrap single-line computed property bodies onto multiple lines to satisfy the swiftformat wrapPropertyBodies rule.
|
@cpojer Could you help review this PR? Thanks! |
|
CI failing (macos): SwiftFormat lint failing across many files (100/204 files require formatting). Fix: run the repo SwiftFormat/formatting step for apps/macos (whatever CI uses), commit the formatting changes, and rerun. |
|
The failing check is Near the end of the job:
Next steps:
I didn’t push changes because this looks like a large formatting sweep / tooling mismatch that should be owned by the PR author/maintainer. |
Run swiftformat with the repo .swiftformat config to fix 100/204 files that had pre-existing formatting violations (sortImports, wrapPropertyBodies, blankLinesBetweenScopes, docComments, etc.).
bfc1ccb to
f92900f
Compare
|
This pull request has been automatically marked as stale due to inactivity. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Superseded by #45640. I rebuilt this as a clean replacement PR on current Credit to @sumleo for the original report and fix direction here. Replacement PR: #45640 |
Summary
RuntimeLocator.swiftusesminNode = RuntimeVersion(major: 22, minor: 0, patch: 0)while the actual minimum enforced byruntime-guard.tsandpackage.jsonengines field is>=22.12.0.>=22.0.0instead of>=22.12.0.Fix
minNodetoRuntimeVersion(major: 22, minor: 12, patch: 0)>=22.0.0to>=22.12.0Test plan
Greptile Overview
Greptile Summary
This PR updates the macOS runtime locator to require Node.js
>=22.12.0(instead of>=22.0.0) and adjusts the user-facing error strings to match. The change makes the macOS app’s preflight check consistent with the repository’s runtime guard / engines constraints, preventing users on Node22.0.0–22.11.xfrom getting a misleading “supported” message before failing later.Confidence Score: 5/5