When file operations (read_file, write_file, edit_file) access paths outside WORKDIR, the permission check correctly returns:
Path escapes workspace
However, the agent bypasses the restriction by switching to the bash tool to directly access files outside the workspace.
The current permission mechanism only validates individual file tools and does not prevent equivalent operations through other tools.
When file operations (read_file, write_file, edit_file) access paths outside WORKDIR, the permission check correctly returns:
Path escapes workspace
However, the agent bypasses the restriction by switching to the bash tool to directly access files outside the workspace.
The current permission mechanism only validates individual file tools and does not prevent equivalent operations through other tools.