Repository navigation
LangGraph TypeScript engine: a Claude plan's query is named per organization too - #1898
Open
davidmckayv wants to merge 1 commit into
Open
davidmckayv wants to merge 1 commit into
davidmckayv wants to merge 1 commit into
Conversation
…ization too One Claude engine serves every organization of an OpenBot. The engine named a Claude plan's query by (Bot, thread) alone, so the same thread id for a Bot of the same id in two organizations went to one query: one transcript and one set of turns for both. The server now names the run's organization in forwardedProps.openbotOrganization, and the engine joins it to the query's name. A run with no organization keeps the name it always had, so a thread that already has a query keeps it.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 19, 2026 21:26
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
One Claude engine serves every organization of an OpenBot. The LangGraph TypeScript engine named a Claude plan's query by (Bot, thread) alone, so the same thread id for a Bot of the same id in two organizations went to one query: one transcript and one set of turns for both.
What changes
forwardedProps.openbotOrganizationwhen the server sends one.claudeThreadId(botId, threadId, organization?)joins the organization to the query's name.Tests
agent-langgraph-ts/test/claude-plan.test.ts: "The same thread in two organizations is two Claude queries; with no organization the name is unchanged". Runs the engine over HTTP against a recorded Claude engine: the same thread id inorg-aandorg-breaches/modelunder two different query names, and a run with no organization reaches it under the name the earlier test pins. Fails before the change (both organizations share one name), passes after.npm testin agent-langgraph-ts: 63 passed, 1 skipped (the live test).npm run typecheckclean.