const contextSize = model?.config?.[ContextSizeConfigKey];
if (contextSize === undefined) {
// When the model's long-context tier costs the same as the default tier,
copilotSessionLauncher.ts
// always opt into long_context — no picker is shown and the user gets the
// larger window for free.
return freeLongContext ? 'long_context' : undefined;
}
const selectedWindow = Number(contextSize);
if (!Number.isFinite(selectedWindow) || typeof longContextWindow !== 'number') {