Files
Nexus/docs/changelog/2026-06-04-install-lock-atomic.md
2026-07-08 22:31:31 +08:00

29 lines
803 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-06-04 — 安装向导锁定原子化 + 脚本回调状态聚合
## 摘要
- `create-admin` 成功后立即写入 `.install_locked`,关闭未认证重复调用安装 API 的窗口。
- `install.html` 检查 lock 结果;支持 `locked` / `already_locked`
- `script_job_callback._aggregate_execution_status``server_ids` 为空时不再误标 `completed`
## 动机
BUG 逐行走读 BUG-06-04-0103`docs/reports/audit-bug-line-walk-2026-06-04-batch1.md`)。
## 涉及文件
- `server/api/install.py`
- `web/app/install.html`
- `server/application/services/script_job_callback.py`
## 验证
```bash
ruff check server/api/install.py server/application/services/script_job_callback.py
pytest tests/ -q
```
## 重启
仅 API + 静态 install.html;重启 uvicorn 即可。