-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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]: Agent tends to use browser instead of GitHub API to open pull requests #6655
Comments
Thank you for the report! Was this LLM Claude Sonnet? |
Yes Claude sonnet 3.5
|
(realized I did not upload the screenshots properly so just added them to the original post) |
I wonder, the id of the action was 95, that might be relatively much for Sonnet to remember every detail from the beginning? Idk, in any case appreciate the report. |
There were two other issues related to this bug I'm having a hard time finding them. It was also not using the github API when it should be. |
There's a note here, but that was not really the same, because it was with the resolver: some initial prompts are different. The github microagent in particular is not enabled with the resolver, and instead it has prompting of its own. |
Found it. Here is it: |
Can this be resolved by expanding the "triggers" in the microagent and then cleaning up the github prompt? This thought process doesn't seem baked into the system itself but more a prompting update. |
Is there an existing issue for the same bug?
Describe the bug and reproduction steps
Despite having the github microagent in https://github.com/All-Hands-AI/OpenHands/blob/main/microagents/knowledge/github.md, I frequently run into cases where the agent tries to use the browser to open a new PR (and fails) instead of the preferred way of using GitHub API. Here is the most recent example:
https://www.all-hands.dev/share?share_id=883b5c047dcbb2df36e1b1c65f7676f25c282bf28a1bc6c896e5f69b2cfc1f56 where
OpenHands Installation
Development workflow
OpenHands Version
main
Operating System
MacOS
Logs, Errors, Screenshots, and Additional Context
https://www.all-hands.dev/share?share_id=883b5c047dcbb2df36e1b1c65f7676f25c282bf28a1bc6c896e5f69b2cfc1f56
The text was updated successfully, but these errors were encountered: