Opencode Github Integration says it's created a PR, but it hasn't #2707

Closed
opened 2026-02-16 17:36:54 -05:00 by yindo · 2 comments
Owner

Originally created by @AKTheKnight on GitHub (Nov 8, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

I ran /oc on an issue, and the github integration ran, but then it didn't actually create the PR (Despite thinking it had created it).

I think this is the same cause as #1417 where because it did make a commit the branchIsDirty() check is false because git status --porcelain returns nothing if we've committed the changes. So then the const pr = await createPR( never runs and it doesn't actually open the PR

OpenCode version

1.0.46

Steps to reproduce

No response

Screenshot and/or share link

The start of the comment:
Image

And the end:
Image

And the logs:

Image

Operating System

No response

Terminal

No response

Originally created by @AKTheKnight on GitHub (Nov 8, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description I ran /oc on an issue, and the github integration ran, but then it didn't actually create the PR (Despite thinking it had created it). I think this is the same cause as #1417 where because it did make a commit the `branchIsDirty()` check is false because git status --porcelain returns nothing if we've committed the changes. So then the `const pr = await createPR(` never runs and it doesn't actually open the PR ### OpenCode version 1.0.46 ### Steps to reproduce _No response_ ### Screenshot and/or share link The start of the comment: <img width="904" height="240" alt="Image" src="https://github.com/user-attachments/assets/0aa82793-a2d5-4628-8a97-749a11af6b64" /> And the end: <img width="732" height="38" alt="Image" src="https://github.com/user-attachments/assets/ddfef6e3-72e3-470b-b50c-81185e29a4d9" /> And the logs: <img width="838" height="425" alt="Image" src="https://github.com/user-attachments/assets/6df6dc57-4fc1-454a-ab4d-655ba374b64a" /> ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:36:54 -05:00
yindo closed this issue 2026-02-16 17:36:54 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 8, 2025):

This issue might be a duplicate of existing issues. Please check:

  • #1417: Same root cause with branchIsDirty() check returning false after commits are made, preventing PR creation/pushing
  • #3893: Describes identical mechanism where commits aren't pushed due to branchIsDirty() returning false after agent commits

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 8, 2025): This issue might be a duplicate of existing issues. Please check: - #1417: Same root cause with branchIsDirty() check returning false after commits are made, preventing PR creation/pushing - #3893: Describes identical mechanism where commits aren't pushed due to branchIsDirty() returning false after agent commits Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Dec 17, 2025):

I think we fixed this, we will reopen if it continues

@rekram1-node commented on GitHub (Dec 17, 2025): I think we fixed this, we will reopen if it continues
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2707