Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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 @@ -1472,6 +1472,7 @@ export class CopilotClient {
remoteSession: config.remoteSession,
cloud: config.cloud,
expAssignments: config.expAssignments,
selfFetchManagedSettings: config.selfFetchManagedSettings,
});

const {
Expand Down Expand Up @@ -1683,6 +1684,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 @@ -2189,6 +2189,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.
*/
Comment thread
joshspicer marked this conversation as resolved.
selfFetchManagedSettings?: boolean;

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