mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-04 16:38:49 +00:00
Covers the lifecycle contract of _close_gateway_runtime: runtime tasks are cancelled before shared resources close, pending background work is drained before the close returns, cancellation-swallowing tasks and hanging cleanup are bounded by their timeouts, a failing close is logged without blocking the stop, duplicate cleanup is idempotent, and the runtime_tasks gather await path is exercised for both completed and cancelled gathers.