禁止路径穿越

This commit is contained in:
朱潮 2026-04-11 11:48:18 +08:00
parent 788bb0089f
commit 7d22f0b34d

View File

@ -405,7 +405,7 @@ def create_custom_cli_agent(
# Use LocalShellBackend for filesystem + shell execution
backend = LocalShellBackend(
root_dir=workspace_root,
virtual_mode=False,
virtual_mode=True,
inherit_env=True,
env=final_shell_env,
)