faster startup
frdel committed
Aug 2, 2025 at 13:04 UTC
1654baf1695b7c82d2f948ebf6740ea7a64b1347
1 file changed
+3
-2
run_ui.py
+3
-2
@@ -245,14 +245,15 @@ def run():
245
def init_a0():
246
# initialize contexts and MCP
247
init_chats = initialize.initialize_chats()
248
+ # only wait for init chats, otherwise they would seem to disappear for a while on restart
249
+ init_chats.result_sync()
250
+
251
initialize.initialize_mcp()
252
# start job loop
253
initialize.initialize_job_loop()
254
# preload
255
initialize.initialize_preload()
256
254
- # only wait for init chats, otherwise they would seem to dissapear for a while on restart
255
- init_chats.result_sync()
257
258
259
# run the internal server