feat(shipping-notice): 增加发货通知建单幂等性支持及内容哈希校验

This commit is contained in:
hugo committed 2026-07-14 00:28:52 +08:00
1 parent 0a9bd6415d
commit 143e054d86
39 files changed
+1750 -80

No files matched your search

@@ -17,6 +17,7 @@ export interface ChatPageConversationContext {
isThinking: Ref<boolean>;
loadConversationState: (id: string, loaded: ChatMessage[]) => void;
createNewChatView: () => void;
clearPendingNoticeBatchRetry: () => void;
onConversationIdChanging: (nextId: string, prevId: string | null | undefined) => void;
onConversationLoadedEmpty: () => Promise<void>;
onConversationLoadFailed: () => Promise<void>;
@@ -71,6 +72,7 @@ export function createChatPageConversationApi(ctx: ChatPageConversationContext)
};
const startNewChat = () => {
ctx.clearPendingNoticeBatchRetry();
ctx.createNewChatView();
ctx.clearAttachments();
ctx.input.value = '';
@@ -84,6 +86,7 @@ export function createChatPageConversationApi(ctx: ChatPageConversationContext)
};
const resetChatStateForAgentChange = () => {
ctx.clearPendingNoticeBatchRetry();
ctx.createNewChatView();
ctx.clearHistory();
ctx.clearAttachments();