preserve the original comment

This commit is contained in:
MRHwick
2026-04-24 14:16:09 -04:00
committed by Teknium
parent 2d86e97a7e
commit 36e352afa7

View File

@@ -3308,6 +3308,10 @@ class AIAgent:
# (for example Hindsight) that own their own network clients.
# Explicitly stop those providers before closing the agent so
# their aiohttp sessions do not leak until GC/process exit.
# Then close all remaining resources (httpx client,
# subprocesses, etc.) so GC doesn't try to clean them up on a
# dead asyncio event loop (which produces "Event loop is
# closed" errors).
if review_agent is not None:
try:
review_agent.shutdown_memory_provider()