这是indexloc提供的服务,不要输入任何密码
Skip to content

[BUG]: File attachments are not cleared on second send click #3842

@cnjsyyb

Description

@cnjsyyb

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

Metadata

Metadata

Labels

possible bugBug was reported but is not confirmed or is unable to be replicated.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions