Files
vercel__workflow/.changeset/replay-lineage-execution-context.md
Mitul Shah 36c63af4a8 feat(core): record replay lineage in run executionContext (#2872)
* feat(core): record replay lineage in run executionContext

recreateRunFromExisting now stamps the source run id into the new run's
executionContext as `replayedFromRunId`, and `start` accepts a matching
option. This lets tooling (e.g. the dashboard runs list) surface a run as
a replay and link back to the run it was replayed from — previously a
replay started a brand-new run with no link to its origin.

Co-authored-by: Cursor <cursoragent@cursor.com>

* Apply suggestion from @mitul-s

Signed-off-by: Mitul Shah <mitulxshah@gmail.com>

* cleanup

* Update runs.test.ts

* update

---------

Signed-off-by: Mitul Shah <mitulxshah@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-10 14:37:39 -07:00

272 B

@workflow/core
@workflow/core
minor

Record the source run on replays: recreateRunFromExisting now stamps replayedFromRunId into the new run's executionContext (and start accepts a matching option) so tooling can surface a run as a replay and link back to its origin.