From d7a54aed768f446da1bcfe075f67375d48cc7a65 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 27 Apr 2026 22:05:47 +0800 Subject: [PATCH] feat(shell): set default timeout for shell execution to 10,000,000 milliseconds --- astrbot/core/computer/booters/shipyard.py | 2 +- astrbot/core/computer/booters/shipyard_neo.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/astrbot/core/computer/booters/shipyard.py b/astrbot/core/computer/booters/shipyard.py index 4adfde1da..79837794d 100644 --- a/astrbot/core/computer/booters/shipyard.py +++ b/astrbot/core/computer/booters/shipyard.py @@ -58,7 +58,7 @@ class ShipyardShellWrapper: result = await self._shell.exec( run_command, - timeout=timeout, + timeout=timeout or 10_000_000, cwd=cwd, ) payload = _maybe_model_dump(result) diff --git a/astrbot/core/computer/booters/shipyard_neo.py b/astrbot/core/computer/booters/shipyard_neo.py index b141f918a..4926cd742 100644 --- a/astrbot/core/computer/booters/shipyard_neo.py +++ b/astrbot/core/computer/booters/shipyard_neo.py @@ -122,7 +122,7 @@ class NeoShellComponent(ShellComponent): result = await self._sandbox.shell.exec( run_command, - timeout=timeout, + timeout=timeout or 10_000_000, cwd=cwd, ) payload = _maybe_model_dump(result)