Repository navigation
feat(hosting): resolve explicit, standalone and service connections as the CLI does (#850) - #921
Merged
Merged
Conversation
Blind-Striker
force-pushed
the
feat/850-connection-resolver
branch
2 times, most recently
from
November 16, 2026 11:49
43ad725 to
deb7788
Compare
…her's helper (#850) The live standalone test awaited the public Exited task through the connection's Server property, which VSTHRD003 rejects on net472. It now waits on the owned child's exit through ChildExitObservation, as the launcher lifecycle proofs do, and still asserts the process has ended.
…ry runtime (#850) net472 formats an ArgumentException message with its parameter on a new line, so the refusal tests compare against the runtime's own rendering and pin ParamName separately. Directory enumeration has no defined order, so the migration test compares the config directory's files as a set.
…ck (#850) RouteRefusal already checks the exact type, the parameter name and the runtime's own message rendering; the three refusal tests use it instead of repeating those assertions.
Blind-Striker
force-pushed
the
feat/850-connection-resolver
branch
from
November 16, 2026 13:48
deb7788 to
fedc3de
Compare
Collaborator
Author
|
net472 mutation replay on Windows: 76 of 76 killed at head
|
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.
Closes #850
Summary
OpenCodeServer.ResolveAsyncresolves a connection the way opencode's CLI does: an explicit endpoint, an owned standalone server, or the shared background service. It follows the CLI's precedence, including the saveddisabledflag.OnServerVersionMismatch.ServerVersion.ServiceOperations. Reconnect and restart use the resolve-time snapshot, with a best-effort handoff of persistent terminals.Background-service and resolved-connection cancellation doors live in
Support/ServiceCancellationDoors.cs;CancellationIdentityTests.csretains their table rows, classifier mappings and enumerating guard, alongside the other cancellation cases.The public API adds 43 lines and removes none. All of it is the approved surface.
Review
Three independent reviews covered the whole diff, lifetime and disposal, and a fresh read. The production code matched the plan and upstream, and the reviews found these gaps, all fixed in this PR:
One suggestion was kept as it is: the
CreateClientrefusal text, because an existing test pins it and that text is shared withOpenCodeServer.CreateClient.Verification