@sema-agent/core 1.382.0 → 1.384.0

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.
@@ -2561,7 +2561,7 @@ export function createSendMessageTool(opts) {
2561
2561
  try {
2562
2562
  const now = Date.now();
2563
2563
  const nextSeq = (row.seq ?? 1) + 1;
2564
- const claimed = { ...row, status: "running", writerId: opts.registry.writerId, updatedAt: now, seq: nextSeq };
2564
+ const claimed = { ...row, status: "running", writerId: opts.registry.writerId, writerEpoch: (row.writerEpoch ?? 0) + 1, updatedAt: now, seq: nextSeq };
2565
2565
  delete claimed.settledAt;
2566
2566
  delete claimed.stoppedBy;
2567
2567
  delete claimed.finalOutput;