Repository navigation
Conversation
Adds SessionInfo (exclusive_worker, bound_worker_info) in session/v1 and records it on WorkflowTaskStartedEventAttributes (session_info) and WorkflowExecutionStartedEventAttributes (inherited_session_info), so the server can rebuild a workflow's worker binding from history, for example on reset. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Shivs11
marked this pull request as ready for review
November 20, 2026 21:32
Sushisource
reviewed
Nov 20, 2026
| } | ||
|
|
||
| // EXPERIMENTAL. Subject to redesign or removal. | ||
| // Which worker a workflow (which is the session) is bound to. The server records it on history events |
Member
There was a problem hiding this comment.
Is the workflow always == to the session? For future users of this message? If so this should just be called WorkflowSessionInfo, otherwise strike that language
Member
Author
There was a problem hiding this comment.
yeah the workflow is the session, at-least for now. This can change in the near future though, which is why SessionInfo sounds more appropriate imo (for eg, you could have activities that want to be routed to some different session that is not the workflow it was scheduled from)
Member
There was a problem hiding this comment.
K, then I'd change the docstring.
Member
Author
|
Folded into #885 so the session API can be reviewed in one place. |
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 changed?
New
SessionInfo/BoundWorkerInfoinsession/v1, recorded onWorkflowTaskStartedEventAttributes.session_infoandWorkflowExecutionStartedEventAttributes.inherited_session_info.Why?
Bindings live only in mutable state today, so a reset (or any rebuild from history) loses them; exclusive workflows must keep their worker across resets. Server-only; SDKs ignore these fields.
Breaking changes
None. New experimental fields.
Server PR
To follow, on top of the session stack.