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
docs(hosting): CreateClient's summary and refusal message overstate the identity rule #950
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