You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 80f8711
Browse filesBrowse the repository at this point in the historyBrowse files
Reuse the toolchain-report parser and wording for the engine-range check
Drop parseNodeVersion in favor of parseToolchainReport().nodeVersion, and
source the out-of-range message from formatMissingToolsReason so the two
paths can't give conflicting nvm advice (the resolved node path is still
appended to pin down which install needs switching).
A version mismatch is deterministic between back-to-back preflights, so
return retryLimit: 1 and surface the dialog on the first attempt instead
of burning the default five rounds; the fail-closed missing-version case
keeps the default allowance for one-off probe hiccups.
The probe also no longer pays a second Node cold start per preflight:
the existing heredoc invocation now reports nodeVersion over fd 3.
// A range is required but the probe didn't report a version --
499
487
// fail closed rather than silently letting an unchecked Node
500
488
// through (the exact failure class this check exists to catch).
501
-
// Fatal/bounded like the mismatch case below, so a one-off probe
502
-
// hiccup still gets a few retries before falling back.
489
+
// Fatal/bounded with the default retry allowance, so a one-off
490
+
// probe hiccup still gets a few retries before falling back.
503
491
return{
504
492
ok: false,
505
493
reason: `Could not determine the WSL Node.js version, which is required to satisfy ${requiredRange}. The version probe did not report a version; please report this if it persists.`,
`WSL Node.js v${nodeVersion} does not satisfy the required range ${requiredRange}.`;
510
506
return{
511
507
ok: false,
512
-
reason: `Found Node.js v${nodeVersion} at ${nodePath}, which does not satisfy the required range ${requiredRange}. Activate a supported version (e.g. nvm alias default 22 && nvm use 22) and restart T3 Code.`,
0 commit comments