feat(shipping-notice): 收敛复核状态隔离、STP 重试幂等与 XFA 合成预览标注

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-07 02:58:28 +08:00
1 parent 84a881b554
commit 74270adc22
149 files changed
+20111 -3871

No files matched your search

@@ -134,14 +134,23 @@ describe('conversationProcessingProjection', () => {
}),
]);
const projection = groupConversationProcessingTasks(tasks, { focusedTaskNo: 'OT-RUN-A' });
// 右侧总数不含 history;completed 独立成组。
// summary.total_* 含 history(正式 OT 全量);合成路径无截断。
expect(projection.summary).toEqual({
total_tasks: 4,
total_files: 4,
total_tasks: 5,
total_files: 5,
processing: 2,
needs_action: 1,
completed: 1,
history: 1,
returned: {
needs_action: 1,
processing: 2,
completed: 1,
history: 1,
},
truncated: { active: false, history: false },
has_more_active: false,
has_more_history: false,
});
expect(projection.needs_action[0]?.user_task_no).toBe('OT-RUN-A');
expect(projection.processing.map((t) => t.user_task_no).sort()).toEqual([
@@ -150,7 +159,7 @@ describe('conversationProcessingProjection', () => {
]);
expect(projection.completed?.[0]?.user_task_no).toBe('OT-RUN-DONE');
expect(projection.history[0]?.user_task_no).toBe('OT-RUN-C');
// [UI-02] 缺文件名时 title 为空,交给卡片回退「未命名 PDF」。
// title 为空,卡片统一展示「订单识别任务」。
const unnamed = projection.processing.find((t) => t.user_task_no === 'OT-RUN-NO-NAME');
expect(unnamed?.title).toBeNull();
});