Scope correlation-ID event lookups to a run - #3762
Merged
Merged
Conversation
🦋 Changeset detectedLatest commit: a9587c2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 20 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
Contributor
🧪 E2E Test Results❌ Some tests failed Summary
❌ Failed Tests🌍 Community Worlds (106 failed)redis (21 failed):
turso (85 failed):
Details by Category✅ ▲ Vercel Production
✅ 💻 Local Development
✅ 📦 Local Production
✅ 🐘 Local Postgres
✅ 🪟 Windows
❌ 🌍 Community Worlds
✅ 📋 Other
|
VaguelySerious
approved these changes
Aug 24, 2026
Co-authored-by: Peter Wielander <mittgfu@gmail.com> Signed-off-by: Karthik Kalyan <105607645+karthikscale3@users.noreply.github.com>
Merged
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.
What
Correlation-ID event lookups (
events.listByCorrelationId) now accept and send an optionalrunId.@workflow/world: optionalrunIdon the params (additive — existingWorldimplementations keep working unchanged).@workflow/world-vercel: sendsrunIdas a query parameter when provided, and keeps filtering the returned page by run as a compatibility guard for backends that ignore it.@workflow/web: the run-details event view now passes the run it is already looking at through to the lookup (it previously only filtered results by it client-side).@workflow/world-local/@workflow/world-postgres: honor the new param.Why
A correlation ID names a step, hook, or wait within its run — it isn't guaranteed unique across runs. Scoping the lookup to the run makes it precise and lets backends answer from the run's own event log instead of a cross-run search. This brings the 4.x line in step with 5.x, where
runIdis already required on this call (#3280) — kept optional here so it lands as a non-breaking patch.Behavior
Optional everywhere: older backends ignore the param and the client-side run filter preserves today's results; no behavior change for any caller that doesn't pass
runId.🤖 Generated with Claude Code