Skip to content

docs(hosting): CreateClient's summary and refusal message overstate the identity rule #950

Closed

Description

@Blind-Striker

OpenCodeServer.CreateClient's XML summary (src/OpenCode.Sdk/Hosting/OpenCodeServer.cs) says "setting Endpoint, Username, or Password there is refused", and the InvalidOperationException it throws (src/OpenCode.Sdk/Hosting/Internal/ClientIdentityComposer.cs) says to leave them unset and to configure "behavior members such as Location only". The check is on the final values: Endpoint and Password must stay null and Username must stay opencode, so setting Username = "opencode" is accepted, and every non-identity option (headers, the HTTP handler, the timeouts, MediaReferences) is copied, not only Location. The client runtime canon states the precise rule.

A reader of the summary or the exception message expects any assignment to Username to throw, and may think options other than Location are dropped.

Done when the summary and the exception message state the final-value rule and that the other configured options are carried into the client. Found while reviewing the 2.0.0 documentation fixes; the text predates them.

Activity

  1. added this to the Next milestone on Nov 17, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions