mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-13 17:07:40 +00:00
* fix(twitch): preserve newer message handler during cleanup Fixes #83888. `TwitchClientManager.onMessage` returns a cleanup closure that called `messageHandlers.delete(key)` unconditionally. When a second onMessage() for the same account replaced the handler, running the earlier cleanup deleted the newer handler, leaving the account with no handler and silently dropping all inbound messages. Guard the delete with a referential check so the cleanup only removes the handler it registered. Adds regression tests covering both the stale-cleanup case (newer handler must survive) and the normal case (current handler is still removed). * fix(twitch): distinguish handler registrations * fix(signal): avoid dangling test export name * test(meeting-notes): use public sdk imports * test(sdk): classify meeting-notes subpath * fix(discord): keep channel entrypoint imports narrow --------- Co-authored-by: Peter Steinberger <steipete@gmail.com>