fix:lack the completed status set

This commit is contained in:
jw_mac
2026-06-11 21:09:00 +08:00
committed by lyingbug
parent ebe7bfe0ae
commit 232280d959
+2
View File
@@ -1345,6 +1345,7 @@ const handleAgentChunk = (data) => {
if (data.response_type === 'error' && !toolName) {
const errorMsg = data.content || t('chat.processError');
message.content = errorMsg;
message.is_completed = true;
isReplying.value = false;
loading.value = false;
MessagePlugin.error(errorMsg);
@@ -1354,6 +1355,7 @@ const handleAgentChunk = (data) => {
// Generic error without tool context
const errorMsg = data.content || t('chat.processError');
message.content = errorMsg;
message.is_completed = true;
isReplying.value = false;
loading.value = false;
MessagePlugin.error(errorMsg);