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.
This commit is contained in:
LIghtJUNction
2026-04-10 22:34:40 +08:00
parent 1cd49b438d
commit cb9d7c0bfa

View File

@@ -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