Repository navigation
Conversation
blove
enabled auto-merge
November 17, 2026 19:30
blove
added this pull request to the merge queue
Nov 17, 2026
Any commits made after this event will not be merged.
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.
What
Adds
createThreadDirectoryto the framework-neutral LangGraph runtime (libs/langgraph/src/runtime/thread-directory.ts): the saved conversations of a deployment as an observable list, with the commands a sidebar needs.Angular has had this as
LangGraphThreadsAdapter, an injectable built on signals. React had the views (ThreadList,ChatSidenavSections, thethreadsprop onChat) but nothing to fill them from a deployment; every app had to write the SDK calls and the metadata mapping itself.How it works
getSnapshotandsubscribe, so React observes it with the existinguseAgenthook and it carries no framework dependency.title,archived,pinned,pinnedOrder,projectId. Active conversations come pinned-first in saved order; archived ones are listed apart.create,delete,rename,archive,unarchive,pin,unpin,moveToProjectandreorderPinnedwrite metadata, then read the list again. Their names and arguments match React'sThreadActionAdapter, so the directory can be passed asactions.apiUrl(and optionalclientOptions) to build a client, orthreadsto reuse an existingclient.threads.Differences from the Angular adapter
status: 'error'with the failure and keeps the last list. The Angular adapter logs to the console and leaves no state to render.createrejects on failure; the Angular adapter resolves null.reorderPinnedwith a target that is not pinned places the conversation last; the Angular adapter drops it from the renumbering.Not in this PR
LangGraphThreadsAdapteris unchanged and is not rebuilt on this.limitconversations (default 50); no paging, search, or automatic refresh after a run.ThreadActionAdapter: the boundary rules keep the two packages from importing each other. The shapes were compared by hand.Verification
nx run-many -t runtime-quality,runtime-type-tests,lint,test,build -p langgraphpasses (runtime suite 58 files, 1064 tests; 14 new).verify-boundaries.mjspasses;inventory.mjs --checkreports no missing disposition.node --test scripts/react-parity/*.spec.mjs(stopped after ten minutes) andverify-langgraph-candidate.mjs. The new file is not imported bycreate-session.ts, so the candidate's reviewed module graph is unchanged.🤖 Generated with Claude Code