Skip to content

version 1.5.4

Choose a tag to compare

@sliverp sliverp released this 09 Mar 09:49
· 204 commits to main since this release
78e38e1

1.5.4

中文

🐛 修复

  • 修复多账户并发时 Token 串号问题:将 api.ts 中的全局 Token 缓存(单变量)重构为按 appId 隔离的 Map,解决多个机器人同时运行时 Token 互相覆盖导致 11255 invalid request 报错的问题。
  • Token 后台刷新支持多实例clearTokenCache()stopBackgroundTokenRefresh() 改为接受 appId 参数,各账户独立管理。
  • 修复 openclaw message send 向非默认账户发消息失败:未指定 --accountaccountId 始终 fallback 为 "default",导致用非默认机器人的 OpenID 发消息时 Token 与目标不匹配返回 500 错误。现已在文档中说明需通过 --account 参数指定目标机器人。

✨ 新增

  • 多账户配置文档:README 新增「多账户配置」章节,说明如何配置和使用多个 QQ 机器人。
  • 调试日志增强channel.ts 新增 [qqbot:channel] 前缀的详细日志,覆盖 account 解析、消息发送、网关启动全链路。
  • API 日志前缀:所有 API 请求日志加上 [qqbot-api:${appId}] 前缀,方便多实例排查。

English

🐛 Fixes

  • Fix Token collision in multi-account concurrent mode: Refactored the global Token cache in api.ts from a single variable to a per-appId Map, resolving 11255 invalid request errors caused by Token overwrite when multiple bots run simultaneously.
  • Per-instance background Token refresh: clearTokenCache() and stopBackgroundTokenRefresh() now accept an appId parameter for independent per-account management.
  • Fix openclaw message send failing for non-default accounts: Without --account, accountId always fell back to "default", causing a 500 error when sending to an OpenID belonging to a different bot (Token/target mismatch). Documentation now clarifies that --account must be specified for non-default bots.

✨ New

  • Multi-account documentation: Added "Multi-Account Setup" section to README, explaining how to configure and use multiple QQ bots.
  • Enhanced debug logging: Added detailed [qqbot:channel] prefixed logs in channel.ts, covering account resolution, message sending, and gateway startup.
  • API log prefix: All API request logs now include [qqbot-api:${appId}] prefix for easier multi-instance debugging.