From ec238b71329cb7fc313bcec4c70e38e60d55354b Mon Sep 17 00:00:00 2001 From: CaptainB Date: Wed, 3 Dec 2025 11:23:06 +0800 Subject: [PATCH] feat: set current working directory for sandbox execution --- apps/common/utils/tool_code.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/common/utils/tool_code.py b/apps/common/utils/tool_code.py index 48d62ac1a..e9f5c8c2e 100644 --- a/apps/common/utils/tool_code.py +++ b/apps/common/utils/tool_code.py @@ -210,6 +210,7 @@ exec({dedent(code)!a}) '-c', f'import base64,gzip; exec(gzip.decompress(base64.b64decode(\'{compressed_and_base64_encoded_code_str}\')).decode())', ], + 'cwd': self.sandbox_path, 'env': { 'LD_PRELOAD': self.sandbox_so_path, },