Skip to content
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

[Usability] Improving CLI interface for OpenHands with oh launch here and oh launch here --remote #4024

Closed
xingyaoww opened this issue Sep 24, 2024 · 5 comments
Labels
enhancement New feature or request fix-me Attempt to fix this issue with OpenHands Stale Inactive for 30 days

Comments

@xingyaoww
Copy link
Collaborator

xingyaoww commented Sep 24, 2024

What problem or use case are you trying to solve?

I hope to start OpenHands wherever I want it to work. But now we have to manually maintain a lengthy docker run script and change WORKSPACE_BASE every time, or have to make run in a directory and modify config.toml to set the right workspace directory.

Describe the UX of the solution you'd like

For example, I am in a folder xyz/, and instead of launching a lengthy docker run command, the experience i hope to have is:

  1. cd xyz/
  2. pip install openhands
  3. oh launch cli here -> It will launch a OpenHands CLI pointing to xyz/ as the workspace.
  4. oh launch ui here -> It will launch a OpenHands UI pointing to xyz/ as the workspace.

Do you have thoughts on the technical implementation?

Currently, we install OpenHands via make build, which uses poetry under the hood, and we already have a command line interface: poetry run python -m openhands.core.cli. You can find the details of the arg parser in get_parser function of openhands/core/config/utils.py.

Specifically, it has a --directory argument.

What i want is:

  1. Instead of calling poetry run python -m openhands.core.cli, I want to directly run oh
  2. When i run oh launch cli here, i hope i can have a openhands.core.cli started with --directory point to the current pwd.
  3. When i run oh launch ui here, i hope i can start a GUI (following run in ./Makefile) with environment variable WORKSPACE_BASE and WORKSPACE_MOUNT_PATH set to pwd

Describe alternatives you've considered

Additional context

@xingyaoww xingyaoww added the enhancement New feature or request label Sep 24, 2024
@tobitege
Copy link
Collaborator

tobitege commented Oct 3, 2024

I think if you would expand on what CLI means in the context of openhands (via pip), i.e. which file to call etc., you should label it "fix-me" and let it try it.

@xingyaoww xingyaoww added the fix-me Attempt to fix this issue with OpenHands label Oct 4, 2024
Copy link
Contributor

github-actions bot commented Oct 4, 2024

OpenHands started fixing the issue! You can monitor the progress here.

openhands-agent added a commit that referenced this issue Oct 4, 2024
…ith `oh launch here` and `oh launch here --remote`'
Copy link
Contributor

github-actions bot commented Oct 4, 2024

A potential fix has been generated and a draft PR #4204 has been created. Please review the changes.

Copy link
Contributor

github-actions bot commented Nov 5, 2024

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.

@github-actions github-actions bot added the Stale Inactive for 30 days label Nov 5, 2024
Copy link
Contributor

This issue was closed because it has been stalled for over 30 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fix-me Attempt to fix this issue with OpenHands Stale Inactive for 30 days
Projects
None yet
2 participants