mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
- 新增 DeviceSessionRegistry:同一 device-id 新连接建立时登记并返回旧会话, 服务端主动 abort + 清队列 + close,目标 5 秒内收敛;旧会话结束时只在 自己仍是登记对象时注销,避免把新会话删掉(#3526) - ConnectionHandler.close() 可重复调用(新连接/超时任务可能同时触发), 取消后台初始化任务、给上报线程投毒丸、清空 asr_audio 与队列、 断开 websocket 引用,减少断开重连后的残留(#3000) - ASR 最终文本为空:静音只记日志;检测到有人说话时下发"没听清,请再说一遍", 不再静默丢弃(#3526) - chat() 流式循环改为按轮次判废(abort 或 sentence_id 已被新轮次接管), 避免上一轮 TTS 遗留的迟到 abort 误杀新一轮回答;中断时不写残缺历史、 不发 LAST,并在 finally 关闭底层流(#3437) 主体改动来自上游仓库对象库中已存在的 commit 28463250(作者 agent <agent@local>, 2026-11-23)。它挂在 #3526 / #3000 / #3437 的 referenced 事件上,但既没有分支 也没有 PR,因此一直没被合入。本次提交时移除了该 commit 附带的一组 WebSocket keepalive 配置:上游已在 #3573 / #3575 合入 enable_websocket_ping(应用层心跳), 同一开关不应被两套机制共用。 |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| plugins_func | ||
| __init__.py | ||
| conftest.py | ||
| test_chat_turn_cancellation.py | ||
| test_connection_close_idempotent.py | ||
| test_llm.py | ||
| test_manage_api_client_lifecycle.py | ||
| test_memory.py | ||
| test_rag.py | ||
| test_smoke.py | ||
| test_stt.py | ||
| test_tts.py | ||
| test_ws_session_convergence.py | ||