diff --git a/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.ts b/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.ts index 762eb21077f..726d56f47aa 100644 --- a/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.ts +++ b/src/vs/workbench/contrib/welcomeAgentSessions/browser/agentSessionsWelcome.ts @@ -777,6 +777,7 @@ export class AgentSessionsWelcomePage extends EditorPane { } private revealMaximizedChat(): void { + this.commandService.executeCommand('workbench.action.closeActiveEditor'); this.commandService.executeCommand('workbench.action.chat.open'); const chatViewLocation = this.viewDescriptorService.getViewLocationById(ChatViewId); if (chatViewLocation === ViewContainerLocation.AuxiliaryBar) {