[Bug] Chat input in LangGraph Studio is incorrectly set to type="number", blocking all text input. #905

Closed
opened 2026-02-20 17:42:18 -05:00 by yindo · 1 comment
Owner

Originally created by @Zhangxiaoyi688 on GitHub (Aug 8, 2025).

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 clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

This is a UI bug in LangGraph Studio and is not dependent on specific graph code. It can be reproduced with any basic LangGraph setup.

**1. Project Setup**

Create a minimal project with the following files:

* `pyproject.toml`:
    
    [project]
    name = "langgraph-bug-report"
    version = "0.1.0"
    dependencies = [
        "langgraph"
    ]
    

* `src/my_graph.py`:
    
    from langgraph.graph import StateGraph, END

    def my_node(state):
        print("Node running")
        return state

    graph = StateGraph(dict)
    graph.add_node("my_node", my_node)
    graph.set_entry_point("my_node")
    graph.add_edge("my_node", END)

    app = graph.compile()
    

* `langgraph.json`:
    
    {
      "graphs": {
        "my_graph": "src.my_graph:app"
      },
      "python_version": "3.12"
    }
    

**2. Steps to Reproduce**

1.  Install the project dependencies: `pip install -e .`
2.  Run the LangGraph development server: `langgraph dev`
3.  Open the LangGraph Studio URL provided in the terminal (e.g., `https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:8000`).
4.  Navigate to the "Chat" tab for the `my_graph` graph.
5.  Attempt to type any text (e.g., "hello") into the message input box.

Error Message and Stack Trace (if applicable)

N/A (This is a UI/frontend bug, not a runtime error.)

Description

Problem Description

The main chat input field in the LangGraph Studio UI is unusable for text input because its HTML type is incorrectly set to type="number".

What I am doing:
I am running a local LangGraph server using langgraph dev and connecting to it from the cloud LangGraph Studio UI to test my graph in the "Chat" tab.

What I expect to happen:
I expect to be able to type any string of text (English, Chinese, etc.) into the chat input box to send to my graph.

What is currently happening:
The input field only accepts digits (0-9) and the single letter 'e'. All other characters are blocked. It's impossible to type words, use an IME for other languages, or even paste non-numeric text.

By using the browser's developer tools to inspect the element, it is confirmed that the input field is an <input type="number">.

<input class="..." placeholder="Input" type="number" value="">

This makes the chat interface completely non-functional for its intended purpose.

System Info

(dr) ➜ deep-research-mini git:(main) ✗ python -m langchain_core.sys_info

System Information

OS: Darwin
OS Version: Darwin Kernel Version 25.0.0: Fri Jul 11 23:52:57 PDT 2025; root:xnu-12377.0.154.0.2~26/RELEASE_ARM64_T6030
Python Version: 3.12.11 | packaged by Anaconda, Inc. | (main, Jun 5 2025, 08:03:38) [Clang 14.0.6 ]

Package Information

langchain_core: 0.3.74
langchain: 0.3.27
langsmith: 0.4.13
langchain_openai: 0.3.28
langchain_tavily: 0.2.11
langchain_text_splitters: 0.3.9
langgraph_sdk: 0.2.0
langgraph_supervisor: 0.0.29

Optional packages not installed

langserve

Other Dependencies

aiohttp: 3.12.15
async-timeout<5.0.0,>=4.0.0;: Installed. No version info available.
httpx<1,>=0.23.0: Installed. No version info available.
httpx>=0.25.2: Installed. No version info available.
jsonpatch<2.0,>=1.33: Installed. No version info available.
langchain-anthropic;: Installed. No version info available.
langchain-aws;: Installed. No version info available.
langchain-azure-ai;: Installed. No version info available.
langchain-cohere;: Installed. No version info available.
langchain-community;: Installed. No version info available.
langchain-core<1.0.0,>=0.3.68: Installed. No version info available.
langchain-core<1.0.0,>=0.3.72: Installed. No version info available.
langchain-core>=0.3.40: Installed. No version info available.
langchain-deepseek;: Installed. No version info available.
langchain-fireworks;: Installed. No version info available.
langchain-google-genai;: Installed. No version info available.
langchain-google-vertexai;: Installed. No version info available.
langchain-groq;: Installed. No version info available.
langchain-huggingface;: Installed. No version info available.
langchain-mistralai;: Installed. No version info available.
langchain-ollama;: Installed. No version info available.
langchain-openai;: Installed. No version info available.
langchain-perplexity;: Installed. No version info available.
langchain-text-splitters<1.0.0,>=0.3.9: Installed. No version info available.
langchain-together;: Installed. No version info available.
langchain-xai;: Installed. No version info available.
langgraph<0.7.0,>=0.6.0: Installed. No version info available.
langsmith-pyo3>=0.1.0rc2;: Installed. No version info available.
langsmith>=0.1.17: Installed. No version info available.
langsmith>=0.3.45: Installed. No version info available.
openai-agents>=0.0.3;: Installed. No version info available.
openai<2.0.0,>=1.86.0: Installed. No version info available.
opentelemetry-api>=1.30.0;: Installed. No version info available.
opentelemetry-exporter-otlp-proto-http>=1.30.0;: Installed. No version info available.
opentelemetry-sdk>=1.30.0;: Installed. No version info available.
orjson>=3.10.1: Installed. No version info available.
orjson>=3.9.14;: Installed. No version info available.
packaging>=23.2: Installed. No version info available.
pydantic<3,>=1: Installed. No version info available.
pydantic<3.0.0,>=2.7.4: Installed. No version info available.
pydantic>=2.7.4: Installed. No version info available.
pytest>=7.0.0;: Installed. No version info available.
PyYAML>=5.3: Installed. No version info available.
requests: 2.32.4
requests-toolbelt>=1.0.0: Installed. No version info available.
requests<3,>=2: Installed. No version info available.
requests>=2.0.0: Installed. No version info available.
rich>=13.9.4;: Installed. No version info available.
SQLAlchemy<3,>=1.4: Installed. No version info available.
tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available.
tiktoken<1,>=0.7: Installed. No version info available.
typing-extensions>=4.7: Installed. No version info available.
vcrpy>=7.0.0;: Installed. No version info available.
zstandard>=0.23.0: Installed. No version info available.
(dr) ➜ deep-research-mini git:(main) ✗

Additional Context:

  • Operating System: macOS 26
  • Browser: Chrome 138.0.7204.184(正式版本) (arm64)
Originally created by @Zhangxiaoyi688 on GitHub (Aug 8, 2025). ### 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 clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python This is a UI bug in LangGraph Studio and is not dependent on specific graph code. It can be reproduced with any basic LangGraph setup. **1. Project Setup** Create a minimal project with the following files: * `pyproject.toml`: [project] name = "langgraph-bug-report" version = "0.1.0" dependencies = [ "langgraph" ] * `src/my_graph.py`: from langgraph.graph import StateGraph, END def my_node(state): print("Node running") return state graph = StateGraph(dict) graph.add_node("my_node", my_node) graph.set_entry_point("my_node") graph.add_edge("my_node", END) app = graph.compile() * `langgraph.json`: { "graphs": { "my_graph": "src.my_graph:app" }, "python_version": "3.12" } **2. Steps to Reproduce** 1. Install the project dependencies: `pip install -e .` 2. Run the LangGraph development server: `langgraph dev` 3. Open the LangGraph Studio URL provided in the terminal (e.g., `https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:8000`). 4. Navigate to the "Chat" tab for the `my_graph` graph. 5. Attempt to type any text (e.g., "hello") into the message input box. ``` ### Error Message and Stack Trace (if applicable) ```shell N/A (This is a UI/frontend bug, not a runtime error.) ``` ### Description **Problem Description** The main chat input field in the LangGraph Studio UI is unusable for text input because its HTML type is incorrectly set to `type="number"`. **What I am doing:** I am running a local LangGraph server using `langgraph dev` and connecting to it from the cloud LangGraph Studio UI to test my graph in the "Chat" tab. **What I expect to happen:** I expect to be able to type any string of text (English, Chinese, etc.) into the chat input box to send to my graph. **What is currently happening:** The input field only accepts digits (0-9) and the single letter 'e'. All other characters are blocked. It's impossible to type words, use an IME for other languages, or even paste non-numeric text. By using the browser's developer tools to inspect the element, it is confirmed that the input field is an `<input type="number">`. `<input class="..." placeholder="Input" type="number" value="">` This makes the chat interface completely non-functional for its intended purpose. ### System Info (dr) ➜ deep-research-mini git:(main) ✗ python -m langchain_core.sys_info System Information ------------------ > OS: Darwin > OS Version: Darwin Kernel Version 25.0.0: Fri Jul 11 23:52:57 PDT 2025; root:xnu-12377.0.154.0.2~26/RELEASE_ARM64_T6030 > Python Version: 3.12.11 | packaged by Anaconda, Inc. | (main, Jun 5 2025, 08:03:38) [Clang 14.0.6 ] Package Information ------------------- > langchain_core: 0.3.74 > langchain: 0.3.27 > langsmith: 0.4.13 > langchain_openai: 0.3.28 > langchain_tavily: 0.2.11 > langchain_text_splitters: 0.3.9 > langgraph_sdk: 0.2.0 > langgraph_supervisor: 0.0.29 Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > aiohttp: 3.12.15 > async-timeout<5.0.0,>=4.0.0;: Installed. No version info available. > httpx<1,>=0.23.0: Installed. No version info available. > httpx>=0.25.2: Installed. No version info available. > jsonpatch<2.0,>=1.33: Installed. No version info available. > langchain-anthropic;: Installed. No version info available. > langchain-aws;: Installed. No version info available. > langchain-azure-ai;: Installed. No version info available. > langchain-cohere;: Installed. No version info available. > langchain-community;: Installed. No version info available. > langchain-core<1.0.0,>=0.3.68: Installed. No version info available. > langchain-core<1.0.0,>=0.3.72: Installed. No version info available. > langchain-core>=0.3.40: Installed. No version info available. > langchain-deepseek;: Installed. No version info available. > langchain-fireworks;: Installed. No version info available. > langchain-google-genai;: Installed. No version info available. > langchain-google-vertexai;: Installed. No version info available. > langchain-groq;: Installed. No version info available. > langchain-huggingface;: Installed. No version info available. > langchain-mistralai;: Installed. No version info available. > langchain-ollama;: Installed. No version info available. > langchain-openai;: Installed. No version info available. > langchain-perplexity;: Installed. No version info available. > langchain-text-splitters<1.0.0,>=0.3.9: Installed. No version info available. > langchain-together;: Installed. No version info available. > langchain-xai;: Installed. No version info available. > langgraph<0.7.0,>=0.6.0: Installed. No version info available. > langsmith-pyo3>=0.1.0rc2;: Installed. No version info available. > langsmith>=0.1.17: Installed. No version info available. > langsmith>=0.3.45: Installed. No version info available. > openai-agents>=0.0.3;: Installed. No version info available. > openai<2.0.0,>=1.86.0: Installed. No version info available. > opentelemetry-api>=1.30.0;: Installed. No version info available. > opentelemetry-exporter-otlp-proto-http>=1.30.0;: Installed. No version info available. > opentelemetry-sdk>=1.30.0;: Installed. No version info available. > orjson>=3.10.1: Installed. No version info available. > orjson>=3.9.14;: Installed. No version info available. > packaging>=23.2: Installed. No version info available. > pydantic<3,>=1: Installed. No version info available. > pydantic<3.0.0,>=2.7.4: Installed. No version info available. > pydantic>=2.7.4: Installed. No version info available. > pytest>=7.0.0;: Installed. No version info available. > PyYAML>=5.3: Installed. No version info available. > requests: 2.32.4 > requests-toolbelt>=1.0.0: Installed. No version info available. > requests<3,>=2: Installed. No version info available. > requests>=2.0.0: Installed. No version info available. > rich>=13.9.4;: Installed. No version info available. > SQLAlchemy<3,>=1.4: Installed. No version info available. > tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available. > tiktoken<1,>=0.7: Installed. No version info available. > typing-extensions>=4.7: Installed. No version info available. > vcrpy>=7.0.0;: Installed. No version info available. > zstandard>=0.23.0: Installed. No version info available. (dr) ➜ deep-research-mini git:(main) ✗ **Additional Context:** - **Operating System:** macOS 26 - **Browser:** Chrome 138.0.7204.184(正式版本) (arm64)
yindo added the bugpending labels 2026-02-20 17:42:18 -05:00
yindo closed this issue 2026-02-20 17:42:18 -05:00
Author
Owner

@sydney-runkle commented on GitHub (Sep 8, 2025):

Hmm, you haven't specified a state that you're using. Specify a state like:

class State(TypedDict):
    some_int: int

To get the proper type inference in studio

@sydney-runkle commented on GitHub (Sep 8, 2025): Hmm, you haven't specified a state that you're using. Specify a state like: ```python class State(TypedDict): some_int: int ``` To get the proper type inference in studio
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#905