[PR #1641] [MERGED] fix(api): call threads:create auth handler when copying a thread #1610

Closed
opened 2026-02-15 20:16:18 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraphjs/pull/1641
Author: @pjrule
Created: 9/10/2025
Status: Merged
Merged: 9/10/2025
Merged by: @dqbd

Base: mainHead: parker/threads-copy-perms


📝 Commits (2)

  • 2fbb57a fix(api): call threads:create auth handler when copying a thread
  • d25c618 Add changeset

📊 Changes

4 files changed (+58 additions, -5 deletions)

View changed files

.changeset/silly-plants-follow.md (+5 -0)
📝 libs/langgraph-api/src/storage/ops.mts (+13 -4)
📝 libs/langgraph-api/tests/auth.test.mts (+26 -1)
📝 libs/langgraph-api/tests/graphs/auth.mts (+14 -0)

📄 Description

Copying a thread is technically a write operation, so we should be invoking both the threads:read and threads:create auth handlers.


🔄 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/1641 **Author:** [@pjrule](https://github.com/pjrule) **Created:** 9/10/2025 **Status:** ✅ Merged **Merged:** 9/10/2025 **Merged by:** [@dqbd](https://github.com/dqbd) **Base:** `main` ← **Head:** `parker/threads-copy-perms` --- ### 📝 Commits (2) - [`2fbb57a`](https://github.com/langchain-ai/langgraphjs/commit/2fbb57adf8057261508606d1522e42a75237a0c5) fix(api): call threads:create auth handler when copying a thread - [`d25c618`](https://github.com/langchain-ai/langgraphjs/commit/d25c6180ef0aa32fa62fa164c97c099ec0aa0f06) Add changeset ### 📊 Changes **4 files changed** (+58 additions, -5 deletions) <details> <summary>View changed files</summary> ➕ `.changeset/silly-plants-follow.md` (+5 -0) 📝 `libs/langgraph-api/src/storage/ops.mts` (+13 -4) 📝 `libs/langgraph-api/tests/auth.test.mts` (+26 -1) 📝 `libs/langgraph-api/tests/graphs/auth.mts` (+14 -0) </details> ### 📄 Description Copying a thread is technically a write operation, so we should be invoking both the `threads:read` _and_ `threads:create` auth handlers. --- <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 20:16:18 -05:00
yindo closed this issue 2026-02-15 20:16:18 -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#1610