Fix race condition: skip Getting Started on Insiders with welcomePage setting

Co-authored-by: osortega <48293249+osortega@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-23 23:14:10 +00:00
parent d6b3941903
commit 00f959f2b5

View File

@@ -138,7 +138,11 @@ export class StartupPageRunnerContribution extends Disposable implements IWorkbe
if (startupEditorSetting.value === 'readme') {
await this.openReadme();
} else if (startupEditorSetting.value === 'welcomePage' || startupEditorSetting.value === 'welcomePageInEmptyWorkbench') {
await this.openGettingStarted(true);
// On Insiders, AgentSessionsWelcomeRunnerContribution handles 'welcomePage', so skip here to avoid race condition
const isInsiders = this.productService.quality === 'insider';
if (!isInsiders || startupEditorSetting.value === 'welcomePageInEmptyWorkbench') {
await this.openGettingStarted(true);
}
} else if (startupEditorSetting.value === 'terminal') {
this.commandService.executeCommand(TerminalCommandId.CreateTerminalEditor);
}