[PR #5550] [MERGED] Auto-rename thread in agent mode #5478

Closed
opened 2026-06-05 15:21:29 -04:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/5550
Author: @shatfield4
Created: 4/28/2026
Status: Merged
Merged: 4/29/2026
Merged by: @timothycarambat

Base: masterHead: 5546-bug-thread-renaming-broken-in-auto-mode


📝 Commits (1)

  • 6294bfd auto-rename thread in agent mode

📊 Changes

4 files changed (+61 additions, -6 deletions)

View changed files

📝 frontend/src/utils/chat/agent.js (+14 -0)
📝 server/endpoints/chat.js (+1 -2)
📝 server/models/workspaceThread.js (+5 -4)
📝 server/utils/agents/aibitat/plugins/chat-history.js (+41 -0)

📄 Description

Pull Request Type

  • feat (New feature)
  • 🐛 fix (Bug fix)
  • ♻️ refactor (Code refactoring without changing behavior)
  • 💄 style (UI style changes)
  • 🔨 chore (Build, CI, maintenance)
  • 📝 docs (Documentation updates)

Relevant Issues

resolves #5546

Description

  • Fixes bug where auto-thread renaming was not working in agent/auto modes
  • Refactored truncation logic to be put directly in the thread model for logic reuse
  • Reuses rename_thread event to rename the thread in the frontend

Visuals (if applicable)

Additional Information

Developer Validations

  • I ran yarn lint from the root of the repo & committed changes
  • Relevant documentation has been updated (if applicable)
  • 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/5550 **Author:** [@shatfield4](https://github.com/shatfield4) **Created:** 4/28/2026 **Status:** ✅ Merged **Merged:** 4/29/2026 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `5546-bug-thread-renaming-broken-in-auto-mode` --- ### 📝 Commits (1) - [`6294bfd`](https://github.com/Mintplex-Labs/anything-llm/commit/6294bfdf6d31b0569f390e776736bde89ecdf3a0) auto-rename thread in agent mode ### 📊 Changes **4 files changed** (+61 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/utils/chat/agent.js` (+14 -0) 📝 `server/endpoints/chat.js` (+1 -2) 📝 `server/models/workspaceThread.js` (+5 -4) 📝 `server/utils/agents/aibitat/plugins/chat-history.js` (+41 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat (New feature) - [x] 🐛 fix (Bug fix) - [ ] ♻️ refactor (Code refactoring without changing behavior) - [ ] 💄 style (UI style changes) - [ ] 🔨 chore (Build, CI, maintenance) - [ ] 📝 docs (Documentation updates) ### Relevant Issues <!-- Use "resolves #xxx" to auto resolve on merge. Otherwise, please use "connect #xxx" --> resolves #5546 ### Description <!-- Describe the changes in this PR that are impactful to the repo. What problem does it solve? --> - Fixes bug where auto-thread renaming was not working in agent/auto modes - Refactored truncation logic to be put directly in the thread model for logic reuse - Reuses `rename_thread` event to rename the thread in the frontend ### Visuals (if applicable) <!-- Add screenshots or screen recordings to demonstrate the changes, especially for UI updates. --> ### 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 (if applicable) - [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-06-05 15:21:29 -04:00
yindo closed this issue 2026-06-05 15:21:29 -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#5478