Skip to content

Commit ec238b7

Browse files
committed
feat: set current working directory for sandbox execution
1 parent 68a7a0f commit ec238b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/common/utils/tool_code.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ def get_tool_mcp_config(self, code, params):
210210
'-c',
211211
f'import base64,gzip; exec(gzip.decompress(base64.b64decode(\'{compressed_and_base64_encoded_code_str}\')).decode())',
212212
],
213+
'cwd': self.sandbox_path,
213214
'env': {
214215
'LD_PRELOAD': self.sandbox_so_path,
215216
},

0 commit comments

Comments
 (0)