Merged
Conversation
Add isReplay boolean to the run context, following the same pattern as isTest. The value is derived from the existing replayedFromTaskRunFriendlyId database field - no schema migration needed. Changes: - Add isReplay to TaskRun and V3TaskRun schemas (default false) - Add RUN_IS_REPLAY semantic attribute - Propagate isReplay through dequeue and attempt systems - Add isReplay to DequeuedMessage and LazyAttemptPayload schemas Co-Authored-By: nick <55853254+nicktrn@users.noreply.github.com>
🦋 Changeset detectedLatest commit: c64b9d6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 29 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: nick <55853254+nicktrn@users.noreply.github.com>
Co-Authored-By: nick <55853254+nicktrn@users.noreply.github.com>
Co-Authored-By: nick <55853254+nicktrn@users.noreply.github.com>
Co-Authored-By: nick <55853254+nicktrn@users.noreply.github.com>
Collaborator
|
ready |
myftija
approved these changes
Apr 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
isReplayboolean to the run context (ctx.run.isReplay), following the same pattern as the existingisTest. The value is derived from the existingreplayedFromTaskRunFriendlyIddatabase field, so no schema migration is needed.✅ Checklist
Testing
@trigger.dev/corebuilds successfullywebapptypechecks successfullydefault(false)for backwards compatibilityChangelog
isReplaytoTaskRunandV3TaskRunschemas incommon.tsRUN_IS_REPLAYsemantic attribute and wired it intaskContextisReplaythrough the dequeue system, run attempt system, and all execution context construction paths (V1 + V2)isReplaytoDequeuedMessageandTaskRunExecutionLazyAttemptPayloadschemas@trigger.dev/coreisReplayto context reference, added "Detecting replays" section to replaying page💯
Link to Devin session: https://app.devin.ai/sessions/1d6f1b3cc39a4623b72d05bf00f2d70c