Commit graph

1444 commits

Author SHA1 Message Date
Sakura-RanChen
d6d2da3d76 fix: 记忆模式为nomem时错误生成标题 2026-09-09 10:33:37 +08:00
CGD
5aa46538d5
Merge pull request #3358 from xinnan-tech/fix-audio-delay
fix: 修复固定延迟不生效,调整相关逻辑
2026-09-08 10:53:25 +08:00
Sakura-RanChen
79a95af399 fix: 修复固定延迟不生效,调整相关逻辑 2026-09-07 11:38:06 +08:00
3030332422
32cba36237 fix: 修复 ManageApiClient 关闭期间的连接池创建竞态 2026-09-07 11:14:50 +08:00
CGD
82e3c1874f
Merge pull request #3353 from muxinshijie/feature/manage-api-client-toctou
fix: 根治ManageApiClient单例TOCTOU竞态,锁保护+统一防护 #3339
2026-09-07 10:31:58 +08:00
hrz
8a3c2c51a0
Merge pull request #3351 from taiwan-dog/pm/disable-default-websocket-keepalive
fix: disable library WebSocket keepalive for device server
2026-09-05 00:37:23 +08:00
hrz
046fdc8aa4
Merge pull request #3350 from taiwan-dog/pm/hello-before-mcp-initialize
fix: send server hello before MCP initialize
2026-09-05 00:26:15 +08:00
muxinshijie
61e4879826 fix: 根治ManageApiClient单例TOCTOU竞态,锁保护+统一防护 #3339 2026-09-05 00:14:09 +08:00
yillkid
eda3c23d51 fix: disable library WebSocket keepalive for device server
websockets.serve() defaults to ping_interval=20 and ping_timeout=20.
ESP32 clients that do not answer those pings are dropped with
1011 keepalive ping timeout roughly 40 seconds into a healthy session.
The application-level ping is configured separately via
enable_websocket_ping.

Refs #3348
2026-09-04 19:00:24 +08:00
yillkid
a03a0a73db fix: send server hello before MCP initialize
The MCP initialize task was scheduled before the server hello was sent,
so the MCP frame could reach the device first. ESP32 firmware waits for
the server hello before it treats the channel as ready, so the device
never answered the initialize request.

Refs #3347
2026-09-04 19:00:24 +08:00
欣南科技
27e780e4c1
Merge pull request #3342 from xinnan-tech/test-infrastructure
test: 新增三语测试基建(Python/Java/Vue)+ CI
2026-09-04 13:54:31 +08:00
hrz
4b1ccce575
Merge pull request #3346 from taiwan-dog/pm/fix-funasr-result-type
fix: normalize FunASR result type
2026-09-04 13:40:00 +08:00
yillkid
323c2248b4 [pm] fix: normalize FunASR result type 2026-09-04 13:10:58 +08:00
hrz
caab6a145d 加插件包导入冒烟测试,1 例 2026-09-02 22:24:35 +08:00
hrz
7ac454a1b9 加意图/模型/记忆工厂测试,6 例 2026-09-02 22:24:35 +08:00
hrz
ba20bebaeb 加对话消息测试 11 例,含异步 2026-09-02 22:24:35 +08:00
hrz
922adbb290 加配置合并函数测试,7 例 2026-09-02 22:24:35 +08:00
hrz
6eca417534 加 current_time 测试 7 例,冻结时间 2026-09-02 22:24:35 +08:00
hrz
93d54f175a 加 output_counter 测试,7 例 2026-09-02 22:24:35 +08:00
hrz
34ab39ba69 加 textUtils 行为测试,11 例 2026-09-02 22:24:35 +08:00
hrz
a0dd138e93 配 pytest 与 conftest,修模块路径 2026-09-02 22:24:35 +08:00
hrz
b90dd01826 加 Python 冒烟测试,验证 pytest 流水线 2026-09-02 22:24:35 +08:00
muxinshijie
74cc31d1cc 服务关闭时主线程调用safe_close()将instance置None,与守护线程存在竞态条件,因此必须先判空 2026-08-27 00:13:21 +08:00
hrz
ced7103639
Merge branch 'main' into fix-model-name 2026-08-18 16:31:21 +08:00
3030332422
59b51e021b update:暂时撤回对gemini模型的更替 2026-08-14 20:08:51 +08:00
Tyke Chen
04b3ad5aae fix(tts): validate timeout range 2026-08-13 15:59:41 +08:00
Tyke Chen
2c43a13d6e fix(tts): unify configurable request timeouts 2026-08-13 15:02:17 +08:00
henson957
db7db3de67 fix(tts): reuse base tts_timeout config instead of hardcoded 15 2026-08-13 13:28:17 +08:00
henson957
d03d0d0982 fix(tts): add HTTP timeout and error handling to SiliconFlow provider
- requests.request() had no timeout: when the SiliconFlow API slows down,
  the request hangs forever and the device produces no audio intermittently
- non-200 responses (rate limit, error page) were written to disk as audio;
  now the status code is checked and an exception is raised with the body
2026-08-12 17:37:04 +08:00
3030332422
2a465f0fb5 fix: 修复 performance_tester 异步配置加载错误 2026-08-07 10:23:25 +08:00
3030332422
ea6b0c3746 update:豆包模型更换为doubao-seed-2-0-lite-260215,Gemini模型更换为gemini-3.6-flash 2026-08-07 09:09:53 +08:00
3030332422
88eed86dc2 update:关闭deepseek的思考模式 2026-08-06 13:07:04 +08:00
3030332422
a269953787 fix:deepseek模型名称更改为deepseek-v4-flash 2026-08-06 11:10:31 +08:00
3030332422
a21a2e34d0 refactor: 合并 HA 设备控制插件为 hass_state 模块 2026-07-29 09:58:26 +08:00
3030332422
7a22b61969 fix:修复与函数同名时遗漏其他函数的问题 2026-07-28 17:05:18 +08:00
CGD
477f85b97c
Merge pull request #3304 from MsThink/main
fix(plugins): 展开模块级别插件名为具体函数名
2026-07-28 15:22:58 +08:00
Sakura-RanChen
5e0d853256
Merge pull request #3309 from xinnan-tech/py-fix-reportHandle
refactor(reportHandle): 重构上报处理逻辑,适配多格式音频转换
2026-07-27 15:24:15 +08:00
wengzh
2a9f809700 refactor(reportHandle): 重构上报处理逻辑,适配多格式音频转换
1.  重命名参数与变量,明确上报类型与音频格式
2.  拆分PCM和Opus转WAV逻辑,分别处理不同输入格式
3.  移动校验逻辑到上报队列函数开头,提前拦截无效上报
4.  完善Opus转WAV的解码与资源释放流程
2026-07-27 09:59:32 +08:00
colorful
523915f9fe fix(plugins): 展开模块级别插件名为具体函数名
在一个 function 文件中可能注册多个 @register_function,当配置下发或
本地配置使用模块名(文件名)时,需要自动展开为具体的函数名列表。

改动内容:
- register.py: 新增 module_func_map 全局映射,在 register_function
  装饰器中自动记录模块名 → 函数名列表的映射关系
- connection.py: 处理服务端下发的插件配置时,将模块级的 plugins 配置
  复制到各具体函数名 key 下,并将模块名展开写入 Intent functions 列表
- plugin_executor.py: 新增 _expand_plugin_names() 兜底展开逻辑和
  _get_plugin_description() 双层查找方法,确保本地配置场景也能正确展开
2026-07-24 10:47:00 +08:00
hrz
9da58e254c Bump to 0.9.6 2026-07-24 09:53:03 +08:00
wengzh
6e92d169ec refactor(get_news_from_newsnow): 改用流式处理解析网页内容
将原有的直接转换响应内容改为流式读取字节流并传入参数,适配MarkItDown的convert_stream接口,优化大内容处理时的内存占用
2026-07-20 15:51:23 +08:00
Sakura-RanChen
ed89c05245 fix: intent阻塞主线程 2026-07-20 14:48:26 +08:00
Sakura-RanChen
55c0495661 perf: 优化相关逻辑减少重复计算 2026-07-14 15:52:30 +08:00
hrz
bc1aa1a089
Merge pull request #3267 from xinnan-tech/fix-agent-idor
fix: prevent agent IDOR access
2026-07-10 17:36:00 +08:00
DaGou12138
2aa6c5ee49 fix:
1.优化context注入方式,合并为一个system,解决qwen本地部署模型多system异常400问题
2026-07-10 15:05:02 +08:00
wengzh
14e57a1add fix(powermem): 修复用户配置启用状态的类型判断问题
将配置的启用值统一转为小写字符串后判断是否为true,避免非布尔类型配置导致的判断失效
2026-07-10 10:06:07 +08:00
Tyke Chen
d11cfc6923 Merge remote-tracking branch 'origin/main' into fix-agent-idor
# Conflicts:
#	main/manager-api/src/main/java/xiaozhi/modules/agent/controller/AgentController.java
#	main/manager-api/src/main/java/xiaozhi/modules/agent/service/AgentService.java
#	main/manager-api/src/main/java/xiaozhi/modules/agent/service/impl/AgentServiceImpl.java
2026-07-09 20:21:37 +08:00
DaGou12138
32fbbf92fe Merge branch 'refs/heads/main' into fix-voiceprint-dialogue-bug 2026-07-09 16:56:22 +08:00
Sakura-RanChen
adee070bb0
Merge branch 'main' into py-audio-aec 2026-07-09 15:51:01 +08:00
wengzh
03ec3bac3f
Merge pull request #3271 from xinnan-tech/py-fix-bug
Py fix bug
2026-07-09 15:36:59 +08:00