Repository navigation
Release v3.2.5
v3.2.5 (2026-11-05)
总结 / Summary
3.2.5 是一次功能版本,以 React WebUI 迁移与 Setup 加固为核心。
本版本全面替换旧版 WebUI 为 React + TypeScript 单页应用并分发预构建前端资源,落地 Billing 2.0 定价/钱包/旧权益体系、统一通知中心、Agent Harness 2.0 运行时与统一配置中心,上线 VitePress 文档站;同时简化 Setup 权限模型(移除 Billing Guard 触发器与初始化权限阻断)、脱敏日志凭据、支持服务停机后的镜像更新,完成大量计费、通知与日志修复,并升级 Redis 镜像与整套依赖。
Version 3.2.5 is a feature release centered on the React WebUI migration and setup hardening.
This release fully replaces the legacy WebUI with a React + TypeScript SPA and distributes prebuilt frontend assets, introduces Billing 2.0 pricing, wallet and legacy entitlements, a unified notification center, the Agent Harness 2.0 runtime and a unified configuration center, and launches a VitePress documentation site. It also simplifies the Setup privilege model (Billing Guard triggers and initialization privilege blocking removed), redacts credentials in logs, supports updating stopped deployments, ships numerous billing, notification and logging fixes, and upgrades the Redis image and dependency stack.
升级提示 / Upgrade Notes
-
依赖清单发生较大变化(移除 jinja2,新增 mcp、aiohttp、httpx2、jsonschema 等),源码部署用户升级后应重新同步依赖;传统 pip 开发环境请改用新的 requirements-dev.txt。
-
Docker 部署相关文件发生变化,使用 Docker 部署的用户建议重新拉取配置并重建服务;镜像现已内置预构建前端资源。
-
本版本包含大量数据库结构变更(启动时自动迁移),升级前请备份数据库。
-
升级时应停止并排空旧版 API/Worker 实例后统一切换;架构迁移期间不要混用旧版与新版的发送器或处理器。
-
数据库中已保存的配置值不会随默认值调整自动更新;如需采用新的语义召回余弦阈值 0.65,请在配置中心显式保存。
-
个人主题、语言、每页条数等偏好列已改为可空继承;如需回滚旧版本,请先物化这些默认值或恢复用户备份。
-
正式 Release 源码归档已内置前端 dist;Git 源码部署升级后首次启动会自动获取并校验匹配的前端包,无需安装 Node.js 或手动构建。
-
Dependency manifests changed significantly (jinja2 removed; mcp, aiohttp, httpx2 and jsonschema added). Source deployments should re-sync dependencies after upgrading; classic pip development environments should use the new requirements-dev.txt.
-
Docker deployment files changed. Docker users should re-fetch the deployment configuration and rebuild; images now bundle the prebuilt frontend assets.
-
This release includes extensive database schema changes (auto-migrated on startup). Back up the database before upgrading.
-
Stop and drain old API/Worker instances and upgrade all together; do not mix old and new senders or handlers during schema migration.
-
Saved configuration values in the database are not changed by new defaults. To adopt the new semantic recall cosine threshold of 0.65, explicitly save it in the configuration center.
-
Personal preference columns (theme, language, items per page) are now nullable inheritance. Before rolling back, materialize these defaults or restore the user backup.
-
Official release source archives bundle the frontend dist. Git source deployments automatically fetch and verify a matching prebuilt bundle on first startup after upgrading; no Node.js or manual build is needed.
注意事项 / Important Notes
Important
旧版 Jinja WebUI 页面已退役,React 单页应用承接 /app/* 全部页面,旧地址自动重定向;配套的模板浏览器测试套件同步移除。
The legacy Jinja WebUI pages are retired. The React SPA serves all pages under /app/* with automatic redirects, and the template browser test suite is removed.
Important
Agent 只读检查要求所选执行后端的 Git 支持 --no-lazy-fetch(上游 Git 2.45+);旧版本会在前置检查中返回明确的 GIT_READ_ONLY_UNSUPPORTED 错误,不会去掉保护参数重试。
Agent read-only checks require the selected backend Git to support --no-lazy-fetch (upstream Git 2.45+). Older versions return an explicit GIT_READ_ONLY_UNSUPPORTED precondition error and never retry without the protection.
Note
Billing 扣费默认关闭(billing_enabled=false);支付入口由 payment_enabled 控制,网关关闭后订单历史与退款处理仍可访问。
Charging is disabled by default (billing_enabled=false). Purchase entry points are gated by payment_enabled; order history and refund handling remain accessible when the gateway is disabled.
Note
Billing Guard 数据库触发器与初始化 TRIGGER/SUPER 权限要求已彻底移除,Setup 只需普通的 CREATE/ALTER/INDEX 数据库权限。
The Billing Guard database triggers and the TRIGGER/SUPER initialization privilege requirements were removed entirely; Setup only needs ordinary CREATE/ALTER/INDEX database privileges.
Note
Setup 验证 Token 不再打印到日志,改存于本机私有文件 config/.setup-token;应用日志统一遵循 log_level 配置,落盘日志改为 JSON Lines 并对凭据自动脱敏。
The Setup verification token is no longer printed to logs and is stored in the private config/.setup-token file. Application logs follow the unified log_level setting, file logs are JSON Lines, and credentials are redacted automatically.
中文更新日志
新增功能
- React WebUI 2.0 全面替换旧版控制台,发布归档与镜像随附预构建前端资源,旧页面地址自动重定向。
- Setup 向导加固:新增 UI 组件与翻译,支持数据库初始化预检与自动修复,受限 MySQL 账号可完成初始化。
- Billing 2.0:实现定价、钱包与旧权益体系;支付网关关闭后仍可查看订单并处理退款,增强币种兼容性。
- 统一通知中心:持久化业务事件与端点投递恢复,新增已验证端点偏好与诊断,支持 Webhook 通道。
- Agent Harness 2.0:完成 harness 运行时与仓库上下文、Skills 恢复集成,新增执行级依赖出网。
- 统一配置中心:版本化字段保存与重置,支持冲突保护与继承回退。
- Issue 重新分析:重构准入校验与任务提交流程,自适应分析深度并简化默认评论。
- 队列:新增增量审查恢复接口并重构增量消费逻辑。
- 语义召回:余弦阈值默认值降至 0.65,并新增检索 INFO 摘要。
- API:新增 PR 与 Issue 语义关联配置、Schema 校验,以及关联分析 Token、评论与文件数上限配置。
- 版本管理器:进度弹窗目标行显示版本通道与构建 commit。
- 升级 Redis 镜像版本。
问题修复
- Updater:支持服务停止后的镜像更新,依据停用镜像独立校验部署身份与回滚锚点。
- 发布流程:AI Release 说明改为流式经代理生成,并移除超时与降级回退。
- WebUI:完成旧版迁移并恢复 CI,修复迁移后的 CI 覆盖与导入排序。
- 移除星标互助 AI 摘要的三行截断。
- 通知:关闭调度生命周期与身份竞态,按实际更新行数发送批量取消,持久化 Agent 执行轮次,保留恢复语义并终止不合格投递,处理混合 MySQL 排序规则的未读查询。
- 通知投递:隔离 Webhook 冷却并携带事件上下文,按实际重置周期去重配额告警,保留微秒级 Provider 预算,尊重禁用的路由规则与旧 Provider 大小写。
- 通知安全与升级:规范化可选密钥后再统一脱敏,导入时禁用队列与批处理范围扇出,升级期间隔离约束元数据,备份往返接受端点代际。
- Billing 与支付:安全化重放并保持精确定价身份,对账退款凭证与统一财务告警,冻结扫描归属并校验实测用量,处理自动投递派发、退款身份与用量对账,解决退款舍入、Token 鉴权与发放派发等审计发现,优化权益排序并将部分退款限制为纯积分快照。
- 日志安全:脱敏 Redis 连接凭据与 Provider 错误中的转义凭据字段,跨异常边界保留请求密钥脱敏,安全化 Setup 交接,抑制 APScheduler 心跳噪音并关联活动执行。
- Agent:处理 Hook 变更与取消读取排空,传播取消并隔离审计消息,后端导入时保持 POSIX 工作区锁可选。
- 配置:对账通知与已提交运行时效果,保留可空覆盖、旧语义、继承的运行时与主题行为,并保护 pip 测试初始化。
- Sandbox:加固实例 ID 生成并在子 shell 外保留结果。
- PR 与 Issue:校验语义召回阈值并兼容纯元数据补丁,禁止重新分析已关闭 Issue 并完善异常清理与校验。
- AI Reviewer:修复目录搜索 recovery 的无效提示与 context_lines 透传。
- 部署:修复开发环境安装引导。
- CI:文档部署保持在 Cloudflare Pages,并为 Gitflow 构建授予 artifact 读取权限。
- 设置页:恢复表单编辑器并补全翻译,接受类型化数组项。
重构
- 移除 Billing Guard 触发器与 MySQL 初始化权限阻断(#715)。
- 重构 Issue 重新分析校验与关系分析机制。
- 支付 Webhook 验证失败时抛出专用异常。
文档更新
- 引入 VitePress 文档站点与 Pages 构建工作流,优化构建部署流程并锁定依赖。
- 精简 README 并迁移详细指南,新增中英文贡献指南与安全策略。
- 补充部署配置与日志规范。
- Billing:定义定价与财务回放契约并记录集成证据;通知中心:定义维护契约。
测试
- 为受限 MySQL Setup 账号授予 REFERENCES 的回归测试;序列化日志断言改用 UTF-8。
- 使用路由渲染通知收件箱的 WebUI 测试。
- 通过 dev manifest 验证 Updater 安装的 CI 测试。
- 稳定化生命周期与容量测试:统一容量夹具时钟、约束夹具取消排空与 harness 启动、控制心跳生命周期逻辑时间,适配慢速运行器。
- Agent 回归:同步完成回归阶段、租约续约与 Worker 失败注入、多进程准入检查。
- 通知回归:提供隔离计费配置与支付套餐类型、保留 Schema 夹具历史依赖、活跃事件竞态断言,以及 Issue 646 的数据库与浏览器验收覆盖。
其他变更
- 依赖更新:FastAPI 0.143.2+、Starlette 1.10+、OpenAI SDK 3.41+、Pydantic 2.14.2+、pydantic-settings 2.16.1+、SQLAlchemy 2.1.6+、asyncmy 0.2.17+、Alembic 1.20+、Pillow 13、webauthn 3.0.1、watchfiles 1.3.0、python-slugify 9.1.3、tzdata 2026.6、tzlocal 5.4.5、aiohttp 3.14.5,并同步 uv.lock。
- 新增 Agent Harness MCP 运行时依赖(mcp 2.3.0、httpx2 2.13.1、jsonschema、aiohttp),移除 jinja2;新增 requirements-dev.txt(含 aiosqlite)供传统 pip 开发环境使用。
- CI:升级 GitHub Actions 版本(checkout 5 到 7、setup-node 5 到 7、upload-artifact 6 到 7、configure-pages 4 到 6 等),新增 Dependabot 依赖 PR 的 uv.lock 自动同步工作流。
- 项目记忆:新增 PR/Issue 反思记录并整合 .sakura 知识库。
- 移除计费脚本的 shebang 行,规范化通知模块源码结尾与时间戳守卫位置,版本号更新至 3.2.5。
English Changelog
New Features
- React WebUI 2.0 fully replaces the legacy console. Release archives and images ship prebuilt frontend assets, and old page URLs redirect automatically.
- Setup hardening: new UI components and translations, database initialization preflight and repair, and initialization with a limited MySQL account.
- Billing 2.0: pricing, wallet and legacy entitlements. Orders and refunds remain accessible after the payment gateway is disabled, with broader currency compatibility.
- Unified notification center: persisted business events and endpoint delivery recovery, verified endpoint preferences and diagnostics, and a webhook channel.
- Agent Harness 2.0: harness runtime integration with repository context and skill recovery, plus execution-scoped dependency egress.
- Unified configuration center: versioned field saves and resets with conflict protection and inheritance fallback.
- Issue reanalysis: rebuilt admission validation and task submission flow, adaptive analysis depth and simplified default comments.
- Queue: new incremental review recovery interface and rebuilt incremental consumption logic.
- Semantic recall: cosine threshold default lowered to 0.65, with a new retrieval INFO summary.
- API: PR and Issue semantic linking configuration with schema validation, plus token, comment and file limits for relation analysis.
- Version manager: the progress dialog target row now shows the release channel and build commit.
- Upgrade the Redis image version.
Bug Fixes
- Updater: allow updates after services are stopped, verifying the deployment identity and rollback anchor independently against the stopped image.
- Release workflow: AI release notes are streamed through the proxy, with the timeout and fallback removed.
- WebUI: complete the legacy migration and restore CI, fixing migrated CI coverage and import ordering.
- Remove the 3-line clamp truncation from the Star Aid AI summary.
- Notifications: close scheduling lifecycle and identity races, emit bulk cancellations from actual updated rows, persist Agent execution rounds, preserve recovery and terminate ineligible deliveries, and handle mixed MySQL collations in unread queries.
- Notification delivery: isolate webhook cooldowns with event context, deduplicate quota alerts by actual reset period, retain microsecond provider budgets, and honor disabled routing rules and legacy provider casing.
- Notification security and upgrades: normalize optional secrets before central redaction, disable queues and scoped fanout during imports, isolate constraint metadata during schema upgrades, and accept endpoint generations in backup round trips.
- Billing and payments: secure replays with exact pricing identities, reconcile refund evidence and unify financial alerts, freeze scan ownership with measured usage validation, handle automatic delivery dispatch, refund identity and usage reconciliation, resolve audit findings on refund rounding, token auth and issue dispatch, and refine entitlement ordering while restricting partial refunds to credits-only snapshots.
- Logging security: redact Redis connection credentials and escaped credential fields in provider errors, retain request-secret redaction across exception boundaries, secure the setup handoff, suppress APScheduler heartbeat noise, and correlate activity execution.
- Agent: account for hook changes and drain cancelled reads, propagate cancellation and isolate audit messages, and keep POSIX workspace locks optional during backend import.
- Configuration: reconcile notifications with committed runtime effects, preserve nullable overrides, legacy semantics, inherited runtime and theme behavior, and protect the pip test setup.
- Sandbox: harden instance ID generation and preserve results outside the sub-shell.
- PR and Issue: validate the semantic recall threshold and tolerate metadata-only patches, and block reanalysis of closed Issues with improved exception cleanup and validation.
- AI reviewer: fix the invalid recovery prompt for directory search and the context_lines passthrough.
- Deployment: repair the development installation bootstrap.
- CI: keep docs deployment on Cloudflare Pages and grant artifact read access to Gitflow builds.
- Settings: restore form editors and complete translations, accepting typed array items.
Refactor
- Remove Billing Guard triggers and MySQL initialization privilege blocking (#715).
- Rebuild Issue reanalysis validation and relation analysis mechanics.
- Payment webhooks raise a dedicated exception when verification fails.
Documentation
- Introduce the VitePress documentation site and Pages build workflow, streamlining the build pipeline and pinning dependencies.
- Streamline the READMEs and migrate detailed guides, adding bilingual contribution guides and a security policy.
- Supplement deployment configuration and logging specifications.
- Billing: define pricing and financial replay contracts and record integration evidence; notifications: define maintenance contracts.
Tests
- Regression granting REFERENCES to the limited MySQL Setup account, and UTF-8 for serialized log assertions.
- WebUI test rendering the notification inbox with a router.
- CI test verifying updater installation through the dev manifest.
- Stabilize lifecycle and capacity tests: unify capacity fixture clocks, bound fixture cancellation drains and harness startup, control heartbeat lifecycle logical time, and adapt to slow runners.
- Agent regressions: synchronize completion regression stages, lease renewals and worker failure injection, and multiprocess admission checks.
- Notification regressions: isolated billing configuration and required payment plan type, preserved schema fixture history, started-event race assertions, and database and browser acceptance coverage for issue 646.
Other Changes
- Dependency updates: FastAPI 0.143.2+, Starlette 1.10+, OpenAI SDK 3.41+, Pydantic 2.14.2+, pydantic-settings 2.16.1+, SQLAlchemy 2.1.6+, asyncmy 0.2.17+, Alembic 1.20+, Pillow 13, webauthn 3.0.1, watchfiles 1.3.0, python-slugify 9.1.3, tzdata 2026.6, tzlocal 5.4.5 and aiohttp 3.14.5, with uv.lock synced.
- Add Agent Harness MCP runtime dependencies (mcp 2.3.0, httpx2 2.13.1, jsonschema, aiohttp) and remove jinja2; add requirements-dev.txt (with aiosqlite) for classic pip development environments.
- CI: bump GitHub Actions (checkout 5 to 7, setup-node 5 to 7, upload-artifact 6 to 7, configure-pages 4 to 6, etc.) and add a workflow auto-syncing uv.lock on Dependabot dependency PRs.
- Project memory: add PR/Issue reflection records and consolidate the .sakura knowledge base.
- Remove shebang lines from billing scripts, normalize notification module source endings and timestamp guard positions, and bump the version to 3.2.5.