I have a background agent that’s run and completed its task. However I’m having a few issues:
When I try to “Create Pull Request” it says “Failed to create PR: [internal] Error”
When I attempt to push the branch to the remote it says “Failed to authenticate to git remote:”, which is unusual because I’m already authenticated on my machine.
When I try to “Checkout Locally” it runs for a few seconds then throws an error that says “Failed to checkout branch: Failed to execute git”
When I try to “Refresh GitHub authentication” i get a error saying “[unauthenticated] Error”
The only way I could resolve this was with exporting a .patch file from the agent instance and bringing it over to my local instance and running git apply to my patch file.
Not sure if this is related, but I have determined that:
(a) at least sometimes, my background agents don’t push their branch to github
(b) when I click “Checkout Locally”, cursor seems to bang its head against the wall trying to checkout locally.. this results in stalling and “frozen” UI, eventually leading to “Failed to checkout branch: Failed to execute git”
Perhaps
(a) a failure to check out a branch locally could be handled more gracefully - e.g. erroring out right away
and
(b) someone might have an idea why the agent didn’t push the branch in the first place?
Note I ran 18 parallel agents with the same prompt (accidentally!) and none of them pushed the branch to github…