Skip to content

fix: improve SSH process discovery and sleep/wake recovery#846

Merged
EhabY merged 5 commits intomainfrom
feat/ssh-monitor-improvements
Mar 19, 2026
Merged

fix: improve SSH process discovery and sleep/wake recovery#846
EhabY merged 5 commits intomainfrom
feat/ssh-monitor-improvements

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Mar 17, 2026

Summary

  • Detect SSH port changes in the Remote SSH log to reset discovery backoff after sleep/wake.
  • Re-register the label formatter when the SSH PID changes.
  • Bump find-process to 2.1.1: uses ss -> netstat -> lsof on Linux, netstat -> lsof on macOS, fixing systems where netstat was unavailable and the SSH PID could not be resolved (broke network info display and log viewing).

Closes #845

@EhabY EhabY self-assigned this Mar 17, 2026
@EhabY EhabY force-pushed the feat/ssh-monitor-improvements branch from c0ad9e6 to 02ba4b8 Compare March 17, 2026 17:08
EhabY added 3 commits March 18, 2026 16:11
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.
@EhabY EhabY force-pushed the feat/ssh-monitor-improvements branch from 02ba4b8 to ec63c8a Compare March 18, 2026 13:11
EhabY added 2 commits March 18, 2026 23:38
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.
@EhabY EhabY merged commit abf2652 into main Mar 19, 2026
6 checks passed
@EhabY EhabY deleted the feat/ssh-monitor-improvements branch March 19, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SSH monitor: improve process discovery and sleep/wake recovery

2 participants