Skip to content

1.6.2

Choose a tag to compare

@sliverp sliverp released this 19 Mar 07:49
· 204 commits to main since this release
7b12b26

1.6.2

中文

🔥 重大变更

  • 移除内置图床服务器:彻底移除 image-server.tsqqbot-cli.js,不再需要启动独立的图床服务来发送图片。媒体发送统一改为 QQ 富媒体 API 直传方式,部署更简单,减少约 950 行代码。
  • 统一富媒体发送标签:出站消息中所有图片/语音/视频/文件统一使用 <qqmedia> 标签处理,替代之前分散的 <image>/<file> 等多种格式,逻辑更清晰、维护更容易。

✨ 新增

  • C2C 正在输入心跳续发(PR #171 by @xiaokui-bot):私聊场景下每 5 秒重发一次"正在输入"通知,防止用户切换前后台或重新打开聊天界面时输入气泡消失。对于耗时较长的 AI 处理(工具调用、语音生成等),用户始终能感知 AI 正在工作。
  • 增强媒体类型检测:发送富媒体时新增 Content-Type 嗅探与文件扩展名双重判断,当 QQ 富媒体 API 的 POST 上传失败时自动回退到 GET URL 方式,提高图片/文件发送成功率。

🐛 修复

  • CLI 发送消息时 Markdown 配置未初始化(PR #175 by @gsskk):修复通过 CLI 发送消息时 markdown 配置对象缺失导致的潜在错误。
  • 修正 QQ 媒体下载路径至框架白名单目录(Issue #195):QQ 下载的图片从 ~/.openclaw/qqbot/downloads 改存至 ~/.openclaw/media/qqbot/downloads(位于 OpenClaw 核心媒体安全白名单内),解决 Agent 调用 image 工具分析 QQ 图片时报 "Local media path is not under an allowed directory" 的问题。
  • typing 心跳定时器泄漏:确保"正在输入"心跳定时器在所有代码路径(包括异常和提前返回)下被正确清除,避免定时器泄漏。

English

🔥 Breaking Changes

  • Removed built-in image server: Completely removed image-server.ts and qqbot-cli.js. A standalone image hosting server is no longer needed to send images. Media sending now uses QQ's rich media API for direct upload, simplifying deployment and removing ~950 lines of code.
  • Unified rich media tag: All outbound images/voice/video/files now use a unified <qqmedia> tag, replacing the previously scattered <image>/<file> formats for cleaner logic and easier maintenance.

✨ New

  • C2C typing indicator heartbeat (PR #171 by @xiaokui-bot): In private chat, the "typing" notification is now resent every 5 seconds to prevent the typing bubble from disappearing when the user switches apps or reopens the chat. For long-running AI tasks (tool calls, voice generation, etc.), users can always see that the AI is working.
  • Enhanced media type detection: Added Content-Type sniffing and file extension dual detection when sending rich media. Automatically falls back to GET URL mode when the QQ rich media POST upload fails, improving image/file send success rates.

🐛 Fixes

  • CLI message send missing markdown config (PR #175 by @gsskk): Fixed potential errors caused by missing markdown config object when sending messages via CLI.
  • Fixed QQ media download path to framework-allowed directory (Issue #195): QQ-downloaded images are now saved to ~/.openclaw/media/qqbot/downloads (under OpenClaw's media security whitelist) instead of ~/.openclaw/qqbot/downloads, resolving "Local media path is not under an allowed directory" errors when the Agent uses the image tool to analyze QQ images.
  • Typing heartbeat timer leak: Ensured the typing indicator heartbeat timer is properly cleared on all code paths (including exceptions and early returns) to prevent timer leaks.