LangSmith Studio hangs when communicating with local Agent server on Windows #1074

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

Originally created by @mcavdar on GitHub (Nov 24, 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

#I'm following the steps from https://docs.langchain.com/oss/python/langchain/studio

#Agent code:

from langchain.agents import create_agent

def send_email(to: str, subject: str, body: str):
    """Send an email"""
    email = {
        "to": to,
        "subject": subject,
        "body": body
    }
    # ... email sending logic

    return f"Email sent to {to}"

agent = create_agent(
    "gpt-4o",
    tools=[send_email],
    system_prompt="You are an email assistant. Always use the send_email tool.",
)

Error Message and Stack Trace (if applicable)

langgraph dev
INFO:langgraph_api.cli:

        Welcome to

╦  ┌─┐┌┐┌┌─┐╔═╗┬─┐┌─┐┌─┐┬ ┬
║  ├─┤││││ ┬║ ╦├┬┘├─┤├─┘├─┤
╩═╝┴ ┴┘└┘└─┘╚═╝┴└─┴ ┴┴  ┴ ┴

- 🚀 API: http://127.0.0.1:2024
- 🎨 Studio UI: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
- 📚 API Docs: http://127.0.0.1:2024/docs

This in-memory server is designed for development and testing.
For production use, please use LangSmith Deployment.


2025-11-24T09:49:20.183916Z [info     ] Using langgraph_runtime_inmem  [langgraph_runtime] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread
2025-11-24T09:49:20.207357Z [info     ] Using auth of type=noop        [langgraph_api.auth.middleware] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread
2025-11-24T09:49:20.222555Z [info     ] Starting In-Memory runtime with langgraph-api=0.5.26 and in-memory runtime=0.19.0 [langgraph_runtime_inmem.lifespan] api_variant=local_dev langgraph_api_version=0.5.26 langgraph_runtime_inmem_version=0.19.0 thread_name=asyncio_0 version=0.5.26
2025-11-24T09:49:20.619932Z [info     ] Starting metadata loop         [langgraph_api.metadata] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread
2025-11-24T09:49:20.619932Z [info     ] Getting auth instance: None    [langgraph_api.auth.custom] api_variant=local_dev langgraph_api_version=0.5.26 langgraph_auth=None thread_name=MainThread
2025-11-24T09:49:20.622027Z [info     ] Starting thread TTL sweeper with interval 5 minutes [langgraph_api.thread_ttl] api_variant=local_dev interval_minutes=5 langgraph_api_version=0.5.26 strategy=delete thread_name=asyncio_1
2025-11-24T09:49:21.114191Z [info     ] HTTP Request: POST https://api.smith.langchain.com/v1/metadata/submit "HTTP/1.1 204 No Content" [httpx] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread
2025-11-24T09:49:21.114191Z [info     ] Successfully submitted metadata to LangSmith instance [langgraph_api.metadata] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread
2025-11-24T09:49:21.493077Z [info     ] Registering graph with id 'agent' [langgraph_api.graph] api_variant=local_dev graph_id=agent langgraph_api_version=0.5.26 thread_name=asyncio_1
2025-11-24T09:49:21.514982Z [info     ] Starting 1 background workers  [langgraph_runtime_inmem.queue] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=asyncio_0
2025-11-24T09:49:21.514982Z [info     ] Worker stats                   [langgraph_runtime_inmem.queue] active=0 api_variant=local_dev available=1 langgraph_api_version=0.5.26 max=1 thread_name=asyncio_0
Server started in 3.79s
2025-11-24T09:49:21.780835Z [info     ] Server started in 3.79s        [browser_opener] api_variant=local_dev langgraph_api_version=0.5.26 message='Server started in 3.79s' thread_name='Thread-2 (_open_browser)'
🎨 Opening Studio in your browser...
2025-11-24T09:49:21.780835Z [info     ] 🎨 Opening Studio in your browser... [browser_opener] api_variant=local_dev langgraph_api_version=0.5.26 message='🎨 Opening Studio in your browser...' thread_name='Thread-2 (_open_browser)'
URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024
2025-11-24T09:49:21.780835Z [info     ] URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 [browser_opener] api_variant=local_dev langgraph_api_version=0.5.26 message='URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024' thread_name='Thread-2 (_open_browser)'
2025-11-24T09:49:22.018436Z [info     ] Queue stats                    [langgraph_runtime_inmem.queue] api_variant=local_dev langgraph_api_version=0.5.26 n_pending=0 n_running=0 pending_runs_wait_time_max_secs=None pending_runs_wait_time_med_secs=None thread_name=asyncio_2
2025-11-24T09:49:36.915450Z [info     ] Created run                    [langgraph_api.models.run] after_seconds=0 api_variant=local_dev assistant_id=fe096781-5601-53d2-b2f6-0d3403f7e9ca checkpoint_id=None if_not_exists=reject langgraph_api_version=0.5.26 method=POST multitask_strategy=rollback path=/threads/{thread_id}/runs/stream request_id=661aa1e3-a582-4c11-ae2c-b60aace6236c run_create_ms=4 run_id=019ab544-cf11-7254-9451-fd5052c40a59 run_put_ms=1 stream_mode=['debug'] stream_resumable=False temporary=False thread_id=25c0ebde-d4f2-4f9e-ba09-030d1a6f789f thread_name=MainThread
2025-11-24T09:49:37.515730Z [info     ] Starting background run        [langgraph_api.worker] api_variant=local_dev assistant_id=fe096781-5601-53d2-b2f6-0d3403f7e9ca graph_id=agent langgraph_api_version=0.5.26 request_id=661aa1e3-a582-4c11-ae2c-b60aace6236c resumable=False run_attempt=1 run_creation_ms=2 run_id=019ab544-cf11-7254-9451-fd5052c40a59 run_queue_ms=600 run_started_at=2025-11-24T09:49:37.514724+00:00 run_stream_start_ms=0 temporary=False thread_id=25c0ebde-d4f2-4f9e-ba09-030d1a6f789f thread_name=asyncio_2

Description

System Info

System Information

OS: Windows
OS Version: 10.0.26200
Python Version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Package Information

langchain_core: 1.1.0
langchain: 1.0.8
langsmith: 0.4.46
langchain_google_genai: 3.1.0
langgraph_api: 0.5.26
langgraph_cli: 0.4.7
langgraph_runtime_inmem: 0.19.0
langgraph_sdk: 0.2.9

Optional packages not installed

langserve

Other Dependencies

blockbuster: 1.5.25
click: 8.3.1
cloudpickle: 3.1.2
cryptography: 44.0.3
filetype: 1.2.0
google-ai-generativelanguage: 0.9.0
grpcio: 1.76.0
grpcio-tools: 1.75.1
httpx: 0.28.1
jsonpatch: 1.33
jsonschema-rs: 0.29.1
langgraph: 1.0.3
langgraph-checkpoint: 3.0.1
opentelemetry-api: 1.38.0
opentelemetry-exporter-otlp-proto-http: 1.38.0
opentelemetry-sdk: 1.38.0
orjson: 3.11.4
packaging: 25.0
protobuf: 6.33.1
pydantic: 2.12.4
pyjwt: 2.10.1
python-dotenv: 1.2.1
pyyaml: 6.0.3
requests: 2.32.5
requests-toolbelt: 1.0.0
sse-starlette: 2.1.3
starlette: 0.50.0
structlog: 25.5.0
tenacity: 9.1.2
truststore: 0.10.4
typing-extensions: 4.15.0
uvicorn: 0.38.0
watchfiles: 1.1.1
zstandard: 0.25.0

Originally created by @mcavdar on GitHub (Nov 24, 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 #I'm following the steps from https://docs.langchain.com/oss/python/langchain/studio #Agent code: from langchain.agents import create_agent def send_email(to: str, subject: str, body: str): """Send an email""" email = { "to": to, "subject": subject, "body": body } # ... email sending logic return f"Email sent to {to}" agent = create_agent( "gpt-4o", tools=[send_email], system_prompt="You are an email assistant. Always use the send_email tool.", ) ``` ### Error Message and Stack Trace (if applicable) ```shell langgraph dev INFO:langgraph_api.cli: Welcome to ╦ ┌─┐┌┐┌┌─┐╔═╗┬─┐┌─┐┌─┐┬ ┬ ║ ├─┤││││ ┬║ ╦├┬┘├─┤├─┘├─┤ ╩═╝┴ ┴┘└┘└─┘╚═╝┴└─┴ ┴┴ ┴ ┴ - 🚀 API: http://127.0.0.1:2024 - 🎨 Studio UI: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 - 📚 API Docs: http://127.0.0.1:2024/docs This in-memory server is designed for development and testing. For production use, please use LangSmith Deployment. 2025-11-24T09:49:20.183916Z [info ] Using langgraph_runtime_inmem [langgraph_runtime] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread 2025-11-24T09:49:20.207357Z [info ] Using auth of type=noop [langgraph_api.auth.middleware] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread 2025-11-24T09:49:20.222555Z [info ] Starting In-Memory runtime with langgraph-api=0.5.26 and in-memory runtime=0.19.0 [langgraph_runtime_inmem.lifespan] api_variant=local_dev langgraph_api_version=0.5.26 langgraph_runtime_inmem_version=0.19.0 thread_name=asyncio_0 version=0.5.26 2025-11-24T09:49:20.619932Z [info ] Starting metadata loop [langgraph_api.metadata] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread 2025-11-24T09:49:20.619932Z [info ] Getting auth instance: None [langgraph_api.auth.custom] api_variant=local_dev langgraph_api_version=0.5.26 langgraph_auth=None thread_name=MainThread 2025-11-24T09:49:20.622027Z [info ] Starting thread TTL sweeper with interval 5 minutes [langgraph_api.thread_ttl] api_variant=local_dev interval_minutes=5 langgraph_api_version=0.5.26 strategy=delete thread_name=asyncio_1 2025-11-24T09:49:21.114191Z [info ] HTTP Request: POST https://api.smith.langchain.com/v1/metadata/submit "HTTP/1.1 204 No Content" [httpx] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread 2025-11-24T09:49:21.114191Z [info ] Successfully submitted metadata to LangSmith instance [langgraph_api.metadata] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=MainThread 2025-11-24T09:49:21.493077Z [info ] Registering graph with id 'agent' [langgraph_api.graph] api_variant=local_dev graph_id=agent langgraph_api_version=0.5.26 thread_name=asyncio_1 2025-11-24T09:49:21.514982Z [info ] Starting 1 background workers [langgraph_runtime_inmem.queue] api_variant=local_dev langgraph_api_version=0.5.26 thread_name=asyncio_0 2025-11-24T09:49:21.514982Z [info ] Worker stats [langgraph_runtime_inmem.queue] active=0 api_variant=local_dev available=1 langgraph_api_version=0.5.26 max=1 thread_name=asyncio_0 Server started in 3.79s 2025-11-24T09:49:21.780835Z [info ] Server started in 3.79s [browser_opener] api_variant=local_dev langgraph_api_version=0.5.26 message='Server started in 3.79s' thread_name='Thread-2 (_open_browser)' 🎨 Opening Studio in your browser... 2025-11-24T09:49:21.780835Z [info ] 🎨 Opening Studio in your browser... [browser_opener] api_variant=local_dev langgraph_api_version=0.5.26 message='🎨 Opening Studio in your browser...' thread_name='Thread-2 (_open_browser)' URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 2025-11-24T09:49:21.780835Z [info ] URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024 [browser_opener] api_variant=local_dev langgraph_api_version=0.5.26 message='URL: https://smith.langchain.com/studio/?baseUrl=http://127.0.0.1:2024' thread_name='Thread-2 (_open_browser)' 2025-11-24T09:49:22.018436Z [info ] Queue stats [langgraph_runtime_inmem.queue] api_variant=local_dev langgraph_api_version=0.5.26 n_pending=0 n_running=0 pending_runs_wait_time_max_secs=None pending_runs_wait_time_med_secs=None thread_name=asyncio_2 2025-11-24T09:49:36.915450Z [info ] Created run [langgraph_api.models.run] after_seconds=0 api_variant=local_dev assistant_id=fe096781-5601-53d2-b2f6-0d3403f7e9ca checkpoint_id=None if_not_exists=reject langgraph_api_version=0.5.26 method=POST multitask_strategy=rollback path=/threads/{thread_id}/runs/stream request_id=661aa1e3-a582-4c11-ae2c-b60aace6236c run_create_ms=4 run_id=019ab544-cf11-7254-9451-fd5052c40a59 run_put_ms=1 stream_mode=['debug'] stream_resumable=False temporary=False thread_id=25c0ebde-d4f2-4f9e-ba09-030d1a6f789f thread_name=MainThread 2025-11-24T09:49:37.515730Z [info ] Starting background run [langgraph_api.worker] api_variant=local_dev assistant_id=fe096781-5601-53d2-b2f6-0d3403f7e9ca graph_id=agent langgraph_api_version=0.5.26 request_id=661aa1e3-a582-4c11-ae2c-b60aace6236c resumable=False run_attempt=1 run_creation_ms=2 run_id=019ab544-cf11-7254-9451-fd5052c40a59 run_queue_ms=600 run_started_at=2025-11-24T09:49:37.514724+00:00 run_stream_start_ms=0 temporary=False thread_id=25c0ebde-d4f2-4f9e-ba09-030d1a6f789f thread_name=asyncio_2 ``` ### Description * I’m following the steps from https://docs.langchain.com/oss/python/langchain/studio * After the first message, the graph gets stuck. ### System Info System Information ------------------ > OS: Windows > OS Version: 10.0.26200 > Python Version: 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)] Package Information ------------------- > langchain_core: 1.1.0 > langchain: 1.0.8 > langsmith: 0.4.46 > langchain_google_genai: 3.1.0 > langgraph_api: 0.5.26 > langgraph_cli: 0.4.7 > langgraph_runtime_inmem: 0.19.0 > langgraph_sdk: 0.2.9 Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > blockbuster: 1.5.25 > click: 8.3.1 > cloudpickle: 3.1.2 > cryptography: 44.0.3 > filetype: 1.2.0 > google-ai-generativelanguage: 0.9.0 > grpcio: 1.76.0 > grpcio-tools: 1.75.1 > httpx: 0.28.1 > jsonpatch: 1.33 > jsonschema-rs: 0.29.1 > langgraph: 1.0.3 > langgraph-checkpoint: 3.0.1 > opentelemetry-api: 1.38.0 > opentelemetry-exporter-otlp-proto-http: 1.38.0 > opentelemetry-sdk: 1.38.0 > orjson: 3.11.4 > packaging: 25.0 > protobuf: 6.33.1 > pydantic: 2.12.4 > pyjwt: 2.10.1 > python-dotenv: 1.2.1 > pyyaml: 6.0.3 > requests: 2.32.5 > requests-toolbelt: 1.0.0 > sse-starlette: 2.1.3 > starlette: 0.50.0 > structlog: 25.5.0 > tenacity: 9.1.2 > truststore: 0.10.4 > typing-extensions: 4.15.0 > uvicorn: 0.38.0 > watchfiles: 1.1.1 > zstandard: 0.25.0
yindo added the bugpending labels 2026-02-20 17:42:58 -05:00
Author
Owner

@mcavdar commented on GitHub (Nov 24, 2025):

Image
@mcavdar commented on GitHub (Nov 24, 2025): <img width="1571" height="933" alt="Image" src="https://github.com/user-attachments/assets/ae7fbd8b-cf1d-49a1-aeea-9ef5a0257341" />
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1074