Skip to content

Desktop app that records your on-screen work session and uses the GitHub Copilot SDK to reconstruct it as an intent + ordered steps, then builds a reusable Skill or Automation for Microsoft Autopilots like Scout, Microsoft Copilot Cowork, or Copilot Studio.

Hide Electron application menu on Windows

Giorgio Ughini7d8a7f726e15
diff --git a/README.md b/README.md
index 0e276cd..1c31593 100644
--- a/README.md
+++ b/README.md
@@ -67,7 +67,8 @@ npm run dev
`npm run dev` starts Vite and launches the Electron app with hot-reload. The app also
lives in the menu-bar tray; `⌘⇧R` (macOS) / `Ctrl+Shift+R` (Windows) toggles recording
-from anywhere.
+from anywhere. On Windows, press `F12` while the recorder or Sessions window is focused
+to toggle DevTools during development.
Other useful scripts:
diff --git a/electron/main.ts b/electron/main.ts
index 3df826e..1d30350 100644
--- a/electron/main.ts
+++ b/electron/main.ts
@@ -1,4 +1,4 @@
-import { app, globalShortcut, ipcMain, BrowserWindow } from "electron";
+import { app, BrowserWindow, globalShortcut, ipcMain, Menu } from "electron";
import { FULL_CAPTURE } from "../common/config";
import { IPC } from "../common/ipc";
@@ -76,6 +76,8 @@ function openLibrary(): void {
}
app.whenReady().then(() => {
+ if (process.platform === "win32") Menu.setApplicationMenu(null);
+
narration.initialize();
registerIpc(recorder, describer, builder, automationBuilder, narration);
log.info("Capture: recording all sources");
@@ -123,4 +125,3 @@ app.on("will-quit", () => {
void builder.dispose();
void automationBuilder.dispose();
});
-
diff --git a/electron/window.ts b/electron/window.ts
index 5ddebd9..4da50b4 100644
--- a/electron/window.ts
+++ b/electron/window.ts
@@ -23,6 +23,16 @@ function loadRoute(win: BrowserWindow, hash?: string): void {
}
}
+function registerDevelopmentDevToolsShortcut(win: BrowserWindow): void {
+ if (process.platform !== "win32" || !process.env.VITE_DEV_SERVER_URL) return;
+
+ win.webContents.on("before-input-event", (event, input) => {
+ if (input.type !== "keyDown" || input.key !== "F12" || input.isAutoRepeat) return;
+ event.preventDefault();
+ win.webContents.toggleDevTools();
+ });
+}
+
export function createRecorderWindow(): BrowserWindow {
const win = new BrowserWindow({
width: RECORDER.width,
@@ -39,6 +49,7 @@ export function createRecorderWindow(): BrowserWindow {
sandbox: false,
},
});
+ registerDevelopmentDevToolsShortcut(win);
loadRoute(win);
return win;
}
@@ -99,6 +110,7 @@ export function createLibraryWindow(recorder: BrowserWindow): BrowserWindow {
sandbox: false,
},
});
+ registerDevelopmentDevToolsShortcut(win);
// Move the recorder and reveal the library together so the pair appears docked.
win.once("ready-to-show", () => {
if (!recorder.isDestroyed()) recorder.setPosition(layout.recorder.x, layout.recorder.y, false);