feat(chat): sync multi-role backend APIs
This commit is contained in:
@@ -8,6 +8,7 @@ import { resolveChatConversationKey } from "@/data/repositories/chat_cache_ident
|
||||
import { Logger } from "@/utils/logger";
|
||||
import { Result } from "@/utils/result";
|
||||
import { isAbortError } from "@/utils/abort";
|
||||
import { getCharacterErrorCode } from "@/data/services/api";
|
||||
|
||||
import type { ChatEvent } from "../../chat-events";
|
||||
import { sendResponseToUiMessage } from "../../helper/message-mappers";
|
||||
@@ -61,6 +62,9 @@ function createMessageQueueActor(
|
||||
type: "ChatQueuedSendError",
|
||||
content,
|
||||
errorMessage,
|
||||
...(getCharacterErrorCode(error)
|
||||
? { characterErrorCode: getCharacterErrorCode(error) ?? undefined }
|
||||
: {}),
|
||||
});
|
||||
} finally {
|
||||
if (activeController === controller) activeController = null;
|
||||
|
||||
Reference in New Issue
Block a user