From ebc6273a1c58329026fa73337a8334ba1df6051f Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Sat, 11 Apr 2026 16:32:27 +0800 Subject: [PATCH] feat: add support for additional temporary path in restricted environment checks --- astrbot/core/tools/computer_tools/fs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/astrbot/core/tools/computer_tools/fs.py b/astrbot/core/tools/computer_tools/fs.py index ba05a4fd1..8d3160ff5 100644 --- a/astrbot/core/tools/computer_tools/fs.py +++ b/astrbot/core/tools/computer_tools/fs.py @@ -73,6 +73,7 @@ def _restricted_env_path_labels(umo: str) -> list[str]: "data/skills", f"data/workspaces/{normalized_umo}", get_astrbot_system_tmp_path(), + get_astrbot_temp_path(), ] @@ -93,6 +94,7 @@ def _read_allowed_roots(umo: str) -> tuple[Path, ...]: Path(get_astrbot_skills_path()).resolve(strict=False), _workspace_root(umo), Path(get_astrbot_system_tmp_path()).resolve(strict=False), + Path(get_astrbot_temp_path()).resolve(strict=False), )