All-Hands-AI / OpenHands

🙌 OpenHands: Code Less, Make More
https://all-hands.dev
MIT License
34.06k stars 3.88k forks source link

Allow to set workspace directory #3611

Closed amanape closed 1 month ago

amanape commented 2 months ago

Summary Extend the backend to support setting the workspace directory during initialisation. Right now it is only possible through a variable when starting OpenHands via shell

Motivation In order for the user to select an existing project in their local system through the UI, the backend should support setting it during initialisation

Technical Design Perhaps extending server/session/session.py to accept an absolute path could be enough. It may not be necessary to allow the user to change the directory afterwards

Alternatives to Consider

Additional context

mamoodi commented 2 months ago

This is great as users sometimes have a hard time figuring out what their workspace is set to. Especially if they ran the default docker command in the README. Ideally, if possible, with this a user can quickly check what the workspace path is set to.

amanape commented 2 months ago

CAUTION this may actually be cancelled

github-actions[bot] commented 1 month ago

This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

amanape commented 1 month ago

Handled a simpler way in #3604