Back to Astrbot

V4.25.6

changelogs/v4.25.6.md

4.25.61.5 KB
Original Source

<a id="chinese"></a>

What's Changed

修复

  • 将 WebUI 项目升级改为后台任务执行,避免关闭或刷新前端页面导致升级请求被取消。
  • 调整升级流程为先下载并校验 WebUI 与 Core 两个更新包,再统一应用,降低下载失败导致文件半更新的风险。
  • Core 更新包优先从 AstrBot Registry 下载,失败时回退到 GitHub zipball。
  • WebUI 在升级重启期间会轮询启动时间,并在重启完成后使用 cache-buster 进行全量刷新,减少旧前端缓存残留。

构建

  • 调整 Hatch artifact 配置,确保 sdist 与 wheel 都包含打包后的 Dashboard 资源。
  • Release workflow 增加 Core 更新包构建与 Registry 上传。

<a id="english"></a>

What's Changed (EN)

Bug Fixes

  • Changed WebUI project updates to run as backend tasks, preventing updates from being cancelled when the frontend is closed or refreshed.
  • Made the update flow download and verify both WebUI and Core packages before applying files, reducing partial-update risk after download failures.
  • Prefer AstrBot Registry for Core update packages, with GitHub zipball fallback.
  • During update restarts, WebUI now polls backend start time and performs a cache-busted full refresh after restart completion to avoid stale frontend assets.

Build

  • Updated Hatch artifact configuration so both sdist and wheel include bundled Dashboard assets.
  • Added Core package build and Registry upload steps to the release workflow.