Does using openhands.sdk.LocalWorkspace and passin...
# questions
a
Does using openhands.sdk.LocalWorkspace and passing that to Conversation(workspace=LocalWorkspace(working_dir)) automatically ensures the agent is restricted to only reading and editing files in the working dir? Or not really and they can easily go outside of it? Like if give the agent TerminalTool or FileEditorTool via register_tool, can the agent easily run and read files anywhere on the filesystem?
c
Not really nope The Terminal and FileEditor can easily run / read files everywhere Feel free to start an issue in the SDK repo to track this
l
I think the FileEditor refuses things outside of the main directory, right?
(but not the terminal)
a
Got it, thanks for clarifying!
w
yeah wouldn't be hard for the agent to
cat /etc/passwd
I wonder if we could have a chroot version of the tools?