From ec5f8a7ae2bce997e3b08001a1caab7dd5ea431b Mon Sep 17 00:00:00 2001 From: John Brody Date: Wed, 28 Jan 2026 15:44:23 -0800 Subject: [PATCH 1/2] port --no-reload option from python to js CLI --- libs/langgraph-cli/src/cli/dev.mts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/libs/langgraph-cli/src/cli/dev.mts b/libs/langgraph-cli/src/cli/dev.mts index 4418db052..2e0ff3f2b 100644 --- a/libs/langgraph-cli/src/cli/dev.mts +++ b/libs/langgraph-cli/src/cli/dev.mts @@ -24,6 +24,7 @@ builder .option("-p, --port ", "port to run the server on", "2024") .option("-h, --host ", "host to bind to", "localhost") .option("--no-browser", "disable auto-opening the browser") + .option("--no-reload", "disable automatic reloading when code changes are detected") .option("-n, --n-jobs-per-worker ", "number of workers to run", "10") .option("-c, --config ", "path to configuration file", process.cwd()) .option( @@ -171,10 +172,12 @@ builder } }; - watcher.on("all", async (_name, path) => { - logger.warn(`Detected changes in ${path}, restarting server`); - launchServer(); - }); + if (options.reload) { + watcher.on("all", async (_name, path) => { + logger.warn(`Detected changes in ${path}, restarting server`); + launchServer(); + }); + } // TODO: sometimes the server keeps sending stuff // while gracefully exiting From c2e534f963abe998f979395f2298c86496227978 Mon Sep 17 00:00:00 2001 From: jbrody-nexxa Date: Wed, 28 Jan 2026 15:56:16 -0800 Subject: [PATCH 2/2] Create cli-no-reload.md --- .changeset/cli-no-reload.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/cli-no-reload.md diff --git a/.changeset/cli-no-reload.md b/.changeset/cli-no-reload.md new file mode 100644 index 000000000..c18ddcc85 --- /dev/null +++ b/.changeset/cli-no-reload.md @@ -0,0 +1,7 @@ +--- +"@langchain/langgraph-cli": patch +--- + +What: add --no-reload option to js CLI +Why: to match python implementation +How: add --no-reload argument to langgraph-cli dev to run the dev server without watch mode