[Feature]: Notify agent of GITHUB_TOKEN when provided
What problem or use case are you trying to solve?
When using the UI and accessing a github repository, it is standard for OpenHands to use GITHUB_TOKEN. But it doesn't necessarily know that GITHUB_TOKEN is available. Because of this, it may suggest alternative, non-optimal solutions such as adding an ssh key.
Describe the UX of the solution you'd like
It would be nice if the agent knew that it should use GITHUB_TOKEN by default.
Do you have thoughts on the technical implementation?
We may want to consider prompting the agent and telling it that it has access to the GITHUB_TOKEN environment variable when it does, although I'm not sure if this should be implemented through the frontend or backend.
This issue was addressed, but I'm not sure if entirely solved. 🤔
- we have now a micro agent that inserts info in the prompt, upon a user message that refers to git or github
- the resolver doesn't use this micro agent, but it has something of its own I think
The strange thing is that I played quite a bit with the resolver these days, and I've seen it not knowing it has a GITHUB_TOKEN. So in a few cases I had to prompt about it. Hmm. Or I thought I had to... Maybe I was just prey to some weird LLM mood.
@neubig with all the new changes that have happened, is this still an issue?
This may be fixed, will re-open if it's not.