Teknium
e9e7fb0683
fix(gateway): track background task references in GatewayRunner ( #3254 )
...
Asyncio tasks created with create_task() but never stored can be
garbage collected mid-execution. Add self._background_tasks set to
hold references, with add_done_callback cleanup. Tracks:
- /background command task
- session-reset memory flush task
- session-resume memory flush task
Cancel all pending tasks in stop().
Update test fixtures that construct GatewayRunner via object.__new__()
to include the new _background_tasks attribute.
Cherry-picked from PR #3167 by memosr. The original PR also deleted
the DM topic auto-skill loading code — that deletion was excluded
from this salvage as it removes a shipped feature (#2598 ).
Co-authored-by: memosr.eth <96793918+memosr@users.noreply.github.com >
2026-03-26 14:33:48 -07:00
..
2026-03-26 13:19:43 -07:00
2026-03-22 04:18:18 -07:00
2026-03-25 09:56:20 -07:00
2026-03-18 16:58:20 -07:00
2026-03-07 11:27:50 -08:00
2026-03-26 14:33:48 -07:00
2026-03-17 03:52:15 -07:00
2026-03-11 09:15:34 +01:00
2026-03-13 21:35:07 -07:00
2026-03-13 23:59:18 -07:00
2026-03-18 04:06:08 -07:00
2026-03-14 11:03:20 -07:00
2026-03-17 03:04:58 -07:00
2026-03-09 02:20:57 -07:00
2026-03-22 07:38:14 -07:00
2026-03-15 07:59:55 -07:00
2026-03-14 09:32:05 -07:00
2026-03-13 08:52:54 -07:00
2026-03-14 14:27:21 +03:00
2026-03-14 21:44:50 -07:00
2026-03-22 04:25:19 -07:00
2026-03-23 06:50:09 -07:00
2026-03-17 02:26:34 -07:00
2026-03-26 02:04:11 -07:00
2026-03-14 06:31:52 -07:00
2026-03-17 01:47:34 -07:00
2026-03-23 16:08:38 -07:00
2026-03-26 14:33:48 -07:00
2026-03-13 07:40:38 -07:00
2026-03-16 00:23:47 -07:00
2026-03-05 18:39:37 -08:00
2026-03-15 03:50:45 -07:00
2026-03-17 03:18:16 -07:00
2026-03-22 05:58:26 -07:00
2026-02-28 03:38:27 -05:00
2026-03-11 09:15:34 +01:00
2026-03-05 18:39:37 -08:00
2026-03-16 05:58:34 -07:00
2026-03-14 21:28:51 -07:00
2026-03-14 04:02:03 -07:00
2026-03-22 23:48:24 -07:00
2026-03-22 04:56:13 -07:00
2026-03-26 13:39:41 -07:00
2026-03-16 00:23:47 -07:00
2026-03-14 21:19:22 -07:00
2026-03-10 23:34:52 -07:00
2026-03-21 16:21:06 -07:00
2026-03-22 23:48:24 -07:00
2026-03-16 05:26:31 -07:00
2026-03-21 09:49:33 -07:00
2026-03-15 06:57:00 -07:00
2026-03-22 15:21:18 -07:00
2026-03-26 14:33:48 -07:00
2026-03-22 09:33:39 -07:00
2026-03-26 13:47:14 -07:00
2026-03-22 05:58:26 -07:00
2026-03-25 15:51:15 -07:00
2026-03-17 03:14:53 -07:00
2026-03-15 23:04:34 -07:00
2026-03-17 03:44:44 -07:00
2026-03-18 03:12:59 -07:00
2026-03-01 05:28:12 -08:00
2026-03-15 21:51:40 -07:00
2026-03-21 07:11:06 -07:00
2026-03-21 09:49:33 -07:00
2026-03-20 12:45:47 -07:00
2026-03-15 03:50:45 -07:00
2026-03-24 19:56:00 -07:00
2026-03-17 02:49:57 -07:00
2026-03-14 14:27:20 +03:00
2026-03-04 21:34:40 +03:00
2026-03-18 04:06:08 -07:00
2026-03-14 12:15:51 -07:00
2026-03-21 08:08:37 -07:00
2026-03-20 06:33:36 -07:00
2026-03-20 06:33:36 -07:00
2026-03-21 09:38:52 -07:00
2026-03-17 10:44:37 -07:00