fix(halumem): correct async context manager implementation

This commit is contained in:
jinli.yl 2026-01-31 01:25:23 +08:00
parent 0163cb25ce
commit 5a4077e68c

View file

@ -567,11 +567,13 @@ class HaluMemEvaluator:
async def __aenter__(self):
"""Async context manager entry."""
return await self.reme.start()
await self.reme.start()
return self
async def __aexit__(self, exc_type, exc_val, exc_tb):
"""Async context manager exit with cleanup."""
return await self.reme.close()
await self.reme.close()
return False
async def process_session(
self,