Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions nodejs/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1449,6 +1449,7 @@ export class CopilotClient {
remoteSession: config.remoteSession,
cloud: config.cloud,
expAssignments: config.expAssignments,
selfFetchManagedSettings: config.selfFetchManagedSettings,
});

const {
Expand Down Expand Up @@ -1660,6 +1661,7 @@ export class CopilotClient {
remoteSession: config.remoteSession,
openCanvases: config.openCanvases,
expAssignments: config.expAssignments,
selfFetchManagedSettings: config.selfFetchManagedSettings,
});

const { workspacePath, capabilities, openCanvases } = response as {
Expand Down
8 changes: 8 additions & 0 deletions nodejs/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2149,6 +2149,14 @@ export interface SessionConfigBase {
*/
gitHubToken?: string;

/**
* Opt-in: when true, the runtime self-fetches enterprise managed settings
* (bypass-permissions policy) at session bootstrap using the session's
* `gitHubToken`. The runtime calls `/copilot_internal/managed_settings`
* and enforces the result fail-closed before the first turn.
*/
selfFetchManagedSettings?: boolean;

/**
* When true, skips embedding-based retrieval for this session.
* Use in multitenant deployments to prevent cross-session information leakage
Expand Down
Loading