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
* Add cloud session config support
Expose the session.create cloud option across SDK clients and forward repository metadata to the runtime.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Address cloud session review feedback
Remove the manual changelog entry and standardize Rust doc examples on the published crate name.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@@ -119,6 +119,92 @@ while let Ok(event) = events.recv().await {
119
119
120
120
<!-- tabs:end -->
121
121
122
+
### Cloud sessions
123
+
124
+
Set the create-session `cloud` option to create a remote session in the cloud instead of a local session. You can include repository metadata to associate the cloud session with a GitHub repository.
Use `session.rpc.remote.enable()` to start remote access mid-session, and `session.rpc.remote.disable()` to stop it. This is equivalent to the CLI's `/remote on` and `/remote off` commands.
@@ -199,5 +285,6 @@ The remote URL can be rendered as a QR code for easy mobile access. The SDK prov
199
285
## Notes
200
286
201
287
* The `remote` client option only applies when the SDK spawns the CLI process. It is ignored when connecting to an external server via `cliUrl`.
288
+
* The `cloud` session option applies only to new sessions created with `session.create`; it is not used when resuming an existing session.
202
289
* If the working directory is not a GitHub repository, remote setup is silently skipped (always-on mode) or returns an error (on-demand mode).
203
290
* Remote sessions require authentication. Ensure `gitHubToken` or `useLoggedInUser` is configured.
0 commit comments