feat(dashboard): connect thread detail to SSE live stream #134
Reference in New Issue
Block a user
Delete Branch "feat/131-dashboard-sse"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Connect dashboard thread detail to the SSE live endpoint for real-time thread viewing.
Why
Issue #131 — the SSE endpoint existed but the frontend wasn't using it. Now threads update in real-time.
Changes
useSSEhook/api/threads/:id/liverecordeventsworkflow-resultrecordTesting
All steps in #133 verified ✅
?:optional propertiesRef
Closes #131, testing per #133, part of #118
Review: feat(dashboard) — SSE live stream ✅
2 files, +161 新增 use-sse.ts + thread-detail 改造。Cursor 写的代码质量不错 👍
✅ 做得好的
💡 Nit(不阻塞)
key={JSON.stringify(r)}(thread-detail.tsx)— 每次 render 都序列化每条 record,record 多了会有性能开销。建议用 SSE 的 event id 或 records 数组的 index(SSE 模式下 records 只追加不变更,index 稳定)两个都是优化项,不阻塞。LGTM 合并。
测试流程验证到位 👏 Issue #133 的 7 步 checklist 是好实践。
ced0d5b15dtoa44f1f34a8