From 58857323c49a7db26f9b016883a19f1a9e1b1504 Mon Sep 17 00:00:00 2001 From: examon Date: Wed, 29 Jul 2026 20:48:43 +0000 Subject: [PATCH] docs: fix non-compiling Rust external-transport example The Rust tab of "Connecting the SDK to the external server" constructed `Transport::External { host, port }` and omitted the variant's third field, so the example failed to compile: error[E0063]: missing field `connection_token` in initializer of `github_copilot_sdk::Transport` `connection_token` was added to the variant after the example was written. `None` is the value that matches this section: the server it tells you to start (`copilot --headless --port 4321`) has no token, and the other Rust example that constructs this variant, in docs/setup/multi-tenancy.md, already passes `None`. --- docs/getting-started.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/getting-started.md b/docs/getting-started.md index 5f0ce835d..b4dc5d6c2 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -2053,6 +2053,7 @@ let mut options = ClientOptions::default(); options.transport = Transport::External { host: "localhost".to_string(), port: 4321, + connection_token: None, }; let client = Client::start(options).await?;