fix(auto-reply): normalize block-reply callback to Promise for timeout path (#31200)

* Auto-reply: wrap block reply callback in Promise.resolve for timeout safety

* Build: add strict smoke build script for CI regression gating

* CI: gate strict TS smoke build in check workflow

* docs(changelog): add auto-reply block reply timeout fix under Unreleased

* docs(changelog): credit original #19779 contributor and vincentkoc
This commit is contained in:
Vincent Koc
2026-03-01 19:23:38 -08:00
committed by GitHub
parent 030565b18c
commit 1a42ea3abf
4 changed files with 11 additions and 4 deletions

View File

@@ -114,10 +114,12 @@ export function createBlockReplyPipeline(params: {
return false;
}
await withTimeout(
onBlockReply(payload, {
abortSignal: abortController.signal,
timeoutMs,
}) ?? Promise.resolve(),
Promise.resolve(
onBlockReply(payload, {
abortSignal: abortController.signal,
timeoutMs,
}),
),
timeoutMs,
timeoutError,
);