patchrelay 0.35.9 → 0.35.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.35.9",
4
- "commit": "26b4d319fde3",
5
- "builtAt": "2026-04-03T23:53:54.564Z"
3
+ "version": "0.35.11",
4
+ "commit": "77fedbcefb07",
5
+ "builtAt": "2026-04-04T04:28:17.653Z"
6
6
  }
@@ -77,9 +77,9 @@ export class IdleIssueReconciler {
77
77
  await this.routeFailedIssue(issue);
78
78
  continue;
79
79
  }
80
- // Probe GitHub for stale pr_open issues: detect missed reviews,
81
- // merge conflicts, and other state that webhooks may have missed.
82
- if (issue.factoryState === "pr_open") {
80
+ // Probe GitHub for idle issues with PRs: detect missed reviews,
81
+ // merge conflicts, and orphaned repair states.
82
+ if (issue.prNumber) {
83
83
  await this.reconcileFromGitHub(issue);
84
84
  }
85
85
  }
@@ -228,6 +228,15 @@ export class IdleIssueReconciler {
228
228
  this.advanceIdleIssue(issue, "done", { clearFailureProvenance: true });
229
229
  return;
230
230
  }
231
+ if (pr.state === "CLOSED") {
232
+ this.logger.info({ issueKey: issue.issueKey, prNumber: issue.prNumber }, "Reconciliation: PR was closed, re-delegating for implementation");
233
+ this.db.upsertIssue({ projectId: issue.projectId, linearIssueId: issue.linearIssueId, prState: "closed" });
234
+ this.advanceIdleIssue(issue, "delegated", {
235
+ pendingRunType: "implementation",
236
+ clearFailureProvenance: true,
237
+ });
238
+ return;
239
+ }
231
240
  if (pr.reviewDecision === "APPROVED") {
232
241
  this.db.upsertIssue({ projectId: issue.projectId, linearIssueId: issue.linearIssueId, prReviewState: "approved" });
233
242
  this.advanceIdleIssue(issue, "awaiting_queue", { clearFailureProvenance: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.35.9",
3
+ "version": "0.35.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {