Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

fix(ci): unblock main's quality job (smart-whisper patch step, cursor-usage clock)

review932b46310f23
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 92032efee..91146789f 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -32,14 +32,18 @@ jobs:
# Skip postinstall's electron-rebuild (node-pty + whisper.cpp). Tests need neither the
# Electron build nor smart-whisper, but many suites import node-pty at runtime, so it is
- # rebuilt for Node from the patched sources (Windows takes its shipped prebuild). The patch step
- # also writes the markers src/main/node-pty-patch.test.ts asserts.
+ # rebuilt for Node from the patched sources (Windows takes its shipped prebuild). The patch steps
+ # also write the markers src/main/node-pty-patch.test.ts and
+ # src/core/speech/smart-whisper-patch.test.ts assert.
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Patch node-pty sources
run: node scripts/patch-node-pty.mjs
+ - name: Patch smart-whisper sources
+ run: node scripts/patch-smart-whisper.mjs
+
- name: Build node-pty and link esbuild
run: npm rebuild node-pty esbuild
diff --git a/src/core/usage/cursor-usage.test.ts b/src/core/usage/cursor-usage.test.ts
index aabe7717d..beda24a92 100644
--- a/src/core/usage/cursor-usage.test.ts
+++ b/src/core/usage/cursor-usage.test.ts
@@ -1,4 +1,4 @@
-import { describe, it, expect, beforeEach } from 'vitest'
+import { describe, it, expect, beforeEach, afterEach, vi } from 'vitest'
import { readFileSync } from 'fs'
import path from 'path'
import {
@@ -63,7 +63,14 @@ describe('mapCursorLimits', () => {
})
describe('fetchCursorUsage', () => {
- beforeEach(() => resetCursorUsageHold())
+ // The hold reads the wall clock, and BODY's billing cycle is fixed: pin the clock inside the cycle,
+ // or every test that holds last-good numbers turns red once END is in the past (2026-10-21).
+ beforeEach(() => {
+ resetCursorUsageHold()
+ vi.useFakeTimers({ toFake: ['Date'] })
+ vi.setSystemTime(START + 1000)
+ })
+ afterEach(() => vi.useRealTimers())
it('is unavailable when not signed in, and asks nothing', async () => {
let called = false