onRunCreated doesn't work in local dev #325

Closed
opened 2026-02-15 18:15:56 -05:00 by yindo · 0 comments
Owner

Originally created by @kenshin54 on GitHub (Aug 4, 2025).

Checked other resources

  • I added a very descriptive title to this issue.
  • I searched the LangGraph.js documentation with the integrated search.
  • I used the GitHub search to find a similar question and didn't find it.
  • I am sure that this is a bug in LangGraph.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package).

Example Code

let runId: string | null = null;
const state = await client.runs.wait(null, "assistant-id", {
  input: {},
  onRunCreated: (params) => {
    // never called in local env
    runId = params.run_id;
  },
});

Error Message and Stack Trace (if applicable)

No response

Description

Just want to report this, it's working in our production LGP, but not in local dev. I didn't even see it in the schema.

https://github.com/langchain-ai/langgraphjs/blob/2d8d273fa31a295e4d02783720c944bae3d0ba55/libs/langgraph-api/src/schemas.mts#L186-L246

https://github.com/langchain-ai/langgraph/blob/2920a9dd197e75554720dae3e0c6bebb638fa621/libs/sdk-py/langgraph_sdk/client.py#L1987-L2011

https://github.com/langchain-ai/langgraph/blob/2920a9dd197e75554720dae3e0c6bebb638fa621/libs/sdk-py/langgraph_sdk/client.py#L2120-L2123

System Info

@langchain/langgraph 0.4.1
@langchain/langgraph-sdk 0.0.105
@langchain/langgraph-cli 0.0.55
Originally created by @kenshin54 on GitHub (Aug 4, 2025). ### Checked other resources - [x] I added a very descriptive title to this issue. - [x] I searched the LangGraph.js documentation with the integrated search. - [x] I used the GitHub search to find a similar question and didn't find it. - [x] I am sure that this is a bug in LangGraph.js rather than my code. - [x] The bug is not resolved by updating to the latest stable version of LangGraph (or the specific integration package). ### Example Code ```typescript let runId: string | null = null; const state = await client.runs.wait(null, "assistant-id", { input: {}, onRunCreated: (params) => { // never called in local env runId = params.run_id; }, }); ``` ### Error Message and Stack Trace (if applicable) _No response_ ### Description Just want to report this, it's working in our production LGP, but not in local dev. I didn't even see it in the schema. https://github.com/langchain-ai/langgraphjs/blob/2d8d273fa31a295e4d02783720c944bae3d0ba55/libs/langgraph-api/src/schemas.mts#L186-L246 https://github.com/langchain-ai/langgraph/blob/2920a9dd197e75554720dae3e0c6bebb638fa621/libs/sdk-py/langgraph_sdk/client.py#L1987-L2011 https://github.com/langchain-ai/langgraph/blob/2920a9dd197e75554720dae3e0c6bebb638fa621/libs/sdk-py/langgraph_sdk/client.py#L2120-L2123 ### System Info ```plain @langchain/langgraph 0.4.1 @langchain/langgraph-sdk 0.0.105 @langchain/langgraph-cli 0.0.55 ```
yindo added the bug label 2026-02-15 18:15:56 -05:00
yindo closed this issue 2026-02-15 18:15:56 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#325