fix: validate AbortSignal instances before calling AbortSignal.any() (#7277) (thanks @Elarwei001)

This commit is contained in:
Shakker
2026-02-02 20:36:47 +00:00
committed by Shakker
parent 88e29c728c
commit 5fb8f779ca
2 changed files with 2 additions and 5 deletions

View File

@@ -13,6 +13,7 @@ Docs: https://docs.openclaw.ai
### Fixes
- fix(agents): validate AbortSignal instances before calling AbortSignal.any() (#7277) (thanks @Elarwei001)
- fix(webchat): respect user scroll position during streaming and refresh (#7226) (thanks @marcomarandiz)
- Security: guard skill installer downloads with SSRF checks (block private/localhost URLs).
- Media understanding: apply SSRF guardrails to provider fetches; allow private baseUrl overrides explicitly.

View File

@@ -12,11 +12,7 @@ function throwAbortError(): never {
* where the AbortSignal constructor may differ.
*/
function isAbortSignal(obj: unknown): obj is AbortSignal {
if (!obj || typeof obj !== "object") {
return false;
}
const signal = obj as Record<string, unknown>;
return typeof signal.aborted === "boolean" && typeof signal.addEventListener === "function";
return obj instanceof AbortSignal;
}
function combineAbortSignals(a?: AbortSignal, b?: AbortSignal): AbortSignal | undefined {