feat: 将 Session Manager + Orchestrator 串入 WebSocket handler,实现端到端消息处理。 #38

Merged
huanghaosheng merged 3 commits from feature/phase5 into develop 2026-06-13 16:17:23 +08:00
No description provided.
huanghaosheng added 3 commits 2026-06-13 16:16:58 +08:00
- 扩展 Client 结构体,添加 sessionManager、orchestrator、cancelFuncs 字段
- 创建 WSClient 适配器实现 orchestrator.Sender 接口
- 更新 ServeWS 函数签名,接收 orchestrator 参数
- 在 main.go 中初始化 AI 服务和 Orchestrator
- 创建可取消的 context 并存储 cancel func
- 获取对话历史并传递给 orchestrator
- 启动 orchestrator.ProcessQuery goroutine 处理查询
- 请求完成后自动清理 cancel func 和活跃请求标记
huanghaosheng merged commit 4aa9f31e57 into develop 2026-06-13 16:17:23 +08:00
huanghaosheng deleted branch feature/phase5 2026-06-13 16:17:40 +08:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: XEngineers/CamTalk#38