feat: realtime HTML update via WebSocket#61
Conversation
Add live reload support for preview sessions. When files are updated via the incremental upload API, connected browsers automatically refresh. - WebSocket hub/client architecture for per-session connection management - HTML injection middleware that adds live reload script to served pages - PUT /api/sessions/:id/files API for incremental file updates - sth watch command for local directory monitoring and auto-sync - File system watcher with 300ms debounce for server-side changes Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
No gaps found. Let me verify by cross-referencing the spec items one more time: Spec (Issue #60) requirements vs implementation:
All functional requirements from the spec are fully implemented and integrated. The only notable observation is that 无遗漏 |
|
可合并 总结:该 PR 通过 WebSocket 实现了实时 HTML 刷新功能,新增 阻塞项:无 建议项:
|
- Use strings.TrimPrefix instead of hardcoded index in extractSessionID - Remove unused _ = key in handleUpdateFiles - Add TOCTOU safety comment in BroadcastTo - Add hidden/temp file filtering to server-side WatchDir - Log errors when uploadFiles cannot open a file Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
无遗漏 所有 spec(Issue #60)需求均已完整实现:
所有功能点均完整实现并正确集成,无遗漏。 |
|
可合并 |




Summary
sth watchcommand for local directory monitoring and auto-sync to remote sessionsKey Components
PUT /api/sessions/:id/filesfor partial updatesTest plan
go vet ./...cleanCloses #60
🤖 Generated with Claude Code