Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

fix: register the keep-awake status handler

ogsamrat63d37cca99b6
diff --git a/apps/desktop/electron/keep-awake.test.mjs b/apps/desktop/electron/keep-awake.test.mjs
index f700480e..a8a1c59a 100644
--- a/apps/desktop/electron/keep-awake.test.mjs
+++ b/apps/desktop/electron/keep-awake.test.mjs
@@ -134,7 +134,7 @@ test("main wires the server's turn activity, the quit and the settings commands"
const main = readFileSync(path.join(here, "main.mjs"), "utf8");
assert.ok(main.includes("onTurnActivity: (running) => keepAwake.setTurnRunning(running)"));
assert.ok(main.includes("const releaseKeepAwake = keepAwake.hold();"));
- assert.ok(main.includes('"keepAwakeStatus": async () => keepAwake.status()'));
+ assert.ok(main.includes('"keepAwakeStatus": async (event) => keepAwake.status()'));
assert.ok(main.includes('"keepAwakeSet": async (event, ...args) => keepAwake.setEnabled(args[0] === true)'));
const runtime = readFileSync(path.join(here, "runtime.mjs"), "utf8");
assert.ok(runtime.includes('...(typeof onTurnActivity === "function" ? { onTurnActivity } : {}),'));
diff --git a/apps/desktop/electron/main.mjs b/apps/desktop/electron/main.mjs
index 80e6ea0a..44643e9c 100644
--- a/apps/desktop/electron/main.mjs
+++ b/apps/desktop/electron/main.mjs
@@ -2573,7 +2573,7 @@ const desktopCommandHandlers = {
"__setApplicationMenuVisible": async (event, ...args) => {
return applicationMenu.setVisible(args[0]);
},
- "keepAwakeStatus": async () => keepAwake.status(),
+ "keepAwakeStatus": async (event) => keepAwake.status(),
"keepAwakeSet": async (event, ...args) => keepAwake.setEnabled(args[0] === true),
"__setTurnRunning": async (event, ...args) => {
return turnGuard.setTurnRunning(args[0] === true);