[PR #1788] [MERGED] [FEAT] Fork chat to new thread #3780

Closed
opened 2026-02-22 18:34:29 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/1788
Author: @shatfield4
Created: 6/28/2024
Status: Merged
Merged: 7/3/2024
Merged by: @timothycarambat

Base: masterHead: 1741-feat-branch-off-chat-to-new-thread


📝 Commits (10+)

  • 1dc5baf implement thread forking feature
  • d818a16 Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread
  • 2ff1075 rename thread based on forked message
  • 90e5527 Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread
  • 2e91aec refactor bulk message create for thread fork + bump prisma version
  • 9952890 revert prisma version bump
  • a05202d add todo to bulkCreate function in workspace chats
  • 5a706cf Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread
  • bc816a3 Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread
  • 89d6b36 cast user input to expected type to prevent prisma injection

📊 Changes

6 files changed (+157 additions, -1 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx (+31 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx (+2 -0)
📝 frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx (+14 -0)
📝 frontend/src/models/workspace.js (+16 -0)
📝 server/endpoints/workspaces.js (+77 -0)
📝 server/models/workspaceChats.js (+17 -0)

📄 Description

Pull Request Type

  • feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 🔨 chore
  • 📝 docs

Relevant Issues

resolves #1741

What is in this change?

  • Implement thread forking which allows users to create a fork of a chat into a new thread
  • This takes all messages above the selected message and copies them into the new workspace thread

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated
  • I have tested my code functionality
  • Docker build succeeds locally

🔄 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/Mintplex-Labs/anything-llm/pull/1788 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 6/28/2024 **Status:** ✅ Merged **Merged:** 7/3/2024 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `1741-feat-branch-off-chat-to-new-thread` --- ### 📝 Commits (10+) - [`1dc5baf`](https://github.com/Mintplex-Labs/anything-llm/commit/1dc5baf46d17a9b86d54d07ad34756d97a32284d) implement thread forking feature - [`d818a16`](https://github.com/Mintplex-Labs/anything-llm/commit/d818a16018a3ec62de40f3b39a81f3832bff1f8b) Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread - [`2ff1075`](https://github.com/Mintplex-Labs/anything-llm/commit/2ff1075cf0decfbf0677f9ef246fce57fac7488f) rename thread based on forked message - [`90e5527`](https://github.com/Mintplex-Labs/anything-llm/commit/90e552762073d466c7973da8bb9c875e56acb141) Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread - [`2e91aec`](https://github.com/Mintplex-Labs/anything-llm/commit/2e91aec2407afa5d7c674e8441eae38c93d6d944) refactor bulk message create for thread fork + bump prisma version - [`9952890`](https://github.com/Mintplex-Labs/anything-llm/commit/995289093121ac9a71eec6f1b95d8d1475954763) revert prisma version bump - [`a05202d`](https://github.com/Mintplex-Labs/anything-llm/commit/a05202d1a299f16bb256950e8781c6e92e7fcedb) add todo to bulkCreate function in workspace chats - [`5a706cf`](https://github.com/Mintplex-Labs/anything-llm/commit/5a706cf81a1dc70933daafe3903e74763bf4223e) Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread - [`bc816a3`](https://github.com/Mintplex-Labs/anything-llm/commit/bc816a3e7f25ff8842a83a4b0341d38877dd1bb0) Merge branch 'master' into 1741-feat-branch-off-chat-to-new-thread - [`89d6b36`](https://github.com/Mintplex-Labs/anything-llm/commit/89d6b3633416221fdab54be53c3b0b6ef645b621) cast user input to expected type to prevent prisma injection ### 📊 Changes **6 files changed** (+157 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/Actions/index.jsx` (+31 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/HistoricalMessage/index.jsx` (+2 -0) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/ChatHistory/index.jsx` (+14 -0) 📝 `frontend/src/models/workspace.js` (+16 -0) 📝 `server/endpoints/workspaces.js` (+77 -0) 📝 `server/models/workspaceChats.js` (+17 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [x] ✨ feat - [ ] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #1741 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Implement thread forking which allows users to create a fork of a chat into a new thread - This takes all messages above the selected message and copies them into the new workspace thread ### Additional Information <!-- Add any other context about the Pull Request here that was not captured above. --> ### Developer Validations <!-- All of the applicable items should be checked. --> - [x] I ran `yarn lint` from the root of the repo & committed changes - [x] Relevant documentation has been updated - [x] I have tested my code functionality - [x] Docker build succeeds locally --- <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-22 18:34:29 -05:00
yindo closed this issue 2026-02-22 18:34:29 -05:00
yindo changed title from [PR #1788] [FEAT] Fork chat to new thread to [PR #1788] [MERGED] [FEAT] Fork chat to new thread 2026-06-05 15:15:10 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#3780