qihu-bot
ab11283d92
#976 微信对话同步WebClaw修复 + admin连接时间统一北京时间
...
CI / gate (push) Has been cancelled
1.mirror_to_ai_chat: _uuid→uuid(NameError被except吞了, 对话从未同步到webclaw) 2.im_bot_admin加_beijing_now并替换5处datetime.now()(容器UTC存naive时间前端按+08:00展示错位8小时)
2026-08-18 13:47:07 +08:00
qihu-bot
f975672b0e
#974 微信Bot sendtyping彻底修复
...
CI / gate (push) Has been cancelled
根因: sendtyping三个bug - 1.ilink_user_id误用bot ID(应from_user_id用户ID) 2.请求缺base_info 3.未检查ret==0。另发现账号session已过期(-14 session timeout)是sendtyping失效+文本失败的根源。修复: getconfig/sendtyping补base_info+正确ilink_user_id+ret==0判断, -14时写session_expired日志。
2026-08-18 11:30:15 +08:00
qihu-bot
9cf4378bf5
#973 微信Bot文本回复慢+间歇空修复
...
CI / gate (push) Has been cancelled
根因: 多轮对话时图片URL(含AWS token)存进历史+104技能清单注入prompt, 导致推理模型响应慢(72s)且间歇返回空content。修复: 1.IM侧精简prompt(db=None只注入静态文档) 2.空content重试(同模型最多3轮) 3.图片回复存[图片]占位符不存URL 4.历史每条截断500字符。验证: 你好15s/1+1=4s可正常回复。
2026-08-18 11:15:50 +08:00
qihu-bot
1c0dc59842
#972 微信Bot多轮对话修复 - sendmessage补client_id+run_id
...
CI / gate (push) Has been cancelled
对齐openclaw: payload补client_id(随机uuid去重)+run_id+from_user_id。缺失client_id导致多轮对话第二轮消息被iLink误判重复丢弃(第一轮成功第二轮失败)。
2026-08-15 19:42:15 +08:00
qihu-bot
51d8df6e6a
#971 微信Bot P2 - 接收侧媒体下载解密
...
CI / gate (push) Has been cancelled
实现CDN媒体下载解密(parse_aes_key支持base64(raw16B)和base64(hex32)两种编码)+extract_inbound_media(图片/语音/文件/视频)。接收循环检测媒体消息下载解密保存到/tmp。图片已保存供后续vision模型接入。
2026-08-15 18:40:01 +08:00
qihu-bot
e284d43cc7
#970 微信Bot P1增强 - sendtyping + 语音ASR + Session Guard
...
CI / gate (push) Has been cancelled
1.语音消息ASR: 提取voice_item.text(微信自带转文字) 2.sendtyping正在输入状态: getconfig拿typing_ticket缓存24h + sendtyping发送 3.Session Guard增强: 会话过期记录告警日志供前台提示重扫
2026-08-15 18:13:47 +08:00
qihu-bot
46e9f1e1e6
#969 微信Bot媒体内联发送 - iLink CDN AES加密上传
...
CI / gate (push) Has been cancelled
参考微信官方openclaw-weixin源码实现媒体内联发送链路:下载媒体→getuploadurl→AES-128-ECB加密→上传微信CDN→内联发送(type=2/5)。新增im_ilink_media.py模块。失败降级文本链接兜底。修复pg18/casdoor容器未启动问题。
2026-08-15 17:45:47 +08:00
qihu-bot
894eeff65a
docs: 微信Bot iLink协议重构方案 v1.0
...
CI / gate (push) Has been cancelled
分析微信官方iLink(ClawBot)协议完整能力,对比平台现状,识别5项差距。核心:媒体内联发送(CDN AES-128-ECB加密)替代文本链接降级。分5阶段实施(P0-P2)。
2026-08-15 17:14:07 +08:00
qihu-bot
d2d133f22a
docs: 全面更新 README.md + ARCHITECTURE.md v3.0
...
CI / gate (push) Has been cancelled
ARCHITECTURE.md v3.0: 护城河分析,容器拓扑,技术栈矩阵,功能架构,双Claw单引擎,模型同步,安全纵深,qihu-design-system,迭代路线. README.md v3.0: 快速开始,核心能力,架构总览,项目结构,开发指南,平台数据.
2026-08-12 09:20:55 +08:00
qihu-bot
54b444b651
#967 implement media_relay endpoint - fix WeChat bot image relay
...
media_relay was a stub (empty function body). Now implements actual image/video streaming relay from S3 to WeChat clients, with domain whitelist and httpx streaming. Fixes WeChat bot image generation responses not rendered.
2026-08-11 21:31:15 +08:00
qihu-bot
75be24ce9c
#966 fix - litellm_sync import + IndentationError
...
## Root cause: ImportError sync_health_check not defined. ## Also IndentationError on L467/L590 in nested sync blocks. ## Container stable, public URL 200 OK.
2026-08-11 21:12:56 +08:00
qihu-bot
fd84fec5b1
#965 LiteLLM model sync - STORE_MODEL_IN_DB + API integration
...
docker-compose.yml +STORE_MODEL_IN_DB=True enables LiteLLM dynamic model management via REST API. models.py admin CRUD now syncs to LiteLLM via threading.
2026-08-11 15:27:57 +08:00
qihu-bot
fa38d2c57a
#964 修复 React error #321 模块级 useState 调用
...
Models.tsx L31 const [lockedCapDefaults, setLockedCapDefaults] = useState(...) 在模块顶层,违反 React Hooks 规则. 移到 Models component 函数体内 (L56). 解决 production 报 React error #321 Invalid hook call.
2026-08-11 13:57:51 +08:00
qihu-bot
679f23ff93
#963 safeLazy 包裹 React.lazy 防 chunk 加载失败导致 element undefined
...
App.tsx 所有 React.lazy 改为 safeLazy(loader).catch(...) 保证 chunk load 失败时 element 有 fallback 不会是 undefined. 防 React error #231 .
2026-08-11 13:06:42 +08:00
qihu-bot
420e0f6603
#962 全局 ErrorBoundary 隔离组件渲染错误
...
main.tsx 加 ErrorBoundary 包裹 App,任何组件抛错都会显示在页面上而不是让 root 空白. 基于 #961 诊断:React 18 mount 正常,问题在 App.tsx 组件树.
2026-08-11 12:53:04 +08:00
qihu-bot
4cf910ee3e
#961 /admin/models React #425 hydration mismatch 修复
...
main.tsx 加全局错误处理 + #root 清空 + try-catch 包裹 createRoot. 解决 React 18.3.1 在空 #root 容器中误触发 hydration 警告导致 mount 失败.
2026-08-11 12:43:40 +08:00
qihu-bot
45b6939ab3
#959 /admin/models 空白页修复 - nginx index.html 加 no-store 头
...
nginx index.html 加 Cache-Control: no-store + Pragma: no-cache + Expires: 0,强制浏览器每次拉新版 SPA. 修复 #957 修复后浏览器仍缓存旧 615 bytes nginx welcome 导致的空白页.
2026-08-11 09:31:50 +08:00
qihu-bot
53bbbf3195
#957 nginx 容器 root 修复 - ai.qihuyun.com 显示 nginx 默认页
...
aiflow.conf 缺 server 级 root 指令导致 SPA fallback 走 nginx 默认 /usr/share/nginx/html. 修复后容器 8080 / host 12888 / 外部 ai.qihuyun.com 全部正确返回 544 bytes 七虎AI 前端页.
2026-08-11 08:55:49 +08:00
qihu-bot
b415a0b62e
#937 LiteLLM 副 key 启用脚本 + 计划 (20260810-154721)
...
新增 litellm/apply_secondary_key.sh + rollback + verify + README + docs/observability/litellm-failover-activation.md. 代码层已就绪(commit 84d89ab ),等用户提供 SiliconFlow 副 key 后,单次低峰会话完成切换.
2026-08-10 15:47:21 +08:00
qihu-bot
e50d006ef4
#952 alloy traces 配置 bake Dockerfile + 计划 (20260810-154537)
...
新增 alloy/Dockerfile + config.alloy + build.sh + README + docs/observability/alloy-bake-plan.md. 当前 bind mount /tmp/alloy 仍稳定,本会话仅交付可执行件,实际 build 待低峰期执行.
2026-08-10 15:45:37 +08:00
qihu-bot
7e002ac2b5
P1-1 后端核心模块单测 (20260810-154318)
...
新增 test_capability_discovery.py (30) + test_llm_router.py (21) 共 51 个哨兵单测,覆盖 #874 双 Claw 能力发现 / #875 LLM 路由熔断 / #876 OTel 桥接关键路径. 套件: 116 -> 165 passed.
2026-08-10 15:43:19 +08:00
qihu-bot
cee260d4bd
P1-2 nginx 限流 + 扫描器拦截 (20260810-153624)
...
三档限流 (api 30r/s, admin 5r/s, login 1r/s) + UA / path 黑名单 (return 444) + 自动黑名单脚本 (5min cron, 24h TTL). 实测首跑封禁 222.128.55.233 (4xx=31) 和 120.55.61.72 (UA=zgrab).
2026-08-10 15:36:25 +08:00
qihu-bot
d274733fb3
feat(chat): 外部Agent(Dify/n8n/Coze)运行期真实远程调用
...
- _resolve_market_agents 补齐 platform/agent_endpoint/agent_api_key 字段
- 新增 _call_external_agent 及 dify/n8n/coze 分支; Dify 走SSE流式,兼容
chat/agent(message)与chatflow/workflow(text_chunk/workflow_finished)事件,
失败时surface真实错误; n8n走webhook POST; coze走v3 chat+轮询
- send_message 选中带endpoint的外部Agent时直接远程调用,跳过本地LLM扮演
- Conversation新增ext_agent_conversation_id维持Dify/Coze多轮(迁移016)
- 出网统一trust_env=False+_proxy_for_url直连,规避坏代理502
2026-07-15 13:55:04 +08:00