patchrelay 0.36.10 → 0.36.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.
- package/dist/build-info.json +3 -3
- package/dist/run-orchestrator.js +6 -0
- package/package.json +1 -1
package/dist/build-info.json
CHANGED
package/dist/run-orchestrator.js
CHANGED
|
@@ -423,7 +423,13 @@ export class RunOrchestrator {
|
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
// Zombie run: claimed in DB but Codex never started (no thread).
|
|
426
|
+
// If this process still owns the live lease, launch may still be in flight
|
|
427
|
+
// between worktree prep and Codex thread creation, so do not self-recover it.
|
|
426
428
|
if (!run.threadId) {
|
|
429
|
+
if (recoveryLease === "owned") {
|
|
430
|
+
this.logger.debug({ issueKey: issue.issueKey, runId: run.id, runType: run.runType }, "Skipping zombie reconciliation for locally-owned launch that has not created a thread yet");
|
|
431
|
+
return;
|
|
432
|
+
}
|
|
427
433
|
this.logger.warn({ issueKey: issue.issueKey, runId: run.id, runType: run.runType }, "Zombie run detected (no thread)");
|
|
428
434
|
this.withHeldIssueSessionLease(run.projectId, run.linearIssueId, () => {
|
|
429
435
|
this.db.runs.finishRun(run.id, { status: "failed", failureReason: "Zombie: never started (no thread after restart)" });
|