[PR #4857] [CLOSED] Reorder workspace threads by latest interaction #4790

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/4857
Author: @shatfield4
Created: 1/12/2026
Status: Closed

Base: masterHead: 4844-feat-reorder-threads-by-latest-interaction


📝 Commits (8)

  • b91a9b0 reorder workspace threads by latest interaction
  • fd4a7a4 reorder threads on slash command usage
  • e0d62f9 reduce usage of touchAcivity by modifying WorkspaceChats.new to update timestamp
  • f02d52a reorder threads on agent chat
  • da11516 handle query mode no context
  • 5f46731 handle timeout race condition
  • 482b649 Merge branch 'master' into 4844-feat-reorder-threads-by-latest-interaction
  • 76808b2 create dispatchThreadActivityEvent to reduce code duplication

📊 Changes

9 files changed (+135 additions, -9 deletions)

View changed files

📝 frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx (+2 -1)
📝 frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx (+58 -1)
📝 frontend/src/components/WorkspaceChat/ChatContainer/index.jsx (+7 -1)
📝 frontend/src/index.css (+20 -0)
📝 frontend/src/utils/chat/index.js (+15 -2)
📝 server/endpoints/workspaceThreads.js (+8 -4)
📝 server/models/workspaceChats.js (+9 -0)
📝 server/models/workspaceThread.js (+13 -0)
📝 server/utils/chats/commands/reset.js (+3 -0)

📄 Description

Pull Request Type

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

Relevant Issues

resolves #4844

What is in this change?

  • Returns threads in descending order
  • On chat sent we reorder the threads to put latest interacted with threads at the top
  • Add subtle bump animation on reorder
  • Handles normal chat, query chat (with no context found), agent chat, and slash commands

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/4857 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 1/12/2026 **Status:** ❌ Closed **Base:** `master` ← **Head:** `4844-feat-reorder-threads-by-latest-interaction` --- ### 📝 Commits (8) - [`b91a9b0`](https://github.com/Mintplex-Labs/anything-llm/commit/b91a9b0185b458cb760c68693aba6bd6e6c118d3) reorder workspace threads by latest interaction - [`fd4a7a4`](https://github.com/Mintplex-Labs/anything-llm/commit/fd4a7a47717e1a8046959a9ba853375c99565b88) reorder threads on slash command usage - [`e0d62f9`](https://github.com/Mintplex-Labs/anything-llm/commit/e0d62f90892e39bf255683c16bc2df857c5e7e49) reduce usage of touchAcivity by modifying WorkspaceChats.new to update timestamp - [`f02d52a`](https://github.com/Mintplex-Labs/anything-llm/commit/f02d52a5e645ddea9e03dc7bb81cbc8907c67751) reorder threads on agent chat - [`da11516`](https://github.com/Mintplex-Labs/anything-llm/commit/da1151631758cea48831d8ef86c6261211123358) handle query mode no context - [`5f46731`](https://github.com/Mintplex-Labs/anything-llm/commit/5f467319eb9265ba29e0138e72321cdbedc0e27b) handle timeout race condition - [`482b649`](https://github.com/Mintplex-Labs/anything-llm/commit/482b649c6366fc11e2b5fb07a4cf3ba61ea58eb9) Merge branch 'master' into 4844-feat-reorder-threads-by-latest-interaction - [`76808b2`](https://github.com/Mintplex-Labs/anything-llm/commit/76808b2362a873a246195d1357ee364e90a06e6b) create dispatchThreadActivityEvent to reduce code duplication ### 📊 Changes **9 files changed** (+135 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/ThreadItem/index.jsx` (+2 -1) 📝 `frontend/src/components/Sidebar/ActiveWorkspaces/ThreadContainer/index.jsx` (+58 -1) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/index.jsx` (+7 -1) 📝 `frontend/src/index.css` (+20 -0) 📝 `frontend/src/utils/chat/index.js` (+15 -2) 📝 `server/endpoints/workspaceThreads.js` (+8 -4) 📝 `server/models/workspaceChats.js` (+9 -0) 📝 `server/models/workspaceThread.js` (+13 -0) 📝 `server/utils/chats/commands/reset.js` (+3 -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 #4844 ### What is in this change? <!-- Describe the changes in this PR that are impactful to the repo. --> - Returns threads in descending order - On chat sent we reorder the threads to put latest interacted with threads at the top - Add subtle bump animation on reorder - Handles normal chat, query chat (with no context found), agent chat, and slash commands ### 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:36:32 -05:00
yindo changed title from [PR #4857] Reorder workspace threads by latest interaction to [PR #4857] [CLOSED] Reorder workspace threads by latest interaction 2026-06-05 15:20:23 -04:00
yindo closed this issue 2026-06-05 15:20:23 -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#4790