fix(ci): preserve cleanup boundaries and bounded failure assertions (#1618)

Interrupt optional CDP domain shutdown on caller cancellation while preserving an independent bounded detach attempt. Retain original overflow and cleanup failures, verify workspace recovery, preserve user skill files, and reject another unverified firmware worker.

Validation: 149 integrated tests; repeated 64 affected boundary tests; full local check. Standalone CI includes real Chrome CLI/stdio MCP and real Web runtime checks.

Refs #1613
This commit is contained in:
Ysopwnable
2026-10-11 02:54:12 +08:00
committed by GitHub
parent b582b6ecb4
commit 16d9c5adef
5 changed files with 63 additions and 20 deletions
+6 -2
View File
@@ -51,18 +51,22 @@ export const closeCdpTargetSession = async (
): Promise<void> => {
const { connection, sessionId } = targetSession;
const cleanup = new AbortController();
const domainSignal =
signal === undefined
? cleanup.signal
: AbortSignal.any([cleanup.signal, signal]);
const timeout = setTimeout(() => cleanup.abort(), 1_000);
timeout.unref();
try {
if (signal?.aborted !== true) {
for (const domain of enabledDomains) {
if (cleanup.signal.aborted) break;
if (domainSignal.aborted) break;
try {
await connection.send(
`${domain}.disable`,
{},
sessionId,
cleanup.signal,
domainSignal,
);
} catch {
// Best-effort domain cleanup; transport close is the definitive boundary.