Feat: Delete the operator node and hide the corresponding sheet #3221 (#9142)

### What problem does this PR solve?

Feat: Delete the operator node and hide the corresponding sheet #3221
### Type of change


- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2025-08-01 09:38:48 +08:00
committed by GitHub
parent 89c2067a16
commit 0aa160a990
8 changed files with 55 additions and 19 deletions

View File

@ -235,18 +235,23 @@ export const useSendAgentMessage = (
params.session_id = sessionId;
}
const res = await send(params);
clearUploadResponseList();
try {
const res = await send(params);
if (receiveMessageError(res)) {
sonnerMessage.error(res?.data?.message);
clearUploadResponseList();
// cancel loading
setValue(message.content);
removeLatestMessage();
} else {
// refetch(); // pull the message list after sending the message successfully
if (receiveMessageError(res)) {
sonnerMessage.error(res?.data?.message);
// cancel loading
setValue(message.content);
removeLatestMessage();
} else {
// refetch(); // pull the message list after sending the message successfully
}
} catch (error) {
console.log('🚀 ~ useSendAgentMessage ~ error:', error);
}
},
[