418
throw resumeError;
419
}
421
>
this._logService.warn(`[Copilot:${plan.sessionId}] Resume failed (code=-32603), falling back to createSession with same ID`);
422
>
const wrapper = await this._createSession({
423
>
...fallbackPlan,
424
>
kind: 'create',
425
>
model: fallbackPlan.fallback.model,
426
>
longContextWindow: fallbackPlan.fallback.longContextWindow,
427
>
freeLongContext: fallbackPlan.fallback.freeLongContext,
428
>
}, fallbackConfig, sandboxConfig);
429
>
this._logService.info(`[Copilot:${plan.sessionId}] Fallback createSession succeeded`);
430
>
return wrapper;
431
>
}
432
}
433