[GH-ISSUE #3842] [BUG]: File attachments are not cleared on second send click #2457

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

Originally created by @yuanbin-dev on GitHub (May 18, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3842

Originally assigned to: @timothycarambat on GitHub.

How are you running AnythingLLM?

Local development

What happened?

When clicking the send button a second time, previously attached files are not cleared as expected. This appears to be due to CLEAR_ATTACHMENTS_EVENT not being triggered correctly unless certain conditions are met.

frontend/src/components/WorkspaceChat/ChatContainer/index.jsx
shoud add code: window.dispatchEvent(new CustomEvent(CLEAR_ATTACHMENTS_EVENT));
Image

Are there known steps to reproduce?

input @agent
click send button

No response

Originally created by @yuanbin-dev on GitHub (May 18, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3842 Originally assigned to: @timothycarambat on GitHub. ### How are you running AnythingLLM? Local development ### What happened? When clicking the send button a second time, previously attached files are not cleared as expected. This appears to be due to CLEAR_ATTACHMENTS_EVENT not being triggered correctly unless certain conditions are met. frontend/src/components/WorkspaceChat/ChatContainer/index.jsx shoud add code: window.dispatchEvent(new CustomEvent(CLEAR_ATTACHMENTS_EVENT)); <img width="686" alt="Image" src="https://github.com/user-attachments/assets/3e717703-e2da-46d2-b989-fd31b73641c7" /> ### Are there known steps to reproduce? input @agent click send button _No response_
yindo added the possible bug label 2026-02-22 18:29:45 -05:00
yindo closed this issue 2026-02-22 18:29:45 -05:00
yindo changed title from [BUG]: File attachments are not cleared on second send click to [GH-ISSUE #3842] [BUG]: File attachments are not cleared on second send click 2026-06-05 14:46:38 -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#2457