## 问题描述 WebSocket `/ws/chat` 连接没有 ping/pong 保活机制,长时间空闲后可能被代理或防火墙断开。 ## 当前行为 - 连接建立后无定期心跳 - 长时间无消息时连接可能静默断开 - 客户端无法区分"空闲"和"已断开" ## 修复建议 1. 服务端每 30s 发送 ping frame 2. 客户端回复 pong frame 3. 超时未收到 pong 则标记连接断开 4. 客户端检测超时后自动重连 ## 关联 - 端到端验证报告: ~/fusion/architecture/validate-fusion-code.md ISSUE-8 - code-2-studio.md Layer 3 WS spec 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Activity
fix: API server model status auth + endpoint, LSP init timeout, WS he…
dahai80 commentedon Aug 3, 2026
Fixed in b9f1924: /ws/chat WebSocket now sends ping every 30s with proper cleanup on close to prevent stale connections.
refactor(screens): extract requestPrompt curried factory (audit 1.1.1…
refactor(screens): extract worktree sparsePaths-tip effect body (audi…
refactor(screens): extract sandbox-unavailable mount effect body (aud…
refactor(screens): extract promptQueueUseCount analytics effect body …
refactor(screens): extract swarm turn-duration effect body (audit 1.1…
refactor(screens): extract handleRemoteInit callback body (audit 1.1.…
refactor(screens): extract cost-threshold dialog effect body (audit 1…
refactor(screens): extract agent-tool-restrictions memo (audit 1.1.1 …