LangGraph Studio not rendering chat input correctly #397

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

Originally created by @ddewaele on GitHub (Jan 25, 2026).

Originally assigned to: @hntrl on GitHub.

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a very descriptive title to this issue.
  • I searched the LangChain.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 LangChain.js rather than my code.
  • The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

Example Code

package.json (latest versions at time of writing)

{
  "name": "langgraph-platform-chat",
  "version": "1.0.0",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "npx @langchain/langgraph-cli dev --port 2024 --config ./langgraph.json",
    "build": "npx @langchain/langgraph-cli build -t langgraph",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": "",
  "dependencies": {
    "@langchain/openai": "^1.2.3",
    "langchain": "^1.2.13",
    "langsmith": "^0.4.8"
  },
  "devDependencies": {
    "@langchain/langgraph-cli": "^1.1.11"
  }
}

agent code :

import {createAgent} from "langchain";
import {ChatOpenAI} from "@langchain/openai";
import {z} from 'zod';

const model = new ChatOpenAI({model: "gpt-4o-mini"});

const contextSchema = z.object({
    systemPromptRef: z.string().optional(),
});

const simpleAgent = createAgent({
        model,
        contextSchema
    }
);

export const agent = simpleAgent.graph;

Other similar issues exist, albeit with different versions and sample code.
But I have the impression that this should work out of the box

https://github.com/langchain-ai/langgraphjs/issues/772
https://github.com/langchain-ai/langgraphjs/issues/1722

Error Message and Stack Trace (if applicable)

Failed to obtain symbol "__langgraph__agent_agent__input": Unsupported type: never
Image

Description

With the provided example code , simplest agent version possible with the latest langgraph version the langgraph studio message input rendering does not work.

Image

when downgrading langchainjs it works

Image

System Info


langchain@1.2.13 | MIT | deps: 5 | versions: 376
Typescript bindings for langchain
https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain/

keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores

dist
.tarball: https://registry.npmjs.org/langchain/-/langchain-1.2.13.tgz
.shasum: 5e91250029b0d0345450344e26de5fcab55d40ad
.integrity: sha512-4ImLm53St3iCLBhmJvlnunl8P9p7ZM1oUC1I7WQwPHL3aBNHBlLucOmr7hW2Wk9bZ3+A9XSj09iZKvmEO4Zo7w==
.unpackedSize: 3.3 MB

dependencies:
@langchain/langgraph-checkpoint: ^1.0.0 @langchain/langgraph: ^1.1.2            langsmith: >=0.4.0 <1.0.0               uuid: ^10.0.0                           zod: ^3.25.76 || ^4

maintainers:
- christian-bromann <mail@bromann.dev>
- nfcampos <nuno@boringbits.io>
- jacoblee93 <jacoblee93@gmail.com>
- andrewnguonly <andrewnguonly@gmail.com>
- davidduong <david@duong.cz>
- hntrl <hunter@hntrl.io>
- hwchase17 <hw.chase.17@gmail.com>
- basproul <braceasproul@gmail.com>

dist-tags:
alpha: 1.0.0-alpha.9                       dev: 1.2.9                                 latest: 1.2.13                             next: 1.0.0-alpha.9                        tag-for-publishing-older-releases: 0.2.20

published yesterday by GitHub Actions <npm-oidc-no-reply@github.com>

mac os
node v22

Originally created by @ddewaele on GitHub (Jan 25, 2026). Originally assigned to: @hntrl on GitHub. ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/). - [x] I added a very descriptive title to this issue. - [x] I searched the LangChain.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 LangChain.js rather than my code. - [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package). ### Example Code package.json (latest versions at time of writing) ``` { "name": "langgraph-platform-chat", "version": "1.0.0", "private": true, "type": "module", "scripts": { "dev": "npx @langchain/langgraph-cli dev --port 2024 --config ./langgraph.json", "build": "npx @langchain/langgraph-cli build -t langgraph", "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "description": "", "dependencies": { "@langchain/openai": "^1.2.3", "langchain": "^1.2.13", "langsmith": "^0.4.8" }, "devDependencies": { "@langchain/langgraph-cli": "^1.1.11" } } ``` agent code : ``` import {createAgent} from "langchain"; import {ChatOpenAI} from "@langchain/openai"; import {z} from 'zod'; const model = new ChatOpenAI({model: "gpt-4o-mini"}); const contextSchema = z.object({ systemPromptRef: z.string().optional(), }); const simpleAgent = createAgent({ model, contextSchema } ); export const agent = simpleAgent.graph; ``` Other similar issues exist, albeit with different versions and sample code. But I have the impression that this should work out of the box https://github.com/langchain-ai/langgraphjs/issues/772 https://github.com/langchain-ai/langgraphjs/issues/1722 ### Error Message and Stack Trace (if applicable) ``` Failed to obtain symbol "__langgraph__agent_agent__input": Unsupported type: never ``` <img width="843" height="771" alt="Image" src="https://github.com/user-attachments/assets/e74b971a-7f9b-45a3-b995-2dbb4e585c3e" /> ### Description With the provided example code , simplest agent version possible with the latest langgraph version the langgraph studio message input rendering does not work. <img width="845" height="766" alt="Image" src="https://github.com/user-attachments/assets/5e96281d-72c1-4199-a5b4-0d9e6ab3e3ae" /> when downgrading langchainjs it works <img width="842" height="768" alt="Image" src="https://github.com/user-attachments/assets/5e56fbc5-6d3e-41fd-bf9a-a59f4ee840e1" /> ### System Info ``` langchain@1.2.13 | MIT | deps: 5 | versions: 376 Typescript bindings for langchain https://github.com/langchain-ai/langchainjs/tree/main/libs/langchain/ keywords: llm, ai, gpt3, chain, prompt, prompt engineering, chatgpt, machine learning, ml, openai, embeddings, vectorstores dist .tarball: https://registry.npmjs.org/langchain/-/langchain-1.2.13.tgz .shasum: 5e91250029b0d0345450344e26de5fcab55d40ad .integrity: sha512-4ImLm53St3iCLBhmJvlnunl8P9p7ZM1oUC1I7WQwPHL3aBNHBlLucOmr7hW2Wk9bZ3+A9XSj09iZKvmEO4Zo7w== .unpackedSize: 3.3 MB dependencies: @langchain/langgraph-checkpoint: ^1.0.0 @langchain/langgraph: ^1.1.2 langsmith: >=0.4.0 <1.0.0 uuid: ^10.0.0 zod: ^3.25.76 || ^4 maintainers: - christian-bromann <mail@bromann.dev> - nfcampos <nuno@boringbits.io> - jacoblee93 <jacoblee93@gmail.com> - andrewnguonly <andrewnguonly@gmail.com> - davidduong <david@duong.cz> - hntrl <hunter@hntrl.io> - hwchase17 <hw.chase.17@gmail.com> - basproul <braceasproul@gmail.com> dist-tags: alpha: 1.0.0-alpha.9 dev: 1.2.9 latest: 1.2.13 next: 1.0.0-alpha.9 tag-for-publishing-older-releases: 0.2.20 published yesterday by GitHub Actions <npm-oidc-no-reply@github.com> ``` mac os node v22
yindo added the bug label 2026-02-15 18:16:26 -05:00
yindo closed this issue 2026-02-15 18:16:26 -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#397