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:
@@ -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,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user