Developer Fixes Silent AbortSignal Bug in OpenClaw AI Gateway That Leaked Background Requests
A developer identified and patched a subtle but impactful bug in OpenClaw, an open-source TypeScript-based personal AI assistant gateway connecting LLMs to platforms like Telegram, Slack, and Discord. The bug resided in a shared utility called fetchWithTimeout, which silently discarded any caller-supplied AbortSignal by overwriting it with an internally generated timeout signal. This meant cancellation logic from parent operations — such as a user stopping a session — was effectively ignored, leaving requests running in the background undetected. While the flaw caused no crashes, under concurrent load it could accumulate stale connections and degrade gateway performance in ways difficult to diagnose. The fix, submitted via pull request #102951, merges both the caller's signal and the internal timeout signal so neither cancellation path is lost.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in