Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1675,7 +1675,7 @@ const registerGlobalHotkey = (accelerator: string) => {
}
};

app.whenReady().then(async () => {
async function appMain() {
// Ensure Windows shims are available before any MCP processes are spawned
await ensureWinShims();

Expand Down Expand Up @@ -2144,6 +2144,15 @@ app.whenReady().then(async () => {
return false;
}
});
}

app.whenReady().then(async () => {
try {
await appMain();
} catch (error) {
dialog.showErrorBox('Goose Error', `Failed to create main window: ${error}`);
app.quit();
}
});

async function getAllowList(): Promise<string[]> {
Expand Down
Loading