Skip to content

Commit eae19b1

Browse files
Rename CopilotClientOptions.remote -> enableRemoteSessions for cross-SDK consistency
Matches the C# API review rename in #1343 (EnableRemoteSessions on CopilotClientOptions). The wire-level RPC field stays 'remote' since that is the runtime's contract; only the SDK surface changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a48a63d commit eae19b1

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

nodejs/src/client.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export class CopilotClient {
235235
telemetry?: TelemetryConfig;
236236
baseDirectory?: string;
237237
sessionIdleTimeoutSeconds: number;
238-
remote: boolean;
238+
enableRemoteSessions: boolean;
239239
};
240240
private isExternalServer: boolean = false;
241241
private forceStopping: boolean = false;
@@ -382,7 +382,7 @@ export class CopilotClient {
382382
telemetry: options.telemetry,
383383
baseDirectory: options.baseDirectory,
384384
sessionIdleTimeoutSeconds: options.sessionIdleTimeoutSeconds ?? 0,
385-
remote: options.remote ?? false,
385+
enableRemoteSessions: options.enableRemoteSessions ?? false,
386386
};
387387
}
388388

@@ -1525,7 +1525,7 @@ export class CopilotClient {
15251525
);
15261526
}
15271527

1528-
if (this.options.remote) {
1528+
if (this.options.enableRemoteSessions) {
15291529
args.push("--remote");
15301530
}
15311531

nodejs/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ export interface CopilotClientOptions {
277277
* Ignored when connecting to an existing runtime via {@link RuntimeConnection.forUri}.
278278
* @default false
279279
*/
280-
remote?: boolean;
280+
enableRemoteSessions?: boolean;
281281

282282
/**
283283
* @internal Hook used by `joinSession()` to construct a client that talks

0 commit comments

Comments
 (0)