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:
parent
3c44d6a656
commit
dc8b204cd1
@ -162,6 +162,7 @@ export default function ChatContainer({ workspace, knownHistory = [] }) {
|
|||||||
// Override hook for new messages to now go to agents until the connection closes
|
// Override hook for new messages to now go to agents until the connection closes
|
||||||
if (!!websocket) {
|
if (!!websocket) {
|
||||||
if (!promptMessage || !promptMessage?.userMessage) return false;
|
if (!promptMessage || !promptMessage?.userMessage) return false;
|
||||||
|
window.dispatchEvent(new CustomEvent(CLEAR_ATTACHMENTS_EVENT));
|
||||||
websocket.send(
|
websocket.send(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
type: "awaitingFeedback",
|
type: "awaitingFeedback",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user