(plan) convert original implement plan to mock api

This commit is contained in:
Story Crater Bot
2026-08-19 09:47:14 -07:00
parent c42040319f
commit 0aef2281bc
65 changed files with 307 additions and 627 deletions
+3 -2
View File
@@ -1,8 +1,9 @@
# 5.13 — Frontend: chat component (GREEN)
# 5.13 — Frontend: wire chat page to /api/chat (GREEN)
Phase: 5 — Chat + Rate Limiter (Surface D)
Stage: GREEN
Depends on: [5.6](5.6-chat-e2e.md), [5.12](5.12-chat-sse-events.md)
- [ ] Frontend: new chat component — collapsible reasoning block, queue position, streaming tokens
- [ ] [app/cluster/chat/page.tsx](../app/cluster/chat/page.tsx) currently fakes the queue -> stream transition entirely client-side with `setTimeout`/`setInterval` against hardcoded `REPLY`/`REPLY_REASONING` strings — replace with an SSE read from `POST /api/chat` (mock), parsing `queue`/`reasoning`/`content`/`done` events into the existing `Turn` state 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