@devries-cameron20 / t3code-1 / commits / d9ded65dfe
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(desktop): add Copy Link action for chat links (#1835)

Klemencina committed Apr 9, 2026 at 20:07 UTC d9ded65dfef01156056d99dedfe2265d0cb5ea59
1 file changed +9
apps/desktop/src/main.ts
+9
@@ -7,6 +7,7 @@ import * as Path from "node:path";
7 import {
8 app,
9 BrowserWindow,
10 + clipboard,
11 dialog,
12 ipcMain,
13 Menu,
@@ -1572,6 +1573,14 @@ function createWindow(): BrowserWindow {
1573 menuTemplate.push({ type: "separator" });
1574 }
1575
1576 + const externalUrl = getSafeExternalUrl(params.linkURL);
1577 + if (externalUrl) {
1578 + menuTemplate.push(
1579 + { label: "Copy Link", click: () => clipboard.writeText(params.linkURL) },
1580 + { type: "separator" },
1581 + );
1582 + }
1583 +
1584 menuTemplate.push(
1585 { role: "cut", enabled: params.editFlags.canCut },
1586 { role: "copy", enabled: params.editFlags.canCopy },