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

[Bug]: When clicking on Open in VS Code it redirects me to localhost using docker. #6340

Open
1 task done
ouryuk opened this issue Jan 18, 2025 · 4 comments
Open
1 task done
Labels
bug Something isn't working

Comments

@ouryuk
Copy link

ouryuk commented Jan 18, 2025

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

Using the docker command open a github repo and then click on open in vs code

Image

Checking the docker_runtime.py I saw the localhost is hardcoded, let me know if there is another way to handle this!

Thank you!

OpenHands Installation

Docker command in README

OpenHands Version

0.20

Operating System

Linux

Logs, Errors, Screenshots, and Additional Context

No response

@mamoodi
Copy link
Collaborator

mamoodi commented Jan 18, 2025

It's working fine for me on Mac.
It does go to http://localhost:<port>/?folder=%2Fworkspace when I click it but VSCode does come up there.

@mamoodi
Copy link
Collaborator

mamoodi commented Jan 22, 2025

Tried this on linux as well and did not run into the same issue.

@ouryuk
Copy link
Author

ouryuk commented Jan 22, 2025

Tried this on linux as well and did not run into the same issue.

I am sorry for my bad explanation on this issue, what I am looking for is something like this:

#6356

I am running openhands on another machine, and because is not running docker on my machine is not able to find the correct container.

So the ideal way to set up this is by adding an env variable to specify the host of the machine

@mamoodi
Copy link
Collaborator

mamoodi commented Jan 22, 2025

Ah okay that's an important piece of information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants