433
434
private async _createSession(plan: ICopilotCreateSessionLaunchPlan, config: CopilotSessionLaunchConfig, sandboxConfig: ISdkSandboxConfig | undefined): Promise<CopilotSessionWrapper> {
436
>
...config,
437
>
sessionId: plan.sessionId,
438
>
streaming: true,
439
>
model: plan.model?.id,
440
>
reasoningEffort: resolveCopilotReasoningEffort(plan.model, this._configurationService, this._logService, plan.sessionId),
441
>
contextTier: getCopilotContextTier(plan.model, plan.longContextWindow, plan.freeLongContext),
442
>
...(plan.resolvedAgentName ? { agent: plan.resolvedAgentName } : {}),
443
>
workingDirectory: plan.workingDirectory?.fsPath,
444
>
});
445
await this._applySandboxConfig(raw, sandboxConfig, plan.sessionId);
446
return new CopilotSessionWrapper(raw);
448
449
/**