Coding agent unable to resolve conflicts in their PR #185521
Replies: 5 comments 3 replies
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
I ran into the same problem before. I asked Copilot to resolve the conflict, and it did a good job selecting the correct code to keep. However, the way it resolved the conflict is not what I wanted. What I expected
What actually happened
This works functionally, but from Git’s perspective the conflict is still there, and I lose the Git history from main because Copilot rewrites the changes instead of performing a real merge. I haven’t tested it yet, but I think adding some manual tweaks to the prompt/instruction to guide Copilot could make it behave as expected. Still, I hope Copilot will improve in the future and handle merges more reliably. |
Beta Was this translation helpful? Give feedback.
-
|
This is expected behavior with the Copilot Coding Agent right now. When other commits are merged into Why this happens
How to fix itYou have a few practical options: Option 1: Manually update the branchRebase: git checkout <copilot-branch>
git fetch origin
git rebase origin/main
# resolve conflicts manually
git push --force-with-leaseOr merge instead of rebase: git checkout <copilot-branch>
git fetch origin
git merge origin/main
git pushOption 2: Close and recreateIf conflicts are complex, it may be easier to:
Option 3: Ask Copilot to regenerate properlyInstead of asking it to “resolve conflicts”, try prompting:
This sometimes works better than asking for conflict resolution directly. Suggestion for GitHub TeamIt would be helpful if the Coding Agent:
Right now, manual intervention is required in these cases. |
Beta Was this translation helpful? Give feedback.
-
|
Solved! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Copilot Feature Area
Copilot Coding Agent
Body
Hi!
I have PR opened by Copilot Coding Agent.
It's been active for over a day and there was some other changes merged to
mainbranch which resulted in checks failing on coflict resolution.I've asked copilot to deal with that but it looks like it is not capable of doing such thing :(

Beta Was this translation helpful? Give feedback.
All reactions