fix(exec): clean up sessions on shutdown
This commit is contained in:
1 parent
7cf3c71e3a
commit
8981995474
10 files changed
+390
-12
No files matched your search
@@ -28,7 +28,8 @@ def _make_loop():
|
||||
|
||||
with patch("nanobot.agent.loop.ContextBuilder"), \
|
||||
patch("nanobot.agent.loop.SessionManager"), \
|
||||
patch("nanobot.agent.loop.SubagentManager"):
|
||||
patch("nanobot.agent.loop.SubagentManager") as mock_sub_mgr:
|
||||
mock_sub_mgr.return_value.close = AsyncMock()
|
||||
loop = AgentLoop(bus=bus, provider=provider, workspace=workspace)
|
||||
return loop, bus
|
||||
|
||||
|
||||
Reference in new issue
Block a user