You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Test the stdio entry point (src/index.ts) in CI: disconnect, EPIPE, shutdown #295
src/index.ts has 0% coverage in CI. Every MCP test uses InMemoryTransport; the only test that starts dist/index.js over stdio is in the local-only localCapture.test.ts.
Where
src/index.ts:56-69, 73-87, 91-119
src/tests/localCapture.test.ts:468 (only stdio test, gated by RUN_LOCAL_CAPTURE_TESTS)
Details
The handlers for stdin EOF (#76), EPIPE (#229), uncaughtException (#207) and edit-job cancellation on shutdown (#237) have no CI regression signal.
Impact
If one breaks, a client that disconnects mid-recording can leave ffmpeg recording the screen, and CI stays green.
Suggested fix
Add a CI-safe test after npm run build (runs on Linux too):
Start node dist/index.js with a temp SCREENCAST_HOME; initialize + tools/list; tool count matches mcp-tools.json
Close stdin; process exits 0 within 5 s with no "Uncaught" on stderr
Fixed in 6afd72b. src/__tests__/integration/entryStdio.test.ts runs dist/index.js over raw stdio on every CI leg (CI builds first). It checks two things:
tools/list returns exactly the tools in mcp-tools.json, except the app-only player tool. Closing stdin then exits with code 0 within 5 s, with no "Uncaught" or "Unhandled" on stderr.
If the client disconnects during a compress of a 120 s lavfi fixture, the server exits 0, reports "cancelled 1 edit job", and leaves no .partial file.
The Windows case where the client disconnects mid-recording (#76) is in captureSmoke.test.ts, added with #300. src/index.ts runs in the child process, so these are documented as process-level checks rather than adding line coverage.
Activity
test: per-file coverage floors for the recording lifecycle (#302)
TMHSDigital commentedon Nov 10, 2026
Fixed in 6afd72b.
src/__tests__/integration/entryStdio.test.tsrunsdist/index.jsover raw stdio on every CI leg (CI builds first). It checks two things:tools/listreturns exactly the tools inmcp-tools.json, except the app-only player tool. Closing stdin then exits with code 0 within 5 s, with no "Uncaught" or "Unhandled" on stderr.compressof a 120 s lavfi fixture, the server exits 0, reports "cancelled 1 edit job", and leaves no.partialfile.The Windows case where the client disconnects mid-recording (#76) is in
captureSmoke.test.ts, added with #300.src/index.tsruns in the child process, so these are documented as process-level checks rather than adding line coverage.