[PR #3832] [MERGED] Disable message send while content is embedding #4428

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

📋 Pull Request Information

Original PR: https://github.com/Mintplex-Labs/anything-llm/pull/3832
Author: @timothycarambat
Created: 5/15/2025
Status: Merged
Merged: 5/16/2025
Merged by: @timothycarambat

Base: masterHead: ux/disable-send-while-embedding


📝 Commits (6)

  • bcbf4e0 Disable message send while content is embedding
  • adb96b5 opacity
  • 7677b30 normalize langs
  • 2e59a68 Merge branch 'master' into ux/disable-send-while-embedding
  • 5b4809b remove console log
  • 8b2d0c4 Merge branch 'master' into ux/disable-send-while-embedding

📊 Changes

20 files changed (+98 additions, -24 deletions)

View changed files

📝 frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx (+31 -19)
📝 frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx (+49 -5)
📝 frontend/src/locales/ar/common.js (+1 -0)
📝 frontend/src/locales/da/common.js (+1 -0)
📝 frontend/src/locales/de/common.js (+1 -0)
📝 frontend/src/locales/en/common.js (+1 -0)
📝 frontend/src/locales/es/common.js (+1 -0)
📝 frontend/src/locales/fa/common.js (+1 -0)
📝 frontend/src/locales/fr/common.js (+1 -0)
📝 frontend/src/locales/he/common.js (+1 -0)
📝 frontend/src/locales/it/common.js (+1 -0)
📝 frontend/src/locales/ja/common.js (+1 -0)
📝 frontend/src/locales/ko/common.js (+1 -0)
📝 frontend/src/locales/nl/common.js (+1 -0)
📝 frontend/src/locales/pt_BR/common.js (+1 -0)
📝 frontend/src/locales/ru/common.js (+1 -0)
📝 frontend/src/locales/tr/common.js (+1 -0)
📝 frontend/src/locales/vn/common.js (+1 -0)
📝 frontend/src/locales/zh/common.js (+1 -0)
📝 frontend/src/locales/zh_TW/common.js (+1 -0)

📄 Description

Pull Request Type

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

What is in this change?

Disable the prompt from being sent while content is actively embedding in the window. This prevents the user from sending a prompt too early where RAG is incomplete, resulting in a bad response since the document cannot be searched.

Will apply:

  • Any Drag and Drop doc
  • Any pasted doc
  • Any paperclip click > select document
  • Will be disabled until all objects resolve regardless of status

Additional Information

  • Extracted this disable watch into a hook that we can extend for any other cases we wish to disable sending for whatever reason.

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/3832 **Author:** [@timothycarambat](https://github.com/timothycarambat) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/16/2025 **Merged by:** [@timothycarambat](https://github.com/timothycarambat) **Base:** `master` ← **Head:** `ux/disable-send-while-embedding` --- ### 📝 Commits (6) - [`bcbf4e0`](https://github.com/Mintplex-Labs/anything-llm/commit/bcbf4e05884cba24f7146e2bfb242c9a4f343e54) Disable message send while content is embedding - [`adb96b5`](https://github.com/Mintplex-Labs/anything-llm/commit/adb96b53187823794cd76639b61ea4781b9f6c90) opacity - [`7677b30`](https://github.com/Mintplex-Labs/anything-llm/commit/7677b30cc8b85576fb9b5d1074ae9bfdbba6f329) normalize langs - [`2e59a68`](https://github.com/Mintplex-Labs/anything-llm/commit/2e59a687163f60d93c43633ba14655b6fc6aefbf) Merge branch 'master' into ux/disable-send-while-embedding - [`5b4809b`](https://github.com/Mintplex-Labs/anything-llm/commit/5b4809be1b3a830a4d8c7cc600a453c04c66fce6) remove console log - [`8b2d0c4`](https://github.com/Mintplex-Labs/anything-llm/commit/8b2d0c46a58cd41dd0d2b3cd6194463f126c4c6e) Merge branch 'master' into ux/disable-send-while-embedding ### 📊 Changes **20 files changed** (+98 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `frontend/src/components/WorkspaceChat/ChatContainer/DnDWrapper/index.jsx` (+31 -19) 📝 `frontend/src/components/WorkspaceChat/ChatContainer/PromptInput/index.jsx` (+49 -5) 📝 `frontend/src/locales/ar/common.js` (+1 -0) 📝 `frontend/src/locales/da/common.js` (+1 -0) 📝 `frontend/src/locales/de/common.js` (+1 -0) 📝 `frontend/src/locales/en/common.js` (+1 -0) 📝 `frontend/src/locales/es/common.js` (+1 -0) 📝 `frontend/src/locales/fa/common.js` (+1 -0) 📝 `frontend/src/locales/fr/common.js` (+1 -0) 📝 `frontend/src/locales/he/common.js` (+1 -0) 📝 `frontend/src/locales/it/common.js` (+1 -0) 📝 `frontend/src/locales/ja/common.js` (+1 -0) 📝 `frontend/src/locales/ko/common.js` (+1 -0) 📝 `frontend/src/locales/nl/common.js` (+1 -0) 📝 `frontend/src/locales/pt_BR/common.js` (+1 -0) 📝 `frontend/src/locales/ru/common.js` (+1 -0) 📝 `frontend/src/locales/tr/common.js` (+1 -0) 📝 `frontend/src/locales/vn/common.js` (+1 -0) 📝 `frontend/src/locales/zh/common.js` (+1 -0) 📝 `frontend/src/locales/zh_TW/common.js` (+1 -0) </details> ### 📄 Description ### Pull Request Type <!-- For change type, change [ ] to [x]. --> - [ ] ✨ feat - [x] 🐛 fix - [ ] ♻️ refactor - [ ] 💄 style - [ ] 🔨 chore - [ ] 📝 docs ### What is in this change? Disable the prompt from being sent while content is actively embedding in the window. This prevents the user from sending a prompt too early where RAG is incomplete, resulting in a bad response since the document cannot be searched. <!-- Describe the changes in this PR that are impactful to the repo. --> Will apply: - Any Drag and Drop doc - Any pasted doc - Any paperclip click > select document - Will be disabled until all objects resolve regardless of status ### Additional Information - Extracted this disable watch into a hook that we can extend for any other cases we wish to disable sending for whatever reason. <!-- 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:35:48 -05:00
yindo closed this issue 2026-02-22 18:35:49 -05:00
yindo changed title from [PR #3832] Disable message send while content is embedding to [PR #3832] [MERGED] Disable message send while content is embedding 2026-06-05 15:18:31 -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#4428