open-swe/agent
Johannes du Plessis 7d4d7e5833
fix: re-apply git identity every run, drive from env vars (#1242)
* fix: re-apply git identity on every agent invocation, source from env

Cached/reconnected sandboxes weren't getting `git config --global` re-applied
(the call was gated on new-sandbox creation), so commits picked up whatever
identity the sandbox happened to have — sometimes an email not associated
with any GitHub account, which Vercel rejects on preview deploys.

Move the git config call out of the new-sandbox branch so it runs on every
get_agent, and source the values from OPEN_SWE_GIT_AUTHOR_NAME /
OPEN_SWE_GIT_AUTHOR_EMAIL env vars (defaulting to the existing bot identity)
so forks can override without code changes.

* cleanup

---------

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.com>
2026-05-05 14:53:27 -07:00
..
integrations feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
middleware feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
tools feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
utils feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
encryption.py chore: Drop monorepo (#1029) 2026-03-06 16:10:34 -08:00
prompt.py feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00
server.py fix: re-apply git identity every run, drive from env vars (#1242) 2026-05-05 14:53:27 -07:00
webapp.py feat: move github workflows to gh cli (#1238) 2026-05-04 18:03:53 -07:00