agents-relay 1.0.174 → 1.0.175

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.
@@ -109,8 +109,10 @@ export class Reconciler extends ReconcilerReviewBase {
109
109
  const previousState = job.state;
110
110
  const prState = await this.store.pullRequestState?.() ?? 'OPEN';
111
111
  const headSha = prState === 'OPEN' ? await this.currentHeadSha(job) : null;
112
- if (headSha)
112
+ if (headSha && job.headSha !== headSha) {
113
113
  job.headSha = headSha;
114
+ await this.store.saveJob(job);
115
+ }
114
116
  await this.invalidateStaleReview(job, headSha);
115
117
  const now = (this.options.now ?? new Date()).getTime();
116
118
  if (prState !== 'OPEN') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agents-relay",
3
- "version": "1.0.174",
3
+ "version": "1.0.175",
4
4
  "description": "Durable async agent jobs coordinated through GitHub pull requests",
5
5
  "type": "module",
6
6
  "bin": {