Skip to content

fix(langgraph-api): stamp run_id on protocol v2 event envelopes - #2686

Open
Christian Bromann (christian-bromann) wants to merge 3 commits into
mainfrom
cb/protocol-v2-event-run-id
Open

fix(langgraph-api): stamp run_id on protocol v2 event envelopes#2686
Christian Bromann (christian-bromann) wants to merge 3 commits into
mainfrom
cb/protocol-v2-event-run-id

Conversation

@christian-bromann

Copy link
Copy Markdown
Member

Stamp run_id on every protocol v2 event from RunProtocolSession.createEvent, matching Agent Server. Lets clients correlate replay without parsing synth event ids.

Fixes #2609 (server half; SDK gate is a follow-up)

Parity with Agent Server so JS graphs expose the same durable run
identity on every protocol event.
@changeset-bot

changeset-bot Bot commented Aug 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 8bf9bb4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@langchain/langgraph-api Patch
@langchain/langgraph-cli Patch
@langchain/langgraph-ui Patch

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

@pkg-pr-new

pkg-pr-new Bot commented Aug 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

@langchain/langgraph-checkpoint

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-checkpoint@2686

@langchain/langgraph-checkpoint-mongodb

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-checkpoint-mongodb@2686

@langchain/langgraph-checkpoint-postgres

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-checkpoint-postgres@2686

@langchain/langgraph-checkpoint-redis

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-checkpoint-redis@2686

@langchain/langgraph-checkpoint-sqlite

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-checkpoint-sqlite@2686

@langchain/langgraph-checkpoint-validation

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-checkpoint-validation@2686

create-langgraph

npm i https://pkg.pr.new/langchain-ai/langgraphjs/create-langgraph@2686

@langchain/langgraph-api

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-api@2686

@langchain/langgraph-cli

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-cli@2686

@langchain/langgraph

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph@2686

@langchain/langgraph-cua

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-cua@2686

@langchain/langgraph-supervisor

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-supervisor@2686

@langchain/langgraph-swarm

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-swarm@2686

@langchain/langgraph-ui

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-ui@2686

@langchain/langgraph-sdk

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/langgraph-sdk@2686

@langchain/angular

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/angular@2686

@langchain/react

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/react@2686

@langchain/svelte

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/svelte@2686

@langchain/vue

npm i https://pkg.pr.new/langchain-ai/langgraphjs/@langchain/vue@2686

commit: 8bf9bb4

@open-swe open-swe Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Open SWE Review found 2 potential issues.

Open in WebView Open SWE trace

Comment thread libs/sdk/src/stream/submit-coordinator.ts Outdated
Comment thread .changeset/protocol-v2-event-run-id.md
Oxlint flagged let bindings that were only assigned once; collect
unsubscribes in a const array instead.
Drop the SDK RunBoundaryGate from this branch so #2686 stays the
server stamp only; the client gate ships separately.
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.

Protocol v2: stale lifecycle replay settles first submit after thread hydration

1 participant