botmux-workflow-core 3.18.14-canary.1 → 3.19.1

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.
@@ -2093,7 +2093,7 @@ function withFileLockSync(targetPath, fn, opts = {}) {
2093
2093
  continue;
2094
2094
  }
2095
2095
  }
2096
- if (Date.now() - start > maxWaitMs) {
2096
+ if (Date.now() - start >= maxWaitMs) {
2097
2097
  throw new FileLockTimeoutError(lockPath, holder?.pid, lockAgeMs);
2098
2098
  }
2099
2099
  sleepSync(RETRY_BASE_MS + Math.random() * RETRY_BASE_MS);
@@ -5741,7 +5741,11 @@ async function runWorkflow(dag, deps, opts) {
5741
5741
  nodeId: node.id,
5742
5742
  ...instanceId ? { instanceId } : {},
5743
5743
  attemptId,
5744
- sessionInfo: { sessionId: info.sessionId, webPort: info.webPort },
5744
+ sessionInfo: {
5745
+ sessionId: info.sessionId,
5746
+ webPort: info.webPort,
5747
+ ...info.viewToken ? { viewToken: info.viewToken } : {}
5748
+ },
5745
5749
  ptyLogPath: info.ptyLogPath
5746
5750
  });
5747
5751
  }