Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

feat(desktop): add "Copy Image" to right-click context menu (#1052)

Guilherme Vieira12c3af7821b4
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index 310b97345..867878e8e 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -1695,6 +1695,14 @@ function createWindow(): BrowserWindow {
);
}
+ if (params.mediaType === "image") {
+ menuTemplate.push({
+ label: "Copy Image",
+ click: () => window.webContents.copyImageAt(params.x, params.y),
+ });
+ menuTemplate.push({ type: "separator" });
+ }
+
menuTemplate.push(
{ role: "cut", enabled: params.editFlags.canCut },
{ role: "copy", enabled: params.editFlags.canCopy },