patchrelay 0.10.6 → 0.10.7

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.10.6",
4
- "commit": "39ced0e75b38",
5
- "builtAt": "2026-03-22T22:02:35.390Z"
3
+ "version": "0.10.7",
4
+ "commit": "6593575e7ee8",
5
+ "builtAt": "2026-03-22T22:06:15.644Z"
6
6
  }
@@ -100,7 +100,7 @@ export class GitHubWebhookHandler {
100
100
  if (newState === "failed" && event.triggerEvent === "pr_closed" && issue.activeRunId !== undefined) {
101
101
  newState = undefined;
102
102
  }
103
- if (newState) {
103
+ if (newState && newState !== issue.factoryState) {
104
104
  this.db.upsertIssue({
105
105
  projectId: issue.projectId,
106
106
  linearIssueId: issue.linearIssueId,
@@ -30,7 +30,7 @@ function buildRunPrompt(issue, runType, repoPath, context) {
30
30
  const lines = [
31
31
  `Issue: ${issue.issueKey ?? issue.linearIssueId}`,
32
32
  issue.title ? `Title: ${issue.title}` : undefined,
33
- `Branch: ${issue.branchName}`,
33
+ issue.branchName ? `Branch: ${issue.branchName}` : undefined,
34
34
  issue.prNumber ? `PR: #${issue.prNumber}` : undefined,
35
35
  "",
36
36
  ].filter(Boolean);
@@ -161,8 +161,9 @@ export class RunOrchestrator {
161
161
  if (prepareResult.ran && prepareResult.exitCode !== 0) {
162
162
  throw new Error(`prepare-worktree hook failed (exit ${prepareResult.exitCode}): ${prepareResult.stderr?.slice(0, 500) ?? ""}`);
163
163
  }
164
- // Start or reuse Codex thread
165
- if (issue.threadId && runType !== "implementation") {
164
+ // Reuse the existing thread only for review_fix (reviewer context matters).
165
+ // Implementation, ci_repair, and queue_repair get fresh threads.
166
+ if (issue.threadId && runType === "review_fix") {
166
167
  threadId = issue.threadId;
167
168
  }
168
169
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.10.6",
3
+ "version": "0.10.7",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {