diff --git a/src/main/index.ts b/src/main/index.ts index f944a845..2ee7c6c1 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -1263,6 +1263,9 @@ function createWindow(): void { if (ptyTerminalService) { ptyTerminalService.setMainWindow(null); } + if (teamProvisioningService) { + teamProvisioningService.setMainWindow(null); + } setEditorMainWindow(null); setReviewMainWindow(null); cleanupEditorState(); @@ -1287,6 +1290,9 @@ function createWindow(): void { if (ptyTerminalService) { ptyTerminalService.setMainWindow(mainWindow); } + if (teamProvisioningService) { + teamProvisioningService.setMainWindow(mainWindow); + } setEditorMainWindow(mainWindow); setReviewMainWindow(mainWindow); diff --git a/src/main/services/team/TeamProvisioningService.ts b/src/main/services/team/TeamProvisioningService.ts index e4d702ca..d7caa5bc 100644 --- a/src/main/services/team/TeamProvisioningService.ts +++ b/src/main/services/team/TeamProvisioningService.ts @@ -5449,14 +5449,6 @@ export class TeamProvisioningService { } } - /** Dismiss all OS notifications for a team's approvals (e.g. on team stop). */ - private dismissAllApprovalNotifications(): void { - for (const [, notification] of this.activeApprovalNotifications) { - notification.close(); - } - this.activeApprovalNotifications.clear(); - } - private formatToolApprovalBody(toolName: string, toolInput: Record): string { switch (toolName) { case 'Bash':