Files
Nexus/docs/design/plans/2026-06-01-bug-remediation.md
2026-07-08 22:31:31 +08:00

1.2 KiB
Raw Permalink Blame History

2026-06-01 Bug Remediation — 实施计划

涉及文件

前端

  • frontend/src/pages/ServersPage.vue
  • frontend/src/api/index.ts
  • frontend/src/stores/auth.ts
  • frontend/src/router/index.ts
  • frontend/src/pages/TerminalPage.vue
  • frontend/src/utils/serverSelection.ts(新建)

后端

  • server/application/services/auth_service.py
  • server/config.py
  • server/api/agent.py
  • server/application/services/script_jobs.py
  • server/application/services/script_service.py
  • server/domain/models/__init__.py
  • server/infrastructure/database/admin_repo.py
  • server/domain/repositories/__init__.py
  • server/infrastructure/database/migrations.py
  • server/main.py
  • tests/test_api.py

步骤

  1. 前端 P0:选择 ID 规范化 + 批量结果数组解析
  2. 认证:60min access、api refresh、auth store 内存 token
  3. Agent:未知 server 丢弃、去 MySQL 实时写、script-callback API Key
  4. 清理:Admin 列、test_api 入口、Terminal CSS
  5. ruff + import 验证 + changelog + audit

回滚

  • Git revert 单次提交
  • Admin 列 DROP 不可逆 — 列已为废弃数据,无业务依赖

测试要点

  • 本地 npm run type-checkfrontend
  • ruff check server/
  • python -c "import server.main"