OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Bug]: "Import Project" doesn't allow opening of a directory

Open neubig opened this issue 1 year ago • 2 comments

Is there an existing issue for the same bug?

  • [X] I have checked the troubleshooting document at https://docs.all-hands.dev/modules/usage/troubleshooting
  • [X] I have checked the existing issues.

Describe the bug

I clicked on the "import project" button on the new UI.

Screenshot 2024-10-07 at 4 32 47 PM

When I clicked on this I expected that it would allow me to open a directory that I could use as the workspace, but in the mac file selection menu it doesn't allow me to open a directory (the "Open" button is inactive when I select a directory).

Screenshot 2024-10-07 at 4 31 41 PM

Current OpenHands version

0809d26f4d8a5514c0a255ed0a3bf3d999b1c29f

Installation and Configuration

make build; make run

Model and Agent

No response

Operating System

No response

Reproduction Steps

No response

Logs, Errors, Screenshots, and Additional Context

No response

neubig avatar Oct 07 '24 20:10 neubig

@amanape has mentioned this only works with .zip files. Have to decide whether to make this more clear or to allow directories to be selected.

mamoodi avatar Oct 07 '24 20:10 mamoodi

Oh, when this is running locally I just assumed it would set the workspace directory. It seems like a nicer solution than requiring a zip file

neubig avatar Oct 07 '24 20:10 neubig

We'd probably have to zip the directory either way when doing so, seems a matter of extending functionality. There doesn't seem to be any downsides I can think of, I'm good with the idea.

@rbren Thoughts?

amanape avatar Oct 14 '24 07:10 amanape

This seems to have reasonable support in desktop browsers: https://caniuse.com/input-file-directory

We will probably have to handle it as a multipart upload, if I had to guess...not great but doable

rbren avatar Oct 14 '24 18:10 rbren

Or we could allow user to select a "folder" - and automatically zipping that folder for upload if we are using it on saas, otherwise just set that as workspace (in case it is launched locally?)

xingyaoww avatar Oct 20 '24 14:10 xingyaoww