Skip to content

Agent Zero AI framework

faster startup

frdel1654baf1695b
diff --git a/run_ui.py b/run_ui.py
index 07ae1c82f..f16fb6db3 100644
--- a/run_ui.py
+++ b/run_ui.py
@@ -245,14 +245,15 @@ def run():
def init_a0():
# initialize contexts and MCP
init_chats = initialize.initialize_chats()
+ # only wait for init chats, otherwise they would seem to disappear for a while on restart
+ init_chats.result_sync()
+
initialize.initialize_mcp()
# start job loop
initialize.initialize_job_loop()
# preload
initialize.initialize_preload()
- # only wait for init chats, otherwise they would seem to dissapear for a while on restart
- init_chats.result_sync()
# run the internal server