fix(subagent): retain cancellation lint rationale

This commit is contained in:
pku-xht
2026-08-10 13:11:22 +08:00
parent 95d5735e05
commit 7ba4244d66

View File

@@ -258,6 +258,7 @@ export async function startClaudeCodeRun(
)
}
}
// oxlint-disable-next-line typescript/no-unnecessary-condition -- the request can abort while process cleanup is awaited.
if (cancelledBeforeCleanup || request.signal.aborted) {
throw new Error('subagent-claude-code: request was aborted before SDK startup')
}