Skip to content

Fix persistent SSH disconnect/reconnect wedge - #10328

Merged
austinywang merged 5 commits into
mainfrom
issue-10160-pssh-reconnect-wedge
Aug 19, 2026
Merged

austinywang merged 5 commits into
mainfrom
issue-10160-pssh-reconnect-wedge

Conversation

@austinywang

@austinywang austinywang commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Closes #10160

Summary

Persistent-SSH reconnect could respawn a preserved pane attach wrapper while the replacement management controller was still being cleaned up or installed. The wrapper raced that handoff, received a transient remote-daemon-unavailable response, and left the workspace without a live attach path.

Fix

  • Gate persistent-SSH pane reattachment on the controller connection state.
  • Let the reconnect transition install the replacement controller before replaying preserved panes.
  • Notify PTY-controller waiters at the actual asynchronous controller-install boundary.
  • Reconcile a connected state received during the handoff after controller installation.

Verification

  • Regression test is the first commit: manualReconnectWaitsForControllerBeforeReattachingPersistentPanel covers disconnect → reconnect ordering, preserved placeholder ownership, delayed controller installation, and final reattachment.
  • Hosted focused run 32133682176 passed all 13 RemoteSessionCleanupLifecycleTests tests.
  • Local parse, diff, and test-wiring checks pass; no local app build or Xcode test was run.
  • Full CI run 32294102775 was retried once. Remaining failures are unrelated to this diff: the existing BrowserPanelView.swift warning-budget overage (10 vs 9), two timeouts in CmxConnectivityPeerSessionTests, and pre-existing browser/CLI app-host flakes.

Localization audit: no user-facing strings changed.

Loading
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.

persistent-SSH: workspace disconnect → reconnect wedges connection (daemon "unavailable") until app restart

1 participant