You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hosting: a connection-mode resolver with reconnect and restart (upstream's ServerConnection.resolve) #850
A connection-mode resolver like upstream CLI's ServerConnection.resolve. It chooses between an explicit endpoint, a private server and the shared background service, applies the startup and version policy, and returns reconnect and restart operations.
Upstream at the pin (v2.3.0)
packages/cli/src/services/server-connection.ts:27, resolve. Its managed service's restart stops with a terminal handoff and then ensures (:68-77).
The SDK today
The underlying doors exist: explicit construction, StartAsync, DiscoverAsync and EnsureAsync. Every host writes the choice between them itself. A terminal-preserving restart needs #842.
Done when
A public resolver follows upstream's mode selection and policy.
Added to this issue's scope (the maintainer, 2026-11-14): the server-version warning.
Upstream at the pin (v2.3.0, a6b15d33):packages/cli/src/services/server-connection.ts:40-48. For an explicit endpoint, resolve reads server.info with a 5-second deadline and, when health.version !== OPENCODE_VERSION, warns: "Server at … has version …; this client is …. Continuing anyway."
The SDK today:docs/architecture/client-runtime.md:875-877 says "the SDK carries no version comparand of its own". The pinned release is known at build time (spec/SNAPSHOT.md), so the comparand exists.
Additional done-when for the resolver:
The resolver compares the server's reported version with the pinned release, and warns and continues the way upstream does. The PR names the .NET channel for the warning, with its reason.
The client-runtime.md sentence about having no comparand is corrected.
Activity
Blind-Striker commentedon Nov 14, 2026
Added to this issue's scope (the maintainer, 2026-11-14): the server-version warning.
v2.3.0,a6b15d33):packages/cli/src/services/server-connection.ts:40-48. For an explicit endpoint,resolvereadsserver.infowith a 5-second deadline and, whenhealth.version !== OPENCODE_VERSION, warns: "Server at … has version …; this client is …. Continuing anyway."docs/architecture/client-runtime.md:875-877says "the SDK carries no version comparand of its own". The pinned release is known at build time (spec/SNAPSHOT.md), so the comparand exists.Additional done-when for the resolver:
client-runtime.mdsentence about having no comparand is corrected.feat(hosting): read the service disabled flag (#850)
refactor(hosting): share located service cores and carry registration…
feat(hosting): expose the explicit version mismatch context (#850)
feat(hosting): add connection ownership and managed operations (#850)
feat(hosting): probe explicit endpoints with a pipeline-clock deadline (
feat(hosting): resolve explicit standalone and managed connections (#850
test(hosting): register and lock the resolver surface (#850)
test(hosting): exercise resolved connections against the pinned server (
docs(hosting): document resolution snapshots and consumer reconnection (
test(hosting): close mutation oracles without new clones (#850)
fix(hosting): close resolver proof gaps and protocol-status parity (#850
test(hosting): observe the standalone server's exit through the launc…
31 remaining items
refactor(hosting): share located service cores and carry registration…
feat(hosting): expose the explicit version mismatch context (#850)
feat(hosting): add connection ownership and managed operations (#850)
feat(hosting): probe explicit endpoints with a pipeline-clock deadline (
feat(hosting): resolve explicit standalone and managed connections (#850
test(hosting): register and lock the resolver surface (#850)
test(hosting): exercise resolved connections against the pinned server (
docs(hosting): document resolution snapshots and consumer reconnection (
test(hosting): close mutation oracles without new clones (#850)
fix(hosting): close resolver proof gaps and protocol-status parity (#850
test(hosting): observe the standalone server's exit through the launc…
test(hosting): compare refusals and file listings the same way on eve…
test(hosting): assert resolve refusals through the shared refusal che…
fix(hosting): read resolution config through the store (#850)