This message was deleted.
# feedback
d
This message was deleted.
c
See screenshot, we are just trying to ask it to run git config to update the name and email
Yeah, we selected explicitly this repo on the Web UI (running a local docker version) before further prompt them to create a PR in the conversation box
Yeah I think we're overriding you
c
Ahh that makes sense. It may be running the script 😂
c
Shouldn't the setup.sh override the OpenHands default?
w
Yeah ideally. But we've hard coded these commands and they happen to run after setup.sh
c
Copy code
if selected_repository and git_provider_tokens:
            await self.runtime.clone_repo(
                git_provider_tokens, selected_repository, selected_branch
            )
            await call_sync_from_async(self.runtime.maybe_run_setup_script)
Is this where it's run? https://github.com/All-Hands-AI/OpenHands/blob/159f79f9d8a21df8b806dfe1737802bd7bdbcf94/openhands/server/session/agent_session.py#L326-330
w
Yeah exactly that's where setup.sh runs
unfortunately the code above is in an entirely different path so it'll be hard to fix this one
I'd suggest opening an issue specifically asking to customize the git user/email
there's probably a better way to get at what you're looking for
c
Yeah, that would be awesome.
w
I'll also note that openhands aggressively tries to set its own user, running
Copy code
$ git config --global user.name "openhands" && git config --global user.email "openhands@all-hands.dev"
before doing any git commands
so this will probably be a little tricky
c
@modern-businessperson-92319 #create-issue Agent's git config
🙌 1
m
Issue created successfully! _Title_: [Bug]:
setup.sh
not overriding hardcoded
git config
commands _URL_: https://github.com/All-Hands-AI/OpenHands/issues/8453