[PR #910] [MERGED] fix(langgraph,supervisor): various fixes to get nested supervisors working #1105

Closed
opened 2026-02-15 19:17:13 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/910
Author: @benjamincburns
Created: 2/28/2025
Status: Merged
Merged: 2/28/2025
Merged by: @benjamincburns

Base: mainHead: ben/fix-supervisor


📝 Commits (9)

  • 25a2c3a chore: enable sourcemaps
  • 8825e2e chore(docs): update gitignore
  • 6a9d6ac chore(supervisor): add test for mermaid gen
  • c3f92ba fix(langgraph): skip edges to pruned nodes in mermaid gen
  • f7412d6 fix(langgraph): exec multiple simultaneous subgraphs with commands
  • b91d1c9 fix(langgraph): don't write empty channels on start
  • ea7597f fix(supervisor): fix types
  • 2d3c4f6 chore(supervisor): add test for multi-layer supervisor graph
  • c786e51 fix: test maintenance

📊 Changes

26 files changed (+523 additions, -155 deletions)

View changed files

📝 docs/.gitignore (+1 -0)
📝 libs/checkpoint-mongodb/tsconfig.json (+2 -1)
📝 libs/checkpoint-postgres/tsconfig.json (+2 -1)
📝 libs/checkpoint-sqlite/tsconfig.json (+2 -1)
📝 libs/checkpoint-validation/tsconfig.json (+2 -1)
📝 libs/checkpoint/tsconfig.json (+2 -1)
📝 libs/langgraph-supervisor/jest.config.cjs (+3 -1)
📝 libs/langgraph-supervisor/package.json (+1 -0)
libs/langgraph-supervisor/resources/recorded_messages_multiple_layers_of_supervision.json (+36 -0)
libs/langgraph-supervisor/scripts/jest-setup-after-env.js (+3 -0)
libs/langgraph-supervisor/src/supervisor.test.ts (+281 -0)
📝 libs/langgraph-supervisor/src/supervisor.ts (+11 -8)
📝 libs/langgraph-supervisor/tsconfig.json (+2 -1)
📝 libs/langgraph/src/errors.ts (+3 -0)
📝 libs/langgraph/src/graph/graph.ts (+9 -1)
📝 libs/langgraph/src/graph/state.ts (+4 -2)
📝 libs/langgraph/src/pregel/algo.ts (+9 -1)
📝 libs/langgraph/src/pregel/index.ts (+15 -23)
📝 libs/langgraph/src/pregel/loop.ts (+21 -21)
📝 libs/langgraph/src/pregel/retry.ts (+4 -20)

...and 6 more files

📄 Description

Fixes #908

Includes ported fixes from langchain-ai/langgraph#1551, langchain-ai/langgraph#3056, langchain-ai/langgraph#3521.

Also includes a minor typing fix for @langchain/langgraph-supervisor


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraphjs/pull/910 **Author:** [@benjamincburns](https://github.com/benjamincburns) **Created:** 2/28/2025 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@benjamincburns](https://github.com/benjamincburns) **Base:** `main` ← **Head:** `ben/fix-supervisor` --- ### 📝 Commits (9) - [`25a2c3a`](https://github.com/langchain-ai/langgraphjs/commit/25a2c3aa228d822dd7ecbcd144dbb8e9789ec3c7) chore: enable sourcemaps - [`8825e2e`](https://github.com/langchain-ai/langgraphjs/commit/8825e2e0ce9c9aff963b4b0583d9367764e52be4) chore(docs): update gitignore - [`6a9d6ac`](https://github.com/langchain-ai/langgraphjs/commit/6a9d6ac6295bca746aa70159d6c02759970f98b3) chore(supervisor): add test for mermaid gen - [`c3f92ba`](https://github.com/langchain-ai/langgraphjs/commit/c3f92bae9152af4bac13b22aa75c24a7fd78223e) fix(langgraph): skip edges to pruned nodes in mermaid gen - [`f7412d6`](https://github.com/langchain-ai/langgraphjs/commit/f7412d6bb5848ffd3fa5f1bcfa053d8e1a1cef16) fix(langgraph): exec multiple simultaneous subgraphs with commands - [`b91d1c9`](https://github.com/langchain-ai/langgraphjs/commit/b91d1c9ed88374489c59ffdeae0f3359b16d3146) fix(langgraph): don't write empty channels on start - [`ea7597f`](https://github.com/langchain-ai/langgraphjs/commit/ea7597f9a8518c3380e510f9ce5920aca8c60d99) fix(supervisor): fix types - [`2d3c4f6`](https://github.com/langchain-ai/langgraphjs/commit/2d3c4f6232c62ae6ec1224e8103249fe0f2bd107) chore(supervisor): add test for multi-layer supervisor graph - [`c786e51`](https://github.com/langchain-ai/langgraphjs/commit/c786e51fcb127df41d5e0686dbc34588c639e2b3) fix: test maintenance ### 📊 Changes **26 files changed** (+523 additions, -155 deletions) <details> <summary>View changed files</summary> 📝 `docs/.gitignore` (+1 -0) 📝 `libs/checkpoint-mongodb/tsconfig.json` (+2 -1) 📝 `libs/checkpoint-postgres/tsconfig.json` (+2 -1) 📝 `libs/checkpoint-sqlite/tsconfig.json` (+2 -1) 📝 `libs/checkpoint-validation/tsconfig.json` (+2 -1) 📝 `libs/checkpoint/tsconfig.json` (+2 -1) 📝 `libs/langgraph-supervisor/jest.config.cjs` (+3 -1) 📝 `libs/langgraph-supervisor/package.json` (+1 -0) ➕ `libs/langgraph-supervisor/resources/recorded_messages_multiple_layers_of_supervision.json` (+36 -0) ➕ `libs/langgraph-supervisor/scripts/jest-setup-after-env.js` (+3 -0) ➕ `libs/langgraph-supervisor/src/supervisor.test.ts` (+281 -0) 📝 `libs/langgraph-supervisor/src/supervisor.ts` (+11 -8) 📝 `libs/langgraph-supervisor/tsconfig.json` (+2 -1) 📝 `libs/langgraph/src/errors.ts` (+3 -0) 📝 `libs/langgraph/src/graph/graph.ts` (+9 -1) 📝 `libs/langgraph/src/graph/state.ts` (+4 -2) 📝 `libs/langgraph/src/pregel/algo.ts` (+9 -1) 📝 `libs/langgraph/src/pregel/index.ts` (+15 -23) 📝 `libs/langgraph/src/pregel/loop.ts` (+21 -21) 📝 `libs/langgraph/src/pregel/retry.ts` (+4 -20) _...and 6 more files_ </details> ### 📄 Description Fixes #908 Includes ported fixes from langchain-ai/langgraph#1551, langchain-ai/langgraph#3056, langchain-ai/langgraph#3521. Also includes a minor typing fix for `@langchain/langgraph-supervisor` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-15 19:17:13 -05:00
yindo closed this issue 2026-02-15 19:17:13 -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#1105