From cb9d7c0bfaa6dee615367a03709090183f6d5782 Mon Sep 17 00:00:00 2001 From: LIghtJUNction Date: Fri, 10 Apr 2026 22:34:40 +0800 Subject: [PATCH] fix(cli): only run runtime bootstrap when needed Runtime bootstrap (SSL context setup) is now only initialized in commands that actually need it (run), not on every CLI invocation. --- astrbot/__main__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/astrbot/__main__.py b/astrbot/__main__.py index fbd5f822b..4649181f2 100644 --- a/astrbot/__main__.py +++ b/astrbot/__main__.py @@ -24,9 +24,6 @@ from astrbot.core.utils.io import ( download_dashboard, get_dashboard_version, ) -from astrbot.runtime_bootstrap import initialize_runtime_bootstrap - -initialize_runtime_bootstrap() # 将父目录添加到 sys.path