agents-relay 2.0.262 → 2.0.263

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.
Files changed (2) hide show
  1. package/dist/pool.js +6 -0
  2. package/package.json +1 -1
package/dist/pool.js CHANGED
@@ -29,6 +29,12 @@ export function needsLifecycleReconciliation(job, now = Date.now()) {
29
29
  if (pendingTroubleshooterTasks(job).length || pendingTroubleshooterReopens(job).length || pendingTroubleshooterRetries(job).length)
30
30
  return true;
31
31
  // Use the canonical Review Graph for restart wake-ups; Reconciler must still verify the live head SHA.
32
+ // A persisted Coordinator may finish before the local Git head is captured.
33
+ // Wake once to bind that head through Reconciler rather than leaving the
34
+ // completed DAG permanently ACTIVE/IDLE without a Final Review.
35
+ if (job.state === 'ACTIVE' && !job.headSha && job.graphStartContext?.projectPath &&
36
+ job.reviewEnabled !== false && reviewWorkSettled(job))
37
+ return true;
32
38
  if (job.state === 'ACTIVE' && job.headSha && job.reviewEnabled !== false) {
33
39
  const reviewTasks = job.tasks.filter(task => isFinalReviewAgent(task.agentName) && task.reviewHeadSha === job.headSha);
34
40
  const current = job.review?.taskId ? job.tasks.find(task => task.id === job.review?.taskId) : undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "2.0.262",
3
+ "version": "2.0.263",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "repository": {
6
6
  "type": "git",