Category: Operational & UX
Priority: Medium
Phase: Phase 7–8 (HITL + React frontend)
Problem
A HITL pause mid-stream leaves the frontend to infer state (partial answer, paused, resumed) from stream closure alone — a non-trivial implicit state machine.
Solution
Define explicit SSE event types (answer_chunk, hitl_pause, hitl_resume, answer_done, error) as an API/frontend contract; document in the API's AGENTS.md.
Category: Operational & UX
Priority: Medium
Phase: Phase 7–8 (HITL + React frontend)
Problem
A HITL pause mid-stream leaves the frontend to infer state (partial answer, paused, resumed) from stream closure alone — a non-trivial implicit state machine.
Solution
Define explicit SSE event types (
answer_chunk,hitl_pause,hitl_resume,answer_done,error) as an API/frontend contract; document in the API'sAGENTS.md.