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]: The agent doesn't know its name #4739

Closed
1 task done
neubig opened this issue Nov 4, 2024 · 3 comments · Fixed by #4740
Closed
1 task done

[Bug]: The agent doesn't know its name #4739

neubig opened this issue Nov 4, 2024 · 3 comments · Fixed by #4740
Labels
bug Something isn't working fix-me Attempt to fix this issue with OpenHands

Comments

@neubig
Copy link
Contributor

neubig commented Nov 4, 2024

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Describe the bug and reproduction steps

When asking the agent to push to github, it will often do the following, because it doesn't know what its name is supposed to be. We should probably tell the agent that its name is "OpenHands Agent" and email os "[email protected]" by default, but have this be configurable.

git config --global credential.helper store && git config --global user.email "[email protected]" && git config --global user.name "AI Assistant"

OpenHands Installation

Docker command in README

OpenHands Version

online app

Operating System

None

Logs, Errors, Screenshots, and Additional Context

No response

@neubig neubig added the bug Something isn't working label Nov 4, 2024
@xingyaoww
Copy link
Collaborator

xingyaoww commented Nov 4, 2024

We can achieve this by adding a description with the name OpenHands Agent" and email "[email protected]" to the system message in openhands/agenthub/codeact_agent/function_calling.py

@xingyaoww xingyaoww added the fix-me Attempt to fix this issue with OpenHands label Nov 4, 2024
Copy link
Contributor

github-actions bot commented Nov 4, 2024

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

Copy link
Contributor

github-actions bot commented Nov 4, 2024

An attempt was made to automatically fix this issue, but it was unsuccessful. A branch named 'openhands-fix-issue-4739' has been created with the attempted changes. You can view the branch here. Manual intervention may be required.

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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants