MCPcopy Index your code
hub / github.com/github/copilot-sdk / configDefaultsForMode

Method configDefaultsForMode

nodejs/src/client.ts:1179–1195  ·  view source on GitHub ↗

Mode-specific defaults spread under the caller's config (app values win).

()

Source from the content-addressed store, hash-verified

1177
1178 /** Mode-specific defaults spread under the caller's config (app values win). */
1179 private configDefaultsForMode(): Partial<SessionConfigBase> {
1180 if (this.options.mode === "empty") {
1181 return {
1182 enableSessionTelemetry: false,
1183 mcpOAuthTokenStorage: "in-memory",
1184 skipEmbeddingRetrieval: true,
1185 embeddingCacheStorage: "in-memory",
1186 enableOnDemandInstructionDiscovery: false,
1187 enableFileHooks: false,
1188 enableHostGitOperations: false,
1189 enableSessionStore: false,
1190 enableSkills: false,
1191 memory: { enabled: false },
1192 };
1193 }
1194 return {};
1195 }
1196
1197 /**
1198 * Returns the systemMessage config to use, adjusted for the current mode.

Callers 2

createSessionMethod · 0.95
resumeSessionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected