-
Notifications
You must be signed in to change notification settings - Fork 45k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to disable working directory restrictions #1875
Conversation
Seems dangerous if not properly sandboxed, so maybe give it a big fat warning label in the docs. |
@Josh-XT There are conflicts now |
This pull request has conflicts with the base branch, please resolve those so we can evaluate the pull request. |
Conflicts have been resolved! 🎉 A maintainer will review the pull request shortly. |
I have pulled the latest master but I can't see the WORKING_DIRECTORY_RESTRICTED variable in .env? I am a noob... happy to buy you a coffee... |
…s#1875) Remove restriction on working directory if RESTRICT_TO_WORKSPACE != True --------- Co-authored-by: Reinier van der Leer <github@pwuts.nl>
@Philomath88 pulling updates |
Not sure how to buy you a coffee - there's no PayPal or equivalent in the docs: If you can spare a coffee, you can help to cover the costs of developing Auto-GPT and help push the boundaries of fully autonomous AI! Your support is greatly appreciated Development of this free, open-source project is made possible by all the contributors and sponsors. If you'd like to sponsor this project and have your avatar or company logo appear below click here. |
On which branch should I work to use the new variable I'm working on the |
You are correct, as you can see this PR was merged into |
…s#1875) Remove restriction on working directory if RESTRICT_TO_WORKSPACE != True --------- Co-authored-by: Reinier van der Leer <github@pwuts.nl>
Background
It is constantly unable to access files due to workspace working directory restrictions. An option is needed to remove the restriction on the working directory.
Changes
WORKING_DIRECTORY_RESTRICTED
that is set to True by default, setting to False will remove the restriction.execute_code.py
to usesafe_join
fromfile_operations.py
instead so that the environment variable can be referenced once infile_operations.py
only.Documentation
Above.
Test Plan
Tested by making sure it was able to access files outside of the working directory with it set to false.
PR Quality Checklist