github AstrBotDevs/AstrBot v4.18.2

8 hours ago

What's Changed

新增

  • 新增 Agent 会话停止能力,并优化 stop 请求处理流程,支持 /stop 指令终止 Agent 运行并尽量不丢失已运行输出的结果。 (#5380)。
  • 新增 SubAgent 交接场景下的 computer-use 工具支持 (#5399)。
  • 新增 Agent 执行过程中展示工具调用结果的能力,提升执行过程可观测性 (#5388)。
  • 新增插件加载/卸载 Hook,扩展插件生命周期能力 (#5331)。
  • 新增插件加载失败后的热重载能力,提升插件开发与恢复效率 (#5334)。
  • 新增 SubAgent 图片 URL/本地路径输入支持 (#5348)。
  • 新增 Dashboard 发布跳转基础 URL 可配置项 (#5330)。

修复

  • 修复 Tavily 请求的硬编码 6 秒超时。
  • 修复 OneBot v11 适配器关闭之后仍然在连接的问题(#5412)。
  • 修复上下文会话中平台缺失时的日志处理,补充 warning 并改进排查信息。
  • 修复 embedding 维度未透传到 provider API 的问题 (#5411)。
  • 修复 File 组件处理逻辑并增强 OneBot 驱动层路径兼容性 (#5391)。
  • 修复 sandbox 文件传输工具缺少管理员权限校验的问题 (#5402)。
  • 修复 pipeline 与 from ... import * 引发的循环依赖问题 (#5353)。
  • 修复配置文件存在 UTF-8 BOM 时的解析问题 (#5376)。
  • 修复 ChatUI 复制回滚路径缺失与错误提示不清晰的问题 (#5352)。
  • 修复保留插件目录处理逻辑,避免插件目录行为异常 (#5369)。
  • 修复 ChatUI 文件消息段无法持久化的问题 (#5386)。
  • 修复 .dockerignore 误排除 changelogs 目录的问题。
  • 修复 aiohttp 版本过新导致 qq-botpy 报错的问题 (#5316)。

优化

  • 完成 SubAgent 编排页面国际化,补齐多语言支持 (#5400)。
  • 增补消息事件处理相关测试,并完善测试框架的 fixtures/mocks 覆盖 (#5355, #5354)。

What's Changed (EN)

New Features

  • Added computer-use tools support in sub-agent handoff scenarios (#5399).
  • Added support for displaying tool call results during agent execution for better observability (#5388).
  • Added plugin load/unload hooks to extend plugin lifecycle capabilities (#5331).
  • Added hot reload support when plugin loading fails, improving recovery during plugin development (#5334).
  • Added image URL/local path input support for sub-agents (#5348).
  • Added stop control for active agent sessions and improved stop request handling (#5380).
  • Added configurable base URL for dashboard release redirects (#5330).

Fixes

  • Fixed logging behavior when platform information is missing in context sessions, with clearer warning and diagnostics.
  • Fixed missing embedding dimensions being passed to provider APIs (#5411).
  • Fixed shutdown stability issues in the aiocqhttp adapter (#5412).
  • Fixed File component handling and improved path compatibility in the OneBot driver layer (#5391).
  • Fixed missing admin guard for sandbox file transfer tools (#5402).
  • Fixed circular import issues related to pipeline and from ... import * usage (#5353).
  • Fixed config parsing issues when files contain UTF-8 BOM (#5376).
  • Fixed missing copy rollback path and unclear error messaging in ChatUI (#5352).
  • Fixed reserved plugin directory handling to avoid abnormal plugin path behavior (#5369).
  • Fixed ChatUI file segment persistence issues (#5386).
  • Fixed accidental exclusion of the changelogs directory in .dockerignore.
  • Fixed compatibility issues caused by a hard-coded 6-second timeout in Tavily requests.
  • Fixed qq-botpy runtime errors caused by overly new aiohttp versions (#5316).

Improvements

  • Completed internationalization for the sub-agent orchestration page (#5400).
  • Added broader message-event test coverage and improved fixtures/mocks in the test framework (#5355, #5354).
  • Updated README content and applied repository-wide formatting cleanup (ruff format) (#5375).

What's Changed

  • fix: 修复 aiohttp 版本过新导致 qq-botpy 报错的问题 by @moemoli in #5316
  • feat(dashboard): make release redirect base URL configurable by @zouyonghe in #5330
  • feat: add stop functionality for active agent sessions and improve handling of stop requests by @Soulter in #5380
  • fix: chatui cannot persist file segment by @Soulter in #5386
  • fix(plugin): update plugin directory handling for reserved plugins by @Raven95676 in #5369
  • chore(README): updated with README.md by @SXP-Simon in #5375
  • feat: add image urls / paths support for subagents by @a61995987 in #5348
  • feat: add hot reload when failed to load plugins by @Waterwzy in #5334
  • fix(chatui): add copy rollback path and error message. by @hanbings in #5352
  • fix: 处理配置文件中的 UTF-8 BOM 编码问题 by @tangsenfei in #5376
  • feat: add plugin load&unload hook by @PyuraMazo in #5331
  • test: enhance test framework with comprehensive fixtures and mocks by @whatevertogo in #5354
  • test: add comprehensive tests for message event handling by @whatevertogo in #5355
  • feat: add support for showing tool call results in agent execution by @Soulter in #5388
  • fix: resolve pipeline and star import cycles by @whatevertogo in #5353
  • feat: enable computer-use tools for subagent handoff by @Axi404 in #5399
  • fix: enforce admin guard for sandbox file transfer tools by @Axi404 in #5402
  • fix(core): 优化 File 组件处理逻辑并增强 OneBot 驱动层路径兼容性 by @SXP-Simon in #5391
  • i18n(SubAgentPage): complete internationalization for subagent orchestration page by @SXP-Simon in #5400
  • fix(aiocqhttp): enhance shutdown process for aiocqhttp adapter by @Soulter in #5412
  • fix: 让 Embedding 维度配置真正生效 by @piexian in #5411

New Contributors

Full Changelog: v4.18.1...v4.18.2

Don't miss a new AstrBot release

NewReleases is sending notifications on new releases.