feat(shipping-notice): 落地 XFA 拆分、版面签名、统一进度与处理域履约

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
hugoandCursor committed 2026-08-06 10:18:37 +08:00
1 parent 3a9fbac2fc
commit d2b3d74def
571 files changed
+78064 -24681

No files matched your search

@@ -71,18 +71,12 @@ class ShippingNoticeHandler(AgentHandler):
task = get_task_by_ref(task_id) if task_id else None
batch = get_batch_by_no(batch_no) if batch_no else None
session_id = str(getattr(ctx.session, 'session_id', '') or '')
if task is None and batch is not None:
focus_task_no = str(batch.current_focus_task_no or '').strip()
if focus_task_no:
candidate = get_task_by_ref(focus_task_no)
if candidate is not None and candidate.batch_id == batch.id:
task = candidate
if task is not None:
return {
'event': 'shipping_ui_state',
'conversation_id': session_id,
'task_no': task.task_no,
'batch_no': task.batch.batch_no if task.batch is not None else None,
'batch_no': None,
'ui_state': build_task_ui_state(task),
}
if batch is not None: