GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(ssh): an incompatible remote node is no longer reported as missing by juliusmarminge · Pull Request #35662 · pingdotgg/t3code

Conversation

@juliusmarminge

@juliusmarminge juliusmarminge commented Nov 12, 2026

Copy link
Copy Markdown
Member

In the SSH launch script (packages/ssh/src/tunnel.ts), any ensure_remote_node_path failure printed 'Remote host is missing node on PATH…'. That included a node that exists but fails the engine range check, which has already written 'Remote node X does not satisfy required range Y.' to stderr, so SshCommandError carried both lines. The missing-node line is now printed only when command -v node finds no node. The script still exits 1 in both cases. Only desktop development builds (nodeScriptPath + nodeEngineRange) reach this path. No regex or parser was added.

Fixes #35583

Reproduction on main

On origin/main 4099e62, after vp i, ran the reporter's repro.sh unchanged with a real Node 18.20.8 (from nodejs.org) and Node 24.22.1, under /bin/dash, with NVM_DIR unset. old-path: discovery exit=1, selected v18.20.8, stderr 'Remote node 18.20.8 does not satisfy required range ^22.16 || ^23.11 || >=24.10.'; launchOrReuseRemoteServer failed with SshCommandError exit=1 whose message held that line AND 'Remote host is missing node on PATH. Install Node or configure a supported version manager for non-interactive shells.' compatible-path control: discovery exit=0 selected v24.22.1; launch succeeded (kind=external, port matched). Also added a vitest case that runs the real launch script in a local shell with a fake remote node on $HOME/.volta/bin that fails the engine check; it fails on main because the message includes 'missing node on PATH'.

Evidence

Being captured: before and after in the real app. This section is filled in before the pull request can merge.

Tests

Ran vp test run src/tunnel.test.ts -t 'engine range' in packages/ssh: it failed before the fix and passes after. A full direct run of src/tunnel.test.ts: 23 passed, 1 failed ('concurrent launches on one remote home record the server that owns it', 5000ms timeout); it fails the same way on the base without the fix. vp run check:changed passed: format, lint, knip, typecheck of 5 packages, and tests in 2 files (26 passed).

Not in this change

  • The remote runner's dev path (ensure_remote_node_path || true then command -v node) still runs a node that fails the engine check instead of rejecting it.
  • The 'concurrent launches on one remote home' tunnel test times out at 5000ms when run directly on this VM, also on the base without the fix.

AI-assisted; verified with the tests and tools listed above.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
juliusmarminge added 2 commits November 12, 2026 20:16
@juliusmarminge
test(ssh): an incompatible remote node is not reported as missing
4592380
Fails on main: the dev SSH launch adds 'Remote host is missing node on PATH'
after the engine-range rejection. Reproduces #35583.

AI-assisted; verified with the tests and tools listed above.
@juliusmarminge
fix(ssh): an incompatible remote node is no longer reported as missing
b4d0053
The dev SSH launch printed 'Remote host is missing node on PATH' after any
Node discovery failure, including a node that exists but fails the engine
range check and has already printed the version mismatch. Print the
missing-node line only when no node is on PATH.

Fixes #35583

AI-assisted; verified with the tests and tools listed above.
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 12, 2026
@macroscopeapp

macroscopeapp Bot commented Nov 12, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at b4d0053

Macroscope's review found this PR approvable — SSH launch failures now distinguish an incompatible Node version from a missing Node executable. The change only adjusts error reporting; compatibility checks and launch failure behavior remain unchanged.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 12, 2026
View reviewed changes
@juliusmarminge

juliusmarminge commented Nov 12, 2026

Copy link
Copy Markdown
Member Author

Thanks for this. Main has the change since #35607.

Compared the full diff of #35662 with the merged implementation and regression test: main has the same command-discovery guard, preserves the incompatible-version diagnostic and exit status 1, and still reports genuinely missing Node. Main also covers both failure cases, making this PR redundant.

Closing as superseded.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: Development SSH launch reports an incompatible remote Node as missing from PATH

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.