diff --git a/coding-agent/src/coding_agent/tools/shell.py b/coding-agent/src/coding_agent/tools/shell.py index 5a2505a4c..b112ef443 100644 --- a/coding-agent/src/coding_agent/tools/shell.py +++ b/coding-agent/src/coding_agent/tools/shell.py @@ -233,7 +233,7 @@ def _validated_execution_cwd( def _validate_no_path_escape(args: list[str], workspace_root: Path) -> None: for arg in args[1:]: - for match in re.findall(r"/[A-Za-z0-9_./-]+", arg): + for match in re.findall(r"(?