From 7630eea34c930232fb6c60dd2f1bdad75ed01259 Mon Sep 17 00:00:00 2001 From: Michael D'Angelo Date: Wed, 4 Nov 2026 22:16:27 +0000 Subject: [PATCH 1/2] test(deep-scan): restore the coordinator stop error import --- .../codex-security/mcp-app/tests/test_deep_scan_coordinator.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/codex-security/mcp-app/tests/test_deep_scan_coordinator.ts b/plugins/codex-security/mcp-app/tests/test_deep_scan_coordinator.ts index 8bb4a655f..230e7ad03 100644 --- a/plugins/codex-security/mcp-app/tests/test_deep_scan_coordinator.ts +++ b/plugins/codex-security/mcp-app/tests/test_deep_scan_coordinator.ts @@ -32,6 +32,7 @@ import { DeepScanCoordinatorRegistry, WorkbenchDeepScanStore, DeepScanRemoteCoordinator, + DeepScanNonRetryableError, AsyncLock, classifyCodexWorkerError, codexWorkerTurnError, From b597f0a9653ddc0ced5c2c199f9553e8312e7a85 Mon Sep 17 00:00:00 2001 From: Michael D'Angelo Date: Wed, 4 Nov 2026 22:47:33 +0000 Subject: [PATCH 2/2] test(sdk): expect cancellation from an aborted component scan --- sdk/typescript/tests-ts/component-scan.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/typescript/tests-ts/component-scan.test.ts b/sdk/typescript/tests-ts/component-scan.test.ts index 7504387be..35bf2c910 100644 --- a/sdk/typescript/tests-ts/component-scan.test.ts +++ b/sdk/typescript/tests-ts/component-scan.test.ts @@ -473,7 +473,7 @@ test("bounds standard scans, continues after failure, and preserves partial resu }); test.each([true, false])( - "saves the registered scan ID for failed components (lifecycle observer: %p)", + "keeps the registered scan ID on a failed receipt when the component client aborts (lifecycle observer: %p)", async (observe) => { const paths = await fixture(); const controller = new AbortController(); @@ -506,7 +506,7 @@ test.each([true, false])( expect(typeof receipt.scanId).toBe("string"); expect(events.filter((event) => event.type === "lifecycle")).toMatchObject( observe - ? ["running", "failed"].map((status) => ({ + ? ["running", "canceled"].map((status) => ({ componentId: receipt.id, value: { status, scanId: receipt.scanId }, }))