Fix File attachments are not cleared on second send click when use @a… (#3843)

Fix File attachments are not cleared on second send click when use @agent

Co-authored-by: Timothy Carambat <rambat1010@gmail.com>
This commit is contained in:
yuanbin 2025-05-27 22:38:11 +08:00 committed by GitHub
parent 3c44d6a656
commit dc8b204cd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -162,6 +162,7 @@ export default function ChatContainer({ workspace, knownHistory = [] }) {
// Override hook for new messages to now go to agents until the connection closes
if (!!websocket) {
if (!promptMessage || !promptMessage?.userMessage) return false;
window.dispatchEvent(new CustomEvent(CLEAR_ATTACHMENTS_EVENT));
websocket.send(
JSON.stringify({
type: "awaitingFeedback",