Recent desktop fixes in #349 left these fail-closed paths without direct tests:
openPath.getWorkspaceServerStatus, hydrateTranscript, and unwatchWorkspaceDirectory name themselves when preload input validation fails, and they do not invoke IPC.apps/desktop/test/update-ready-notification.test.ts and apps/desktop/electron/services/updateReadyNotification.tsapps/desktop/test/deferred-maximize.test.ts and apps/desktop/electron/services/deferredMaximize.tsapps/desktop/test/file-preview-modal.test.tsx and apps/desktop/src/ui/CodeFilePreview.tsx (openCodePreviewExternally)apps/desktop/test/canvas-window-lifecycle.test.tsxapps/desktop/test/preload-boundary.test.tsapps/desktop/electron/main.ts calls the extracted hold and deferred-maximize helpers. Click, Restart Now, and focus behavior are unchanged.These were bug fixes that previously lived only in main.ts or as empty .catch handlers. A garbage-collected update toast drops Restart, maximizing at construction flashes an unpainted window, and a failed open or pop-out used to look like a no-op. The new tests lock the policies that prevent those regressions without snapshotting UI chrome.
bun test on the five touched desktop test files: 53 passbunx biome check on touched files: cleanbun run typecheck: cleanbun run docs:check: cleanSign in to comment.
Update README.md
#125 mobile-fixes ← main
Updated 4 months ago
test: cover desktop update, maximize, and open-failure gates
#353 main ← cursor/missing-test-coverage-e565
Updated yesterday