[PR #999] [CLOSED] chore(langgraph): browser testing and explicit config passing #1167

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

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/999
Author: @littledivy
Created: 3/17/2025
Status: Closed

Base: mainHead: vitest


📝 Commits (1)

  • 0f61781 chore(langgraph): browser testing and explicit config passing

📊 Changes

23 files changed (+2710 additions, -215 deletions)

View changed files

📝 libs/langgraph/package.json (+6 -1)
📝 libs/langgraph/src/func/index.ts (+5 -3)
📝 libs/langgraph/src/interrupt.ts (+5 -3)
📝 libs/langgraph/src/pregel/call.ts (+5 -3)
📝 libs/langgraph/src/pregel/utils/config.ts (+2 -3)
📝 libs/langgraph/src/setup/async_local_storage.ts (+8 -4)
📝 libs/langgraph/src/tests/channels.test.ts (+1 -1)
📝 libs/langgraph/src/tests/diagrams.test.ts (+1 -1)
📝 libs/langgraph/src/tests/errors.test.ts (+1 -1)
📝 libs/langgraph/src/tests/func.test.ts (+149 -99)
📝 libs/langgraph/src/tests/graph.test.ts (+1 -1)
📝 libs/langgraph/src/tests/prebuilt.test.ts (+8 -6)
📝 libs/langgraph/src/tests/pregel.io.test.ts (+1 -1)
📝 libs/langgraph/src/tests/pregel.read.test.ts (+1 -1)
📝 libs/langgraph/src/tests/pregel.test.ts (+50 -40)
📝 libs/langgraph/src/tests/pregel.validate.test.ts (+1 -1)
📝 libs/langgraph/src/tests/pregel/pregel.cancellation.test.ts (+1 -0)
📝 libs/langgraph/src/tests/remote.test.ts (+26 -26)
📝 libs/langgraph/src/tests/tracing.test.ts (+1 -1)
📝 libs/langgraph/src/tests/utils.test.ts (+1 -1)

...and 3 more files

📄 Description

Enable support for interrupt, task, call, and other tool methods in the browser by allowing users to explicitly pass config through the call stack instead of relying on AsyncLocalStorage.

It also migrates some Jest unit tests to Vitest and sets up headless browser testing. This is WIP and mainly explores how this approach would look in practice.


🔄 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/999 **Author:** [@littledivy](https://github.com/littledivy) **Created:** 3/17/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `vitest` --- ### 📝 Commits (1) - [`0f61781`](https://github.com/langchain-ai/langgraphjs/commit/0f61781eb9afd0f97b36fb9c556627f1c17b147e) chore(langgraph): browser testing and explicit config passing ### 📊 Changes **23 files changed** (+2710 additions, -215 deletions) <details> <summary>View changed files</summary> 📝 `libs/langgraph/package.json` (+6 -1) 📝 `libs/langgraph/src/func/index.ts` (+5 -3) 📝 `libs/langgraph/src/interrupt.ts` (+5 -3) 📝 `libs/langgraph/src/pregel/call.ts` (+5 -3) 📝 `libs/langgraph/src/pregel/utils/config.ts` (+2 -3) 📝 `libs/langgraph/src/setup/async_local_storage.ts` (+8 -4) 📝 `libs/langgraph/src/tests/channels.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/diagrams.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/errors.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/func.test.ts` (+149 -99) 📝 `libs/langgraph/src/tests/graph.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/prebuilt.test.ts` (+8 -6) 📝 `libs/langgraph/src/tests/pregel.io.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/pregel.read.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/pregel.test.ts` (+50 -40) 📝 `libs/langgraph/src/tests/pregel.validate.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/pregel/pregel.cancellation.test.ts` (+1 -0) 📝 `libs/langgraph/src/tests/remote.test.ts` (+26 -26) 📝 `libs/langgraph/src/tests/tracing.test.ts` (+1 -1) 📝 `libs/langgraph/src/tests/utils.test.ts` (+1 -1) _...and 3 more files_ </details> ### 📄 Description Enable support for `interrupt`, `task`, `call`, and other tool methods in the browser by allowing users to explicitly pass config through the call stack instead of relying on AsyncLocalStorage. It also migrates some Jest unit tests to Vitest and sets up headless browser testing. This is WIP and mainly explores how this approach would look in practice. --- <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:31 -05:00
yindo closed this issue 2026-02-15 19:17:31 -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#1167