Merge pull request #2841 from chinesepowered/hook-runner-error
Some checks are pending
Qwen Code CI / Lint (push) Waiting to run
Qwen Code CI / CodeQL (push) Waiting to run
Qwen Code CI / Test (push) Blocked by required conditions
Qwen Code CI / Test-1 (push) Blocked by required conditions
Qwen Code CI / Test-2 (push) Blocked by required conditions
Qwen Code CI / Test-3 (push) Blocked by required conditions
Qwen Code CI / Test-4 (push) Blocked by required conditions
Qwen Code CI / Test-5 (push) Blocked by required conditions
Qwen Code CI / Test-6 (push) Blocked by required conditions
Qwen Code CI / Test-7 (push) Blocked by required conditions
Qwen Code CI / Test-8 (push) Blocked by required conditions
Qwen Code CI / Post Coverage Comment (push) Blocked by required conditions
E2E Tests / E2E Test (Linux) - sandbox:docker (push) Waiting to run
E2E Tests / E2E Test (Linux) - sandbox:none (push) Waiting to run
E2E Tests / E2E Test - macOS (push) Waiting to run

fix(hooks): clean up abort listener in error handler
This commit is contained in:
DennisYu07 2026-04-03 11:14:27 +08:00 committed by GitHub
commit 76e52a51db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -439,6 +439,10 @@ export class HookRunner {
// Handle process errors
child.on('error', (error) => {
clearTimeout(timeoutHandle);
// Clean up abort listener
if (signal) {
signal.removeEventListener('abort', abortHandler);
}
const duration = Date.now() - startTime;
resolve({