github-actions[bot]
1b66d654dd
chore: version packages ( #2347 )
...
This PR was opened by the [Changesets
release](https://github.com/changesets/action ) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.
# Releases
## @langchain/langgraph-sdk@1.8.10
### Patch Changes
- [#2340 ](https://github.com/langchain-ai/langgraphjs/pull/2340 )
[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )
Thanks [@cwlbraa](https://github.com/cwlbraa )! - Respect
`fetchStateHistory` when restoring subagent history.
## @langchain/angular@0.4.6
### Patch Changes
- [#2340 ](https://github.com/langchain-ai/langgraphjs/pull/2340 )
[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )
Thanks [@cwlbraa](https://github.com/cwlbraa )! - Respect
`fetchStateHistory` when restoring subagent history.
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/langgraph-sdk@1.8.10
## @langchain/react@0.3.4
### Patch Changes
- [#2340 ](https://github.com/langchain-ai/langgraphjs/pull/2340 )
[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )
Thanks [@cwlbraa](https://github.com/cwlbraa )! - Respect
`fetchStateHistory` when restoring subagent history.
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/langgraph-sdk@1.8.10
## @langchain/svelte@0.4.6
### Patch Changes
- [#2340 ](https://github.com/langchain-ai/langgraphjs/pull/2340 )
[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )
Thanks [@cwlbraa](https://github.com/cwlbraa )! - Respect
`fetchStateHistory` when restoring subagent history.
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/langgraph-sdk@1.8.10
## @langchain/vue@0.4.6
### Patch Changes
- [#2340 ](https://github.com/langchain-ai/langgraphjs/pull/2340 )
[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )
Thanks [@cwlbraa](https://github.com/cwlbraa )! - Respect
`fetchStateHistory` when restoring subagent history.
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/langgraph-sdk@1.8.10
## @example/ai-elements@0.1.13
### Patch Changes
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/react@0.3.4
## @examples/assistant-ui-claude@0.1.13
### Patch Changes
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/react@0.3.4
## @examples/ui-angular@0.0.23
### Patch Changes
- Updated dependencies
\[[`6bab458`](https://github.com/langchain-ai/langgraphjs/commit/6bab458d4a03ce2d7b2708488b92226899eb94d4 )]:
- @langchain/langgraph-sdk@1.8.10
- @langchain/angular@0.4.6
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-29 09:34:18 -07:00
Connor Braa
6bab458d4a
fix(sdk): respect fetchStateHistory for subagent history ( #2340 )
...
## Summary
- skip eager subagent history restoration when `fetchStateHistory` is
`false`
- reuse numeric `fetchStateHistory` limits for subagent namespace
discovery
- add orchestrator regression coverage for both cases
## Context
- Slack thread:
https://langchain.slack.com/archives/C09BAECNA14/p1776755205756119
- [Agent Builder
trace](https://langchain-us.datadoghq.com/apm/entity/service%3Aagent_builder_prod?dependencyMap.showNetworkMetrics=false&fromUser=false&graphType=flamegraph&groupMapByOperation=null&historicalData=true&panels=qson%3A%28data%3A%28activePanelKey%3Atrace%2Cresource%3A%28resourceName%3APOST%2520%252Fthreads%252F%257Bthread_id%257D%252Fhistory%2CresourceID%3A2bfaa153eac24153%2CoperationName%3Astarlette.request%29%2Ctrace%3A%28traceID%3A69ef784f000000001773743cf39a72b5%2CspanID%3A8969752200629810217%2ChasSearchOrFacetActions%3A%21f%29%29%2Cversion%3A%210%29&resources=qson%3A%28data%3A%28visible%3A%21t%2Chits%3A%28selected%3Arate%2CgroupBy%3A%5Bresource_name%5D%29%2Cerrors%3A%28selected%3Atotal%2CgroupBy%3A%5Bresource_name%5D%29%2Clatency%3A%28selected%3Ap95%2CgroupBy%3A%5Bresource_name%5D%29%2CtopN%3Aall%29%2Cversion%3A%211%29&shouldShowLegend=true&spanID=8969752200629810217&spanKind=server&spanViewType=logs&summary=qson%3A%28data%3A%28visible%3A%21t%2Cchanges%3A%28%29%2Cerrors%3A%28selected%3Acount%2CgroupBy%3A%5B%5D%29%2Chits%3A%28selected%3Arate%2CgroupBy%3A%5B%5D%29%2Clatency%3A%28selected%3Alatency%2Cslot%3A%28agg%3A95%29%2Cdistribution%3A%28isLogScale%3A%21f%29%2CshowTraceOutliers%3A%21t%2CgroupBy%3A%5B%5D%2Coperation%3Astarlette.request%29%2Csublayer%3A%28slot%3A%28layers%3AserviceAndInferred%29%2Cselected%3Apercentage%29%2ClagMetrics%3A%28selectedMetric%3A%21s%2CselectedGroupBy%3A%21s%29%29%2Cversion%3A%211%29&timeHint=1777301587169&trace=AwAAAZ3PbgThpE93_wAAABhBWjNQYmdkWUFBQ2ZVVkFJVExwS3lYTVgAAAAkMTE5ZGNmODctODg4Ny00ZTY5LThlN2MtNGEzOWU2ZTE3ZjY0AAUrsg&traceID=69ef784f000000001773743cf39a72b5&traceQuery=&start=1777062982891&end=1777322182891&paused=false )
## Test Plan
- `corepack pnpm exec vitest run src/ui/orchestrator.test.ts
--typecheck.enabled=false` from `libs/sdk`
- `corepack pnpm run lint -- libs/sdk-react/src/stream.lgp.tsx
libs/sdk/src/react/stream.lgp.tsx libs/sdk/src/ui/orchestrator.ts
libs/sdk/src/ui/manager.ts libs/sdk/src/ui/orchestrator.test.ts`
- `corepack pnpm run format:check -- libs/sdk-react/src/stream.lgp.tsx
libs/sdk/src/react/stream.lgp.tsx libs/sdk/src/ui/orchestrator.ts
libs/sdk/src/ui/manager.ts libs/sdk/src/ui/orchestrator.test.ts
.changeset/tame-subagent-history.md`
2026-04-29 08:53:30 -07:00
github-actions[bot]
aba243a403
chore: version packages ( #2313 )
...
This PR was opened by the [Changesets
release](https://github.com/changesets/action ) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.
# Releases
## @langchain/langgraph@1.2.9
### Patch Changes
- [#2315 ](https://github.com/langchain-ai/langgraphjs/pull/2315 )
[`9102d52`](https://github.com/langchain-ai/langgraphjs/commit/9102d526c858a4cdbe9b47dcdd062b93da93e49f )
Thanks [@hntrl](https://github.com/hntrl )! - propagate tracer metadata
defaults from configurable
- [#2311 ](https://github.com/langchain-ai/langgraphjs/pull/2311 )
[`b7c196b`](https://github.com/langchain-ai/langgraphjs/commit/b7c196b2142fb888dfcd9ceb1dfb4365d803c8b6 )
Thanks [@open-swe](https://github.com/apps/open-swe )! - fix: export
missing types for typescript 6.0 declaration file compatibility
- Updated dependencies
\[[`458d66b`](https://github.com/langchain-ai/langgraphjs/commit/458d66bf665468854abb8133594d4d4f966054ed )]:
- @langchain/langgraph-sdk@1.8.9
## @langchain/langgraph-sdk@1.8.9
### Patch Changes
- [#2302 ](https://github.com/langchain-ai/langgraphjs/pull/2302 )
[`458d66b`](https://github.com/langchain-ai/langgraphjs/commit/458d66bf665468854abb8133594d4d4f966054ed )
Thanks [@AdrianSajjan](https://github.com/AdrianSajjan )! - fix(sdk):
preserve messages on interrupt values events
Add a regression test for interrupt-only `values` payloads to ensure
previously streamed messages are not overwritten when `__interrupt__` is
emitted.
## @example/ai-elements@0.1.12
### Patch Changes
- Updated dependencies
\[[`9102d52`](https://github.com/langchain-ai/langgraphjs/commit/9102d526c858a4cdbe9b47dcdd062b93da93e49f ),
[`b7c196b`](https://github.com/langchain-ai/langgraphjs/commit/b7c196b2142fb888dfcd9ceb1dfb4365d803c8b6 )]:
- @langchain/langgraph@1.2.9
## @examples/assistant-ui-claude@0.1.12
### Patch Changes
- Updated dependencies
\[[`9102d52`](https://github.com/langchain-ai/langgraphjs/commit/9102d526c858a4cdbe9b47dcdd062b93da93e49f ),
[`b7c196b`](https://github.com/langchain-ai/langgraphjs/commit/b7c196b2142fb888dfcd9ceb1dfb4365d803c8b6 )]:
- @langchain/langgraph@1.2.9
## @examples/ui-angular@0.0.22
### Patch Changes
- Updated dependencies
\[[`458d66b`](https://github.com/langchain-ai/langgraphjs/commit/458d66bf665468854abb8133594d4d4f966054ed ),
[`9102d52`](https://github.com/langchain-ai/langgraphjs/commit/9102d526c858a4cdbe9b47dcdd062b93da93e49f ),
[`b7c196b`](https://github.com/langchain-ai/langgraphjs/commit/b7c196b2142fb888dfcd9ceb1dfb4365d803c8b6 )]:
- @langchain/langgraph-sdk@1.8.9
- @langchain/langgraph@1.2.9
## langgraph@1.0.31
### Patch Changes
- Updated dependencies
\[[`9102d52`](https://github.com/langchain-ai/langgraphjs/commit/9102d526c858a4cdbe9b47dcdd062b93da93e49f ),
[`b7c196b`](https://github.com/langchain-ai/langgraphjs/commit/b7c196b2142fb888dfcd9ceb1dfb4365d803c8b6 )]:
- @langchain/langgraph@1.2.9
---------
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunter Lovell <hunter@hntrl.io >
2026-04-16 07:07:37 +00:00
Hunter Lovell
9102d526c8
fix(langgraph): propagate tracer metadata defaults from configurable ( #2315 )
...
## Summary
This updates Pregel callback manager initialization to pass
`tracerInheritableMetadata` defaults derived from `config.configurable`,
and narrows `ensureLangGraphConfig` metadata mirroring to the
allowlisted LangGraph identifiers used in stream/runtime metadata.
## Changes
### `@langchain/langgraph` (`libs/langgraph-core`)
- Updated Pregel callback manager setup to configure core callbacks with
`tracerInheritableMetadata` based on configurable primitive values,
excluding internal and secret-like keys.
- Hoisted tracing default logic into `_getTracingMetadataDefaults` and
`_excludeAsMetadata` for parity with the Python implementation shape.
- Restricted `ensureLangGraphConfig` configurable-to-metadata
propagation to the identifier allowlist:
- `thread_id`
- `checkpoint_id`
- `checkpoint_ns`
- `task_id`
- `run_id`
- `assistant_id`
- `graph_id`
- Updated config tests to assert the narrowed metadata propagation
behavior.
2026-04-15 18:48:41 -07:00
Adrian Sajjan
458d66bf66
Prevent values from getting overrwritten on interrupt event ( #2302 )
...
Issue:
In multi-agent sustem with handoffs like this example:
https://docs.langchain.com/oss/python/langchain/multi-agent/handoffs#multiple-agent-subgraphs ,
if we trigger an interrupt from an agent within a swarm workflow, the
interrupt is propagated and sent twice, the last interrupt contains
values from the main graphs state, which is always going to be behind
the state of the agent from where interrupt is triggered. So,
temporarily, the message data becomes empty, it gets refilled when
interrupt is resumed
Fixes:
Do not update values when interrupt is recieved, just update the
interrupt in the state with the latest __interrupt data.
---------
Co-authored-by: Hunter Lovell <hunter@hntrl.io >
2026-04-14 12:54:08 -07:00
github-actions[bot]
2a5b85bf55
chore: version packages ( #2293 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-05 18:28:15 -07:00
Christian Bromann
33293c7f3f
fix(sdk): buffer subagent messages instead of dropping them ( #2292 )
2026-04-05 18:22:36 -07:00
Christian Bromann
4cddca61ce
fix(vue): actually make it reactive ( #2290 )
2026-04-05 17:36:19 -07:00
github-actions[bot]
29f071d826
chore: version packages ( #2286 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-03 23:09:53 -07:00
Christian Bromann
a5dfdb61c7
fix(sdk): detect interrupt for Python agents ( #2285 )
2026-04-03 23:06:34 -07:00
github-actions[bot]
7176861f72
chore: version packages ( #2284 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-03 22:29:39 -07:00
Christian Bromann
2b62610710
feat(sdk): support for headless tools ( #2281 )
2026-04-03 22:07:54 -07:00
github-actions[bot]
37e10413af
chore: version packages ( #2280 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-03 14:01:42 -07:00
Christian Bromann
3bbb3ff65a
fix(sdk): better type inferrence ( #2279 )
2026-04-03 13:53:35 -07:00
Christian Bromann
0d04099958
fix(vue): Make subagents accessible once they are spun up ( #2278 )
2026-04-03 13:53:16 -07:00
dependabot[bot]
e72c8e769e
chore(deps-dev): bump the svelte group across 1 directory with 3 updates ( #2272 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Christian Bromann <git@bromann.dev >
2026-04-03 09:59:39 -07:00
dependabot[bot]
2bb2ed4565
chore(deps): bump the vue group across 1 directory with 4 updates ( #2273 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Hunter Lovell <hunter@hntrl.io >
2026-04-02 00:37:15 -07:00
dependabot[bot]
271f9750f0
chore(deps): bump the langchain group across 1 directory with 7 updates ( #2270 )
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-01 23:59:19 -07:00
github-actions[bot]
981853c019
chore: version packages ( #2264 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-04-01 21:31:17 -07:00
Christian Bromann
936b48b280
fix(sdk): restore snake_case interrupt aliases ( #2263 )
2026-04-01 14:57:37 -07:00
github-actions[bot]
0b51ec611f
chore: version packages ( #2254 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-31 13:22:13 -07:00
Bryan Dartout
d9d807ebb0
fix(sdk): accumulate parallel interrupts in StreamManager ( #2204 )
...
Co-authored-by: Christian Bromann <git@bromann.dev >
2026-03-31 13:08:33 -07:00
Christian Bromann
d88f29ba25
chore(repo): migrate linting and formatting from ESLint/Prettier to oxlint/oxfmt ( #2256 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Christian Bromann <christian-bromann@users.noreply.github.com >
Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com >
2026-03-30 18:08:00 -07:00
github-actions[bot]
7d88f577b8
chore: version packages ( #2251 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-27 19:53:14 -07:00
Christian Bromann
8eaf410692
fix(sdk): skip post-stream getHistory for zero-arity onFinish ( #2250 )
2026-03-27 19:49:13 -07:00
github-actions[bot]
9905dd102e
chore: version packages ( #2238 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-26 10:37:47 -07:00
Christian Bromann
7dfcbffd48
fix(skd): normalize interrupts between JS and Python ( #2243 )
2026-03-26 00:51:34 -07:00
Christian Bromann
88726dfe22
Extract shared WithClassMessages<T> type to @langchain/langgraph-sdk/ui ( #2237 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Christian Bromann <christian-bromann@users.noreply.github.com >
2026-03-22 11:34:20 -07:00
github-actions[bot]
d4456c06f4
chore: version packages ( #2232 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-20 15:25:27 -07:00
Christian Bromann
414a7adf90
feat: extract shared orchestrator to eliminate duplicated code across SDK packages ( #2227 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Christian Bromann <christian-bromann@users.noreply.github.com >
2026-03-20 14:10:14 -07:00
github-actions[bot]
c8185ddb4b
chore: version packages ( #2216 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-20 00:33:55 -07:00
Christian Bromann
5460157725
Add Angular 21 to @angular/core peer dependency range ( #2217 )
...
Co-authored-by: Cursor Agent <cursoragent@cursor.com >
Co-authored-by: Christian Bromann <christian-bromann@users.noreply.github.com >
2026-03-19 23:10:38 -07:00
Christian Bromann
fe4dd5b85d
Revert "chore: version packages ( #2203 )"
...
This reverts commit c75409d461 .
2026-03-19 22:45:52 -07:00
github-actions[bot]
c75409d461
chore: version packages ( #2203 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-19 21:39:21 -07:00
AlbertGao
a55b6fe3a0
Forward streamSubgraphs in custom transports ( #2215 )
...
Co-authored-by: Christian Bromann <git@bromann.dev >
2026-03-19 21:33:51 -07:00
Christian Bromann
963db6fbc7
fix(sdk): fetch subagent history ( #2191 )
2026-03-19 21:29:17 -07:00
pawel-twardziak
2b775302b6
fix(sdk): support onFinish callback in custom transport ( #2199 )
2026-03-18 18:36:46 -07:00
github-actions[bot]
09deb8ba88
chore: version packages ( #2202 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunter Lovell <hunter@hntrl.io >
2026-03-17 19:23:41 -07:00
Hunter Lovell
3873f36c42
Add checkpointId support to SDK client ( #2200 )
2026-03-17 17:06:04 -07:00
github-actions[bot]
a1e2abff1e
chore: version packages ( #2174 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Hunter Lovell <hunter@hntrl.io >
2026-03-17 18:10:42 +00:00
pawel-twardziak
8fec72ae98
fix(sdk): update aiMessageId in SubagentManager when provider replaces it ( #2189 )
2026-03-16 19:18:43 -07:00
Hunter Lovell
b80076c5a7
fix(sdk): handle null values in functional graph checkpoint history ( #2177 )
2026-03-11 16:17:27 -07:00
William FH
a24bb550fb
chore: sdk method updates ( #2173 )
...
Co-authored-by: Josh Rogers <josh@langchain.dev >
2026-03-11 18:31:30 -04:00
Josh Rogers
a9ff2efdf0
feat(sdk): add cancelMany method to sdk ( #2170 )
...
Co-authored-by: Hunter Lovell <40191806+hntrl@users.noreply.github.com >
2026-03-11 12:51:44 -07:00
github-actions[bot]
e493f1053f
chore: version packages ( #2169 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-10 23:46:31 -07:00
Christian Bromann
98da019c92
fix(sdk): revert dependency between old SDK and new react package ( #2168 )
2026-03-10 23:41:03 -07:00
github-actions[bot]
f4ed01eb2f
chore: version packages ( #2167 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-10 17:39:14 -07:00
Mudit Somani
745112c0d7
fix: use optimistic threadId in a custom stream ( #2014 )
...
Co-authored-by: Christian Bromann <git@bromann.dev >
2026-03-10 17:29:34 -07:00
Christian Bromann
8faf05c939
feat(sdk): convert history messages to BaseMessage instances in framework SDKs ( #2165 )
2026-03-10 17:22:18 -07:00
github-actions[bot]
3428ae5335
chore: version packages ( #2042 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-03-10 12:58:19 -07:00