From 8faaa4b2becd6f3082d9e63238018f994aba12a2 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Thu, 12 Mar 2026 00:28:45 +0800 Subject: [PATCH] feat: add error handling for disabled sandbox runtime in get_booter function --- astrbot/core/computer/computer_client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrbot/core/computer/computer_client.py b/astrbot/core/computer/computer_client.py index 86371b172..6e80ac3ab 100644 --- a/astrbot/core/computer/computer_client.py +++ b/astrbot/core/computer/computer_client.py @@ -425,6 +425,8 @@ async def get_booter( runtime = config.get("provider_settings", {}).get("computer_use_runtime", "local") if runtime == "local": return get_local_booter() + elif runtime == "none": + raise RuntimeError("Sandbox runtime is disabled by configuration.") sandbox_cfg = config.get("provider_settings", {}).get("sandbox", {}) booter_type = sandbox_cfg.get("booter", "shipyard_neo")