OpenHands icon indicating copy to clipboard operation
OpenHands copied to clipboard

[Feature]: Notify agent of GITHUB_TOKEN when provided

Open neubig opened this issue 1 year ago • 1 comments

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.

neubig avatar Nov 05 '24 11:11 neubig

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.

enyst avatar Nov 30 '24 00:11 enyst

@neubig with all the new changes that have happened, is this still an issue?

mamoodi avatar Dec 19 '24 19:12 mamoodi

This may be fixed, will re-open if it's not.

neubig avatar Jan 23 '25 13:01 neubig