Ajustes
This commit is contained in:
@@ -207,6 +207,29 @@ class ClaudeFormatEmitter:
|
||||
# Emit assistant snapshot for reconciliation
|
||||
self._push(session_id, self._build_assistant_snapshot(session_id))
|
||||
|
||||
elif event_type == EventType.PLAN_CREATED:
|
||||
# Fase 5.5: PlanStepper UI. Reenviamos los datos del plan al
|
||||
# frontend como evento custom "plan.created".
|
||||
self._push(session_id, {
|
||||
"type": "plan.created",
|
||||
"plan": data,
|
||||
})
|
||||
|
||||
elif event_type == EventType.PLAN_ADVANCED:
|
||||
self._push(session_id, {
|
||||
"type": "plan.advanced",
|
||||
"cursor": data.get("cursor", 0),
|
||||
"completed_step_ids": data.get("completed_step_ids", []),
|
||||
"status": data.get("status", "active"),
|
||||
})
|
||||
|
||||
elif event_type == EventType.PLAN_ENDED:
|
||||
self._push(session_id, {
|
||||
"type": "plan.ended",
|
||||
"status": data.get("status", "done"),
|
||||
"objective": data.get("objective", ""),
|
||||
})
|
||||
|
||||
elif event_type == EventType.EXECUTION_COMPLETED:
|
||||
# Close any open text block
|
||||
self._close_text_block(session_id)
|
||||
|
||||
Reference in New Issue
Block a user