an open-source alternative to the dots, bots and muses of the world, run an office of claude code/codex like agents on your laptop, sandboxes or anywhere, uses your existing subscriptions
HTML agent-harnessagent-orchestrationagentsai-agentsautonomous-agentsclaude-codecodexcoding-agentsdesktop-appdeveloper-toolselectrongemini-cliharnessharness-engineeringlocal-firstmemorymulti-agentopencodeorchestrationtypescript
chore: untrack two stray " 2.cjs" duplicates that a wide git add swept in
chaitanyagiri661e20a6d257
diff --git a/test/update-badge-acknowledgement.test 2.cjs b/test/update-badge-acknowledgement.test 2.cjsdeleted file mode 100644index 5c52d405..00000000--- a/test/update-badge-acknowledgement.test 2.cjs+++ /dev/null@@ -1,35 +0,0 @@-/**- * A successful update check must be visible.- *- * The complaint that started this: on the latest release, a manual check- * succeeds, finds nothing, and the badge settles back to a quiet grey "latest"- * chip. A check that worked perfectly and a click that never registered look- * identical, so the button reads as broken. The fix is a brief, positive- * acknowledgement after a manual no-update check. Source-string checks, because- * UpdateBadge is a React component with no jsdom harness in this repo; deleting- * the acknowledgement wiring must not pass silently.- */-const test = require('node:test');-const assert = require('node:assert/strict');-const { readFileSync } = require('node:fs');-const { join } = require('node:path');-const read = (rel) => readFileSync(join(__dirname, '..', rel), 'utf8');-const SRC = read('src/renderer/src/components/UpdateBadge.tsx');--test('the check branch acknowledges a no-update result', () => {- assert.ok(/setCheckedOk\(true\)/.test(SRC),- 'the manual check must set the acknowledgement, or a successful check stays silent');- assert.ok(/updateCheckNow\(\)/.test(SRC) && /updateCurrent\?\.\(\)/.test(SRC),- 'it reads the settled status back after the check to tell a no-update result from an available one');- assert.ok(/'not-available'/.test(SRC),- 'the acknowledgement is gated on a no-update state, not fired blindly for every check');-});--test('the acknowledgement renders and auto-dismisses', () => {- assert.ok(/checkedOk && !started &&/.test(SRC),- 'the acknowledgement popover must render when checkedOk is set');- assert.ok(/on the latest version/i.test(SRC),- 'it must say, in words, that the user is already current');- assert.ok(/setTimeout\(\(\) => setCheckedOk\(false\)/.test(SRC),- 'it must auto-dismiss, or it is a stuck mode instead of a flash');-});diff --git a/test/update-check-timeout.test 2.cjs b/test/update-check-timeout.test 2.cjsdeleted file mode 100644index 81872cb2..00000000--- a/test/update-check-timeout.test 2.cjs+++ /dev/null@@ -1,49 +0,0 @@-/**- * The native update check must be hard-capped.- *- * The bug it prevents: electron-updater's checkForUpdates has no timeout of its- * own, and it caches its in-flight check promise. If one check's feed request- * stalls (opens but never responds), the promise never settles, runCheck never- * leaves 'checking', and every LATER check returns the same hung promise. The- * badge then spins on 'checking' forever with nothing logged, which is worse- * than an error: it looks like the app is working when it is not. A hard cap in- * runCheck is the only thing that forces a terminal state.- *- * Source-string checks, because updater.ts imports electron and cannot be loaded- * in a plain test; deleting the cap must not pass silently.- */-const test = require('node:test');-const assert = require('node:assert/strict');-const { readFileSync } = require('node:fs');-const { join } = require('node:path');-const read = (rel) => readFileSync(join(__dirname, '..', rel), 'utf8');--test('runCheck wraps the native check in a timeout, not a bare await', () => {- const src = read('src/main/updater.ts');- const runCheck = src.slice(src.indexOf('async function runCheck'), src.indexOf('async function runCheck') + 900);- assert.ok(/withTimeout\(/.test(runCheck),- 'runCheck must wrap the native check in withTimeout; a bare '- + 'await autoUpdater.checkForUpdates() can hang forever and freeze the badge');- assert.ok(/CHECK_TIMEOUT_MS/.test(runCheck),- 'the wrap must use the timeout constant, not an unbounded await');- assert.ok(!/const result = await autoUpdater\.checkForUpdates\(\);/.test(runCheck),- 'the un-capped await must be gone, or the timeout is dead code beside it');-});--test('the timeout constant is finite, positive, and sane', () => {- const src = read('src/main/updater.ts');- const m = src.match(/const CHECK_TIMEOUT_MS = ([0-9_]+);/);- assert.ok(m, 'CHECK_TIMEOUT_MS must be defined');- const ms = Number(m[1].replace(/_/g, ''));- assert.ok(Number.isFinite(ms) && ms > 0 && ms <= 120000,- 'the cap must be finite and sane (0 < ms <= 120s), or it is not really a cap');-});--test('withTimeout arms a rejecting timer and clears it on settle', () => {- const src = read('src/main/updater.ts');- const wt = src.slice(src.indexOf('function withTimeout'), src.indexOf('function withTimeout') + 500);- assert.ok(/setTimeout\(/.test(wt) && /reject\(/.test(wt),- 'withTimeout must arm a timer that rejects, or a hung check is never cut off');- assert.ok(/clearTimeout\(/.test(wt),- 'it must clear the timer on settle, or a slow-but-successful check leaks a handle');-});