feat: add error handling for disabled sandbox runtime in get_booter function

This commit is contained in:
Soulter
2026-03-12 00:28:45 +08:00
parent 7f5bd942b3
commit 8faaa4b2be
+2
View File
@@ -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")