feat(shipping-notice): 收敛复核状态隔离、STP 重试幂等与 XFA 合成预览标注
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
84a881b554
commit
74270adc22
149 files changed
+20111
-3871
No files matched your search
@@ -516,6 +516,7 @@ export function projectConversationProcessingTasks(
|
||||
|
||||
/**
|
||||
* 将任务列表按分组装入 ConversationProcessingProjection。
|
||||
* 核心逻辑:summary.total_* 含 history;合成路径无截断,has_more=false。
|
||||
*/
|
||||
export function groupConversationProcessingTasks(
|
||||
tasks: ConversationProcessingUserTask[],
|
||||
@@ -528,14 +529,23 @@ export function groupConversationProcessingTasks(
|
||||
const processing = tasks.filter((t) => t.group === 'processing');
|
||||
const completed = tasks.filter((t) => t.group === 'completed');
|
||||
const history = tasks.filter((t) => t.group === 'history');
|
||||
const active = [...needs_action, ...processing, ...completed];
|
||||
const all = [...needs_action, ...processing, ...completed, ...history];
|
||||
const summary: ConversationProcessingSummary = {
|
||||
total_tasks: needs_action.length + processing.length + completed.length,
|
||||
total_files: active.reduce((sum, task) => sum + Number(task.file_count || 0), 0),
|
||||
total_tasks: all.length,
|
||||
total_files: all.reduce((sum, task) => sum + Number(task.file_count || 0), 0),
|
||||
processing: processing.length,
|
||||
needs_action: needs_action.length,
|
||||
completed: completed.length,
|
||||
history: history.length,
|
||||
returned: {
|
||||
needs_action: needs_action.length,
|
||||
processing: processing.length,
|
||||
completed: completed.length,
|
||||
history: history.length,
|
||||
},
|
||||
truncated: { active: false, history: false },
|
||||
has_more_active: false,
|
||||
has_more_history: false,
|
||||
};
|
||||
return {
|
||||
summary,
|
||||
|
||||
Reference in new issue
Block a user