712 B
712 B
5.13 — Frontend: wire chat page to /api/chat (GREEN)
Phase: 5 — Chat + Rate Limiter (Surface D) Stage: GREEN
- app/cluster/chat/page.tsx currently fakes the queue -> stream transition entirely client-side with
setTimeout/setIntervalagainst hardcodedREPLY/REPLY_REASONINGstrings — replace with an SSE read fromPOST /api/chat(mock), parsingqueue/reasoning/content/doneevents into the existingTurnstate shape - Collapsible reasoning block, queue position, and streaming-token rendering already exist in the component — this task is the data-source swap, not new UI