fix: improve SSH process discovery and sleep/wake recovery#846
Merged
Conversation
c0ad9e6 to
02ba4b8
Compare
Add port-change detection to SshProcessMonitor so backoff resets when VS Code writes a new port after reconnection. Extract label formatter re-registration into a shared helper and trigger it (along with WebSocket reconnection) when the SSH process PID changes. Also makes the CLI version mismatch prompt modal.
Bump find-process to 2.1.1 so process discovery uses ss -> netstat -> lsof on Linux and netstat -> lsof on macOS. Previously, systems without netstat could not resolve the SSH PID, breaking network info display and log viewing.
02ba4b8 to
ec63c8a
Compare
Server-side heartbeat (15s ping) already handles dead connections. WebSockets use a separate HTTPS path from the SSH tunnel, so PID changes don't reliably indicate WebSocket issues.
Replace 3 timing-dependent real-timer tests with one fake-timer test that covers port-change detection, debug logging, and backoff reset.
DanielleMaywood
approved these changes
Mar 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
find-processto 2.1.1: usesss->netstat->lsofon Linux,netstat->lsofon macOS, fixing systems wherenetstatwas unavailable and the SSH PID could not be resolved (broke network info display and log viewing).Closes #845