Skip to content

fix(agents): propagate store and configurable to ToolNode middleware runtime#10446

Merged
Hunter Lovell (hntrl) merged 1 commit intomainfrom
hunter/config-propagation
Mar 17, 2026
Merged

fix(agents): propagate store and configurable to ToolNode middleware runtime#10446
Hunter Lovell (hntrl) merged 1 commit intomainfrom
hunter/config-propagation

Conversation

@hntrl
Copy link
Member

Summary

Propagates store and configurable from the LangGraph config to the middleware runtime in ToolNode, fixing an issue where wrapToolCall middleware could not access the LangGraph store or configurable values.

Changes

langchain

When ToolNode builds the runtime object passed to middleware's wrapToolCall, it was missing store and configurable from the LangGraphRunnableConfig. This meant middleware that needed to read from or write to the LangGraph store during tool execution had no way to access it.

This adds both store and configurable to the runtime object alongside the existing context, writer, interrupt, and signal fields.

Two tests are added to verify:

  • store and configurable are available in wrapToolCall middleware runtime
  • store is available in wrapModelCall middleware runtime

@changeset-bot
Copy link

changeset-bot bot commented Mar 17, 2026

🦋 Changeset detected

Latest commit: 1ba1a3e

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

This PR includes changesets to release 1 package
Name Type
langchain 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

Copy link
Member

Choose a reason for hiding this comment

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

👍

@github-actions github-actions bot added the ready label Mar 17, 2026
@hntrl Hunter Lovell (hntrl) merged commit 888224c into main Mar 17, 2026
30 checks passed
@hntrl Hunter Lovell (hntrl) deleted the hunter/config-propagation branch March 17, 2026 22:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants