This commit is contained in:
hupenglong1
2026-05-22 20:56:57 +08:00
parent 5311e6d97c
commit 362321c460
3 changed files with 164 additions and 19 deletions
+6
View File
@@ -6128,6 +6128,9 @@ def _build_pipeline_items(
# amber pill ("等待人工确认") instead of the spinning blue "IN PROGRESS"
# used for actual running steps.
gate_status = 'waiting' if raw_status == 'running' else raw_status
# Structured fields for the gate body — agent should prefer these so
# the UI can render labeled rows (现状 / 提议 / 请选). `reason` is kept
# as a free-text fallback for entries that haven't been migrated.
gate_items.append({
'type': 'gate',
'key': gate_key,
@@ -6138,6 +6141,9 @@ def _build_pipeline_items(
'description': meta_g['description'],
'status': gate_status,
'reason': entry.get('reason'),
'summary': entry.get('summary'),
'proposal': entry.get('proposal'),
'ask': entry.get('ask'),
'_order_key': (run_index, 99, gate_position_index.get(gate_key, 0)),
})