Replay History throws exception ` RangeError: Start offset -2140326304 is outside the bounds of the buffer`

We have a script to Replay History to ensure we don’t merge non-deterministic changes.

But, sometimes, we get this error:

2025-07-31T14:38:26.367Z [INFO] Workflow bundle created {
  sdkComponent: 'worker',
  taskQueue: 'fake_replay_queue-134',
  size: '6.85MB'
}
2025-07-31T14:38:26.419Z [INFO] Worker state changed {
  sdkComponent: 'worker',
  taskQueue: 'fake_replay_queue-134',
  state: 'RUNNING'
}
/home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/lib/source-map-consumer.js:313
    const mappingsBuf = new Uint8Array(this._wasm.exports.memory.buffer, mappingsBufPtr, size);
                        ^

RangeError: Start offset -2140326304 is outside the bounds of the buffer
    at new Uint8Array (<anonymous>)
    at BasicSourceMapConsumer._parseMappings (/home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/lib/source-map-consumer.js:313:25)
    at BasicSourceMapConsumer._getMappingsPtr (/home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/lib/source-map-consumer.js:298:12)
    at /home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/lib/source-map-consumer.js:493:14
    at Object.withMappingCallback (/home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/lib/wasm.js:95:11)
    at BasicSourceMapConsumer.originalPositionFor (/home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/source-map@0.7.4/node_modules/source-map/lib/source-map-consumer.js:491:16)
    at /home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/@temporalio+worker@1.11.7_@swc+helpers@0.5.17/node_modules/@temporalio/worker/lib/workflow/vm-shared.js:147:51
    at Array.map (<anonymous>)
    at Error.prepareStackTrace (/home/runner/_work/veed-micro-ts/veed-micro-ts/node_modules/.pnpm/@temporalio+worker@1.11.7_@swc+helpers@0.5.17/node_modules/@temporalio/worker/lib/workflow/vm-shared.js:141:43)
    at prepareStackTraceCallback (node:internal/errors:150:29)

Node.js v22.17.1
 ELIFECYCLE  Command failed with exit code 1.

Wonder if this is a known issue?

Packages we’re using:

  '@temporalio/activity': 1.11.7
  '@temporalio/client': 1.11.7
  '@temporalio/worker': 1.11.7
  '@temporalio/workflow': 1.11.7
  '@temporalio/testing': 1.11.7
  '@temporalio/proto': 1.11.7
  '@temporalio/common': 1.11.7

Thanks in advance.