feat(voice): 提升桌面端语音交互与本地任务执行支持
This commit is contained in:
@@ -524,6 +524,9 @@ func (h *Handler) StatsOverview(c *gin.Context) {
|
||||
// 此前这里走 RecentTasks(),于是运行历史加了 topic 字段、工作台完全没跟上,
|
||||
// 还在显示 report_<hex>;而且 RecentTasks 没有租户过滤,口径也不一致。
|
||||
recent := h.db.RecentRuns(ctx, uid, 8)
|
||||
if recent == nil {
|
||||
recent = []store.RunRow{} // nil slice 会序列化成 null(不是 [])——新账号空数据曾把前端打成白屏
|
||||
}
|
||||
|
||||
// 服务健康(与 Health 同口径:本地可判 + milvus/neo4j 经 mcp-go)。
|
||||
services := gin.H{"gateway": true, "nats": true, "db": h.db.Enabled(), "redis": h.cache.Enabled(), "milvus": false, "neo4j": false}
|
||||
|
||||
Reference in New Issue
Block a user