koko210Serve
7b7abcfc68
fix(tasks): replace fire-and-forget asyncio.create_task with create_tracked_task
Add utils/task_tracker.py with create_tracked_task() that wraps background
tasks with error logging, cancellation handling, and reference tracking.
Replace all 17 fire-and-forget asyncio.create_task() calls across 7 files:
- bot/bot.py (5 interjection checks)
- bot/utils/autonomous.py (2 check-and-act/react tasks)
- bot/utils/bipolar_mode.py (3 argument tasks)
- bot/commands/uno.py (1 game loop task)
- bot/utils/voice_receiver.py (3 STT/interruption callbacks)
- bot/utils/persona_dialogue.py (4 dialogue turn/interjection tasks)
Previously-tracked tasks (voice_audio.py, voice_manager.py) were left as-is
since they already store task references for cancellation.
Closes #1
2026-02-18 12:01:08 +02:00
..
2026-02-08 14:55:01 +02:00
2026-01-10 20:46:19 +02:00
2026-01-10 20:46:19 +02:00
2026-02-18 12:01:08 +02:00
2026-02-18 12:01:08 +02:00
2026-02-10 22:03:54 +02:00
2026-01-22 22:08:07 +02:00
2026-01-23 17:01:47 +02:00
2025-12-07 17:15:09 +02:00
2026-02-15 20:56:25 +02:00
2026-01-10 20:46:19 +02:00
2026-01-10 20:46:19 +02:00
2026-01-10 20:46:19 +02:00
2026-02-15 19:51:00 +02:00
2026-01-27 19:52:39 +02:00
2026-01-11 02:01:41 +02:00
2026-01-10 20:46:19 +02:00
2026-01-09 00:03:59 +02:00
2026-01-09 00:03:59 +02:00
2026-01-10 20:46:19 +02:00
2026-01-23 15:02:36 +02:00
2026-01-10 20:46:19 +02:00
2026-02-07 20:22:03 +02:00
2026-01-10 20:46:19 +02:00
2026-01-30 21:43:20 +02:00
2026-01-10 20:46:19 +02:00
2026-01-10 20:46:19 +02:00
2026-02-18 12:01:08 +02:00
2025-12-07 17:15:09 +02:00
2026-02-10 22:57:55 +02:00
2026-01-10 20:46:19 +02:00
2026-01-10 20:46:19 +02:00
2025-12-07 17:15:09 +02:00
2026-01-20 23:06:17 +02:00
2026-02-18 12:01:08 +02:00
2026-02-08 14:55:01 +02:00
2026-01-10 20:46:19 +02:00
2026-01-30 21:43:20 +02:00
2026-01-20 23:06:17 +02:00
2026-01-20 23:06:17 +02:00
2026-02-18 12:01:08 +02:00
2026-01-17 03:14:40 +02:00
2025-12-07 17:15:09 +02:00