Files
Nexus/docs/reports/2026-06-07-code-review-followups-verification.md
T
Nexus Agent 7ea94a60ab fix(auth,servers): 修复 refresh 自动登出与服务器状态未知
API 返回 status 字段供前端显示在线状态;token_version 为 NULL 时 refresh cookie 含 :None 导致续期 401。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-07 22:53:29 +08:00

1.4 KiB
Raw Blame History

code-review followups 终验(2026-06-07

范围: 72d82d7 及后续安全/巡检批次
Backlog: BL-01BL-07 · BL-08 不需要

代码项(H1H7

ID 内容 状态 证据
H1 边端 agent 401 停循环 web/agent/agent.py L411-418 return
H2 install 锁定路由级 404 install.py APIRouter(..., dependencies=[...])
H3 归档失败 fail-closed _finalize_install_lock_archive_install_wizard_html
H4 nexus-security.mdc 与 BL-06 对齐 仅 per-server key
H5 WS 403 探测 PASS security_probe_external.sh
H6 probe curl shift 修复 外网探测全 PASS
H7 resolve_ws_python WS 四路径 PASS

测试

pytest tests/test_install_locked_404.py tests/test_agent_per_server_key.py tests/test_security_unit.py -q
# 62 passed

生产

状态
中心 API ea2507d 已部署,healthy
外网探测 2026-06-07 全 PASS
install 锁定 POST init-db → 404

待运维(非代码)

  • 边端 Agent:从中心拉取新版 agent.py,401 后停止心跳循环(子机不自动升级)
  • 可选:对仍使用 global key 的旧 agent 在服务器页重新分配 agent_api_key

结论

code-review followups 已闭环。 无未决 BL 项;仅边端 agent 同步为运维动作。