Skip to content

Launcher: no warning when the server reports a version other than the SDK's pin #291

Open

Description

@Blind-Striker

What

Against a 2.0.27 server on PATH, the SDK started it and ran with no warning, while the package is pinned to 2.0.29 (spec/SNAPSHOT.md). A consumer whose installed CLI lags the SDK's pin gets no signal that the server is off-pin until something fails.

Found by the default-launch check on WSL and macOS before the global CLIs were upgraded.

Upstream (pinned v2.0.29)

Upstream's CLI checks the server it connects to with a status call bounded at 5 seconds, and warns on a version mismatch (server-connection.ts:24-39).

Current canon

OpenCodeServer.ResolveAsync with an explicit endpoint compares the reported version ordinally against the pinned release. A mismatch invokes OnServerVersionMismatch once and resolution continues; a null callback is silent, and a callback exception propagates (#921; docs/architecture/client-runtime.md, explicit-endpoint door and version-warning decision).

Proposed

The explicit-endpoint comparison and warning channel are settled. Standalone OpenCodeServer.StartAsync still has no reported server version: the readiness line supplies none, and a standalone connection's ServerVersion is null (docs/architecture/client-runtime.md, standalone start and connection resolution). Whether to add mismatch reporting for standalone starts remains a maintainer decision.

Source: internal DevEx evaluation of 0.9.0-preview.10, default-launch follow-up, 2026-10-14 (finding DX-25).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions