Files
openclaw/extensions/tlon
SunnyShu 07c4f7b721 fix(tlon): use waitUntilAbort to fix monitor abort-race hang (#114940)
* [AI] fix(tlon): use waitUntilAbort to fix monitor abort-race hang

Replace ad-hoc abort listener with the shared waitUntilAbort
primitive, hoist pollInterval for unified finally cleanup, and
add .unref() per codebase convention.

The original code registered an abort listener inside a Promise
constructor without checking signal.aborted first. Per the
AbortSignal contract, a listener attached after abort has fired
is never called, so the monitor hung without running cleanup.

The fix reuses waitUntilAbort from plugin-sdk/channel-outbound,
which correctly handles already-aborted, normal, and absent
signals. pollInterval is hoisted and cleared in finally as a
single cleanup owner.

Co-Authored-By: Claude <noreply@anthropic.com>

Fixes #114886

* fix(tlon): prove abort-safe Urbit monitor cleanup

---------

Co-authored-by: Peter Steinberger <steipete@golden-gate.local>
2026-07-28 06:53:37 -04:00
..

Tlon (OpenClaw plugin)

Tlon/Urbit channel plugin for OpenClaw. Supports DMs, group mentions, and thread replies.

Docs: https://docs.openclaw.ai/channels/tlon