Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Sync clock drift before pulling repo
Tomas Valenta9c1119946821
diff --git a/api-service/agent/smol_agent.py b/api-service/agent/smol_agent.pyindex 035b93d76..46f068170 100644--- a/api-service/agent/smol_agent.py+++ b/api-service/agent/smol_agent.py@@ -3,7 +3,7 @@ import uuidimport osimport ast-from typing import Any, List+from typing import Any, Coroutine, Listfrom langchain.callbacks.base import AsyncCallbackManagerfrom langchain.schema import (AIMessage,@@ -242,7 +242,7 @@ Begin generating the code now.},)- fixClockDrift = asyncio.ensure_future(playground.sync_clock())+ await asyncio.ensure_future(playground.sync_clock())rootdir = "/repo"await playground.change_rootdir(rootdir)@@ -477,7 +477,6 @@ Begin generating the code now.},)- await fixClockDriftawait playground.push_repo(rootdir=rootdir,repo_address=repo_address,