Skip to content

Isolate every remote connection's permanent failure without an option - #951

Merged
thesiti92 merged 0 commit into
remote/9-source-windowsfrom
remote/11-isolate-failures
Oct 6, 2026
Merged

thesiti92 merged 0 commit into
remote/9-source-windowsfrom
remote/11-isolate-failures

Conversation

@thesiti92

Copy link
Copy Markdown
Contributor

Drops isolatePermanentFailure. Every PersistentConnection now keeps a permanent failure to itself: a failed initial connection no longer sets upstream's window-wide flag, and a Management connection's reconnection failure is no longer fatal to the window. This removes the connection option, the IRemoteExtensionHostDataProvider field and its forwarding, and both call sites in reviewRemoteHost.ts. The upstream changes in remoteAgentConnection.ts are now three lines.

The only behaviour change is in Source windows. When the Management connection fails, the extension host connection is no longer ended at the same moment. It ends on its own reconnect, which fails for the same cause at about the same time. No other code reads the static failure state; tunnels never create a PersistentConnection.

Test plan

  • reviewRemoteFailureIsolation.test.ts passes (5/5). With upstream's fatal Management reconnection put back, the first test fails.

@thesiti92
thesiti92 force-pushed the remote/11-isolate-failures branch 2 times, most recently from 48b1209 to 12e571c Compare October 5, 2026 23:18
@thesiti92
thesiti92 force-pushed the remote/9-source-windows branch 3 times, most recently from 6a50048 to 4c2c1ae Compare October 6, 2026 02:46
@thesiti92 thesiti92 closed this Oct 6, 2026
@thesiti92
thesiti92 force-pushed the remote/11-isolate-failures branch from 12e571c to 1214041 Compare October 6, 2026 03:46
@thesiti92
thesiti92 merged commit 1214041 into remote/9-source-windows Oct 6, 2026
@thesiti92
thesiti92 force-pushed the remote/9-source-windows branch from 4c2c1ae to 1214041 Compare October 6, 2026 03:46
@thesiti92
thesiti92 deleted the remote/11-isolate-failures branch October 6, 2026 03:46
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.

1 participant