refactor: move MCP lifecycle out of AgentLoop (#5343)

This commit is contained in:
chengyongru authored and GitHub committed 2026-08-12 17:51:04 +08:00
1 parent 686dd0603e
commit 19997d20bb
39 files changed
+1192 -846

No files matched your search

@@ -93,7 +93,6 @@ async def test_process_direct_websocket_clears_run_status(tmp_path) -> None:
@pytest.mark.asyncio
async def test_process_direct_reuses_existing_session_lock(tmp_path) -> None:
loop = _make_loop(tmp_path)
loop._connect_mcp = AsyncMock()
session_key = "api:fixed"
lock = loop._session_locks.setdefault(session_key, asyncio.Lock())
await lock.acquire()