Skip to content

Release v3.1.3

Choose a tag to compare

@Sakura520222 Sakura520222 released this 24 Aug 03:30
· 669 commits to main since this release

v3.1.3 (2026-09-06)

总结 / Summary

Sakura AI 3.1.3 是一个重要的功能更新与维护修复版本。
本版本将系统运行环境与构建基础升级至 Python 3.14 和 Debian Bookworm,统一收敛了配置默认值与 Section 处理逻辑,优化了 Agent 团队控制台布局与 WebUI 主题动画,同时修复了 AI 思考内容评估、账号 API Key 归一化及 Windows 下文件清理等多项后端稳定性问题。

Sakura AI 3.1.3 is a major feature update and maintenance release.
This release upgrades the system runtime and build environment to Python 3.14 and Debian Bookworm, centralizes configuration defaults and section handling logic, enhances the Agent Team console layout and WebUI theme transitions, and resolves multiple backend stability issues including AI reasoning content evaluation, API key normalization, and Windows file removal.

升级提示 / Upgrade Notes

  • 宿主更新程序 Host Updater 构建基础升级至 Debian Bookworm(glibc >= 2.36),运行 Host Updater 的宿主机需具备 glibc >= 2.36(如 Debian 12+、Ubuntu 24.04+)。使用旧版系统宿主机的用户请勿更新 Host Updater 二进制,或切换为纯容器部署。

  • 项目依赖项(包括 Python 3.14、SQLAlchemy、Pydantic-Settings、Ruff 等)已更新,源码部署用户升级后应重新同步运行环境依赖。

  • Docker 部署相关文件与基础镜像已变更,使用 Docker 部署的用户建议重新拉取最新镜像并重建服务容器。

  • The Host Updater build environment has been upgraded to Debian Bookworm (glibc >= 2.36). Host systems running Host Updater require glibc >= 2.36 (such as Debian 12+ or Ubuntu 24.04+). Users on older host distributions should refrain from updating the Host Updater binary or switch to container-only deployment.

  • Project dependencies (including Python 3.14, SQLAlchemy, Pydantic-Settings, Ruff, etc.) have been updated. Source code deployment users should re-sync environment dependencies after upgrading.

  • Docker deployment files and base images have been updated. Users deploying via Docker are recommended to pull the latest images and rebuild service containers.

注意事项 / Important Notes

Important

策略与标签等配置默认值已收敛至 Python 源码定义中(backend/core/config_section_defaults.py),不再随源码包提供独立 YAML 默认文件;用户覆盖配置继续在数据库 app_config 节中持久化。

Configuration defaults for strategies and labels have been centralized into Python source code (backend/core/config_section_defaults.py) and are no longer packaged as standalone YAML default files; user overrides remain persisted in the database app_config section.

Note

Compose 部署中的内置 MySQL 针对低内存环境进行了参数调优,降低了内存开销。

The bundled MySQL configuration in Compose deployment has been tuned for lower memory utilization.

中文更新日志

新增功能

  • WebUI 支持平滑的主题切换与圆形视图过渡动画
  • 优化 Agent 团队控制台布局与滚动行为,简化 Agent 配置与生命周期控制
  • 部署脚本 start.sh 新增 MySQL 卷存在性校验、镜像 Digest 锁定及环境变量初始化优化
  • 后端支持本地开发模式下的模块级热重载
  • AI 模型配置界面支持在下拉选择框前新增输入框,并增强 GitHub App 校验与 JWT 生命周期常量控制

问题修复

  • 修复 AI Reviewer 在评估思考内容 (reasoning content) 时 served capabilities 的匹配与内置声明解析逻辑
  • 剥离 API Key 前后空白字符并在账号探针阶段统一进行归一化处理
  • 修复 Windows 环境下清理工作区和 worktree 时遇到的只读文件移除错误
  • 修复活动观测模型中的循环外键排序依赖并添加租约心跳机制
  • 确定性处理 AI 审查过程中的 CONTEXT_OVERFLOW 并转义非信任 Prompt 文本
  • 优化 AI 发布说明生成流程,补齐浏览器 Header、捕获 HTTP 错误详情及收集敏感 Path Diff

重构

  • 统一收敛配置默认值至 Python 源码并更新发布说明打包清单
  • 统一跨模块配置 Section 处理逻辑及全局统一保存端点
  • 重构 Agent Team 术语并将上下文压缩配置替换为统一压缩器
  • 重构 AI 协议错误分类与降级回退行为
  • 停止 Webhook 对 Issue 'edited' 编辑事件的自动处理

文档更新

  • 新增中英文 GitHub Bug 报告 Issue 模板

测试

  • 重构测试代码以提升一致性,补全账号探针与客户端回退机制的测试覆盖
  • 在 Updater 测试集中忽略 Starlette httpx 弃用警告

其他变更

  • 升级 Python 运行时至 3.14,并将 Docker 基础镜像与 Host Updater 构建环境迁移至 Debian Bookworm
  • 更新 CI/CD 工作流与 Dependabot 分支策略,升级 SQLAlchemy、Pydantic-Settings、Ruff 等依赖包
  • 整理与整合 Sakura AI 项目记忆、审查反思及结构化知识库提取记录
English Changelog

New Features

  • Implement smooth WebUI theme switching with circular view transition
  • Enhance Agent Team console layout and scrolling behavior, simplifying agent configuration and lifecycle controls
  • Enhance start.sh script with MySQL volume checks, image digest pinning, and deployment environment initialization
  • Add module-level hot reload for backend local development
  • Add input field before model selection dropdowns in AI configuration UI, improve GitHub App validation, and add JWT lifetime constants

Bug Fixes

  • Resolve reasoning content evaluation and served capabilities resolution in backend and AI reviewer
  • Strip surrounding whitespace from API keys and normalize key input during account probes
  • Handle read-only file errors when removing workspaces and worktrees on Windows
  • Resolve circular sort dependencies in activity observability models via use_alter=True and add lease heartbeat
  • Handle CONTEXT_OVERFLOW deterministically in AI reviewer and escape untrusted prompt text
  • Enhance release notes generator by adding browser headers, capturing HTTP error details, and collecting sensitive diffs

Refactor

  • Centralize configuration defaults in Python source code and update release packaging logic
  • Unify config section handling across modules and consolidate config save-all endpoint
  • Rename implementation agent terminology to agent and replace context compression with unified compressor
  • Refactor AI error categories and fallback behavior
  • Stop processing issue 'edited' events in webhook handling

Documentation

  • Add English and Chinese bug report templates for GitHub Issues

Tests

  • Refactor test suite for consistency and expand test coverage for account probe normalization and client fallbacks
  • Ignore Starlette httpx deprecation warnings in updater test suite

Other Changes

  • Upgrade Python runtime to 3.14 and migrate Docker base images and Host Updater build pipeline to Debian Bookworm
  • Update CI/CD workflows and Dependabot branch policy; upgrade SQLAlchemy, Pydantic-Settings, Ruff, and other dependencies
  • Consolidate Sakura AI project memory, reflections, and structured knowledge extraction records