Skip to content

feat: Event Groups support (experimental) - #2209

Open
mjameswh wants to merge 1 commit into
mainfrom
event-groups-feature
Open

feat: Event Groups support (experimental)#2209
mjameswh wants to merge 1 commit into
mainfrom
event-groups-feature

Conversation

@mjameswh

@mjameswh mjameswh commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

Initial TypeScript SDK implementation of Event Groups.

  • Explicit markers: createEventGroup(label) returns a marker attachable to commands via a eventGroups: [...] option or an execution scope (eventGroup.withScope(...), propagated through coroutines via AsyncLocalStorage). Nested scopes compose; markers dedupe by id.
  • Implicit markers: automatically wrap the workflow main function, signal handlers, and update handlers.
  • Markers are serialized onto outgoing commands as eventGroupMarkers. Explicit label marker ids are derived deterministically as SHA1(originalExecutionRunId + label) (sandbox-safe SHA-1 in sha1.ts).
  • Exposes WorkflowInfo.originalExecutionRunId (plumbed core → lang) and bumps the sdk-core submodule to the matching build.

Testing

Event Groups support requires Server v1.32.0-158.0, which has not yet been included in a published CLI release. In the mean time, tests can be run using the following CLI specifier:

TESTS_CLI_VERSION=v1.7.4-standalone-nexus-operations

@mjameswh
mjameswh force-pushed the event-groups-feature branch from 3904617 to a819c84 Compare August 11, 2026 17:05
@mjameswh
mjameswh marked this pull request as ready for review August 11, 2026 17:24
@mjameswh
mjameswh requested review from a team as code owners August 11, 2026 17:24
@mjameswh
mjameswh force-pushed the event-groups-feature branch from a819c84 to f2a70ac Compare August 11, 2026 17:42
@mjameswh
mjameswh force-pushed the event-groups-feature branch from f2a70ac to cb15168 Compare August 11, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant