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]: GITHUB_TOKEN would missing when the runtime resume #6531

Open
1 task done
xingyaoww opened this issue Jan 29, 2025 · 3 comments · May be fixed by #6533
Open
1 task done

[Bug]: GITHUB_TOKEN would missing when the runtime resume #6531

xingyaoww opened this issue Jan 29, 2025 · 3 comments · May be fixed by #6533
Labels
bug Something isn't working fix-me Attempt to fix this issue with OpenHands severity:medium Affecting multiple users

Comments

@xingyaoww
Copy link
Collaborator

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

When runtime restarts/resumes, the initially set env var GITHUB_TOKEN would not work anymore.

Image

We should re-set the environment variable whenever the runtime restarts - Or we can simply add all set env var to .bashrc so it is export everytime a new shell starts. Maybe latter is easier?

OpenHands Installation

app.all-hands.dev

OpenHands Version

No response

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@xingyaoww xingyaoww added bug Something isn't working fix-me Attempt to fix this issue with OpenHands labels Jan 29, 2025
@openhands-agent
Copy link
Contributor

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

@openhands-agent
Copy link
Contributor

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

@enyst enyst added the severity:critical Critical issues or affecting all users label Jan 29, 2025
@enyst
Copy link
Collaborator

enyst commented Jan 30, 2025

After restoring a session normally, it still had it:

Image

Strangely, it seems it still had it after a runtime error:

Image

After another session restore, it doesn't have repo.md in context, but it still has the github token in env.

Image

@enyst enyst added severity:medium Affecting multiple users and removed severity:critical Critical issues or affecting all users labels Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix-me Attempt to fix this issue with OpenHands severity:medium Affecting multiple users
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants