Skip to content

Your team of AI agents, on your Mac, Windows or Linux. Agents that talk in channels, write code, review each other and use your tools, on the Claude Code, Codex, OpenCode or Pi you already have. Anything that touches the real world waits for your yes.

Open message links in the real browser (#19)

Gian Moraesd14af097c345
diff --git a/src/main/index.ts b/src/main/index.ts
index fa43546..36b8d67 100644
--- a/src/main/index.ts
+++ b/src/main/index.ts
@@ -345,6 +345,16 @@ function createWindow(): BrowserWindow {
return { action: 'deny' }
})
+ // react-markdown renders message links as plain <a href>, and a plain click
+ // navigates this whole window away (the app "disappears" behind the site).
+ // Same promise as above, for those: web links go to the real browser;
+ // a same-URL navigation (reload) is not a link and stays.
+ win.webContents.on('will-navigate', (event, url) => {
+ if (!/^https?:\/\//.test(url) || url === win.webContents.getURL()) return
+ event.preventDefault()
+ void shell.openExternal(url)
+ })
+
if (process.env['ELECTRON_RENDERER_URL']) {
void win.loadURL(process.env['ELECTRON_RENDERER_URL'])
} else {