384
return this._createSession(plan, config, sandboxConfig);
385
}
387
>
let fallbackPlan = plan;
388
>
let fallbackConfig = config;
389
>
try {
390
>
const stopWatch = new StopWatch();
391
>
this._logService.trace(`[Copilot:${plan.sessionId}] Calling SDK resumeSession...`);
392
>
const raw = await plan.client.resumeSession(plan.sessionId, config);
393
this._logService.trace(`[Copilot:${plan.sessionId}] SDK resumeSession succeeded after ${stopWatch.elapsed()}ms`);
394
await this._applySandboxConfig(raw, sandboxConfig, plan.sessionId);
395
return new CopilotSessionWrapper(raw);
397
let resumeError = err;
398
const errCode = getCopilotSdkErrorCode(resumeError);