From 90ab608d12840f5144841cee458da22cfdd508ae Mon Sep 17 00:00:00 2001 From: Michael Neale Date: Thu, 16 Jan 2025 12:53:44 +1100 Subject: [PATCH] nit: small change to give a choice (#620) --- ui/desktop/src/main.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ui/desktop/src/main.ts b/ui/desktop/src/main.ts index e385e2f15e..8c77807fb1 100644 --- a/ui/desktop/src/main.ts +++ b/ui/desktop/src/main.ts @@ -30,18 +30,18 @@ app.on('open-url', async (event, url) => { const result = dialog.showMessageBoxSync({ type: 'question', - buttons: ['Yes', 'No'], + buttons: ['Add to new session', 'Add to any current sessions','Cancel'], title: 'Add MCP system', detail: `${description} ${website} ${system} ${args}`.trim(), message: `Add extension to goose?` }); + if (result === 0) { await createChat(app, undefined, undefined, undefined, url); - // Add the system - // Send message to all existing windows - //BrowserWindow.getAllWindows().forEach(window => { - // window.webContents.send('add-system', url); - //}); + } else if (result === 1) { + BrowserWindow.getAllWindows().forEach(window => { + window.webContents.send('add-system', url); + }); } })