Skip to content

fix(boss): 恢复设置页 BOSS 扫码登录接口 - #167

Open
avabbbb wants to merge 1 commit into
mainfrom
fix/boss-login-route
Open

avabbbb wants to merge 1 commit into
mainfrom
fix/boss-login-route

Conversation

@avabbbb

@avabbbb avabbbb commented Oct 27, 2026

Copy link
Copy Markdown
Owner

为什么

设置页「扫码登录」返回 Not Found:#134 删掉了 routes/applications.py,但 get/start/cancel_boss_login、logout_boss 这几个操作和前端 bossLogin.ts 都还在。

改了什么

  • 新增 backend/app/routes/boss.py,挂在 /api/applications:
    • GET /boss-login → get_boss_login
    • POST /boss-login/{start|cancel|logout} → start_boss_login / cancel_boss_login / logout_boss
  • 复用 main_agent 里的 _ui_operation_outputs / _ui_operation_projection,不新增写路径。
  • 只恢复设置页在用的接口;boss-sync / boss-greet 等旧界面接口不恢复。

验证

  • 新增 tests/test_boss_login_route.py:4 个接口转到对应操作,非法 action 返回 422。
  • test_route_uniqueness、test_workbench_mount 通过。

Rebased onto main (6ef9569) and reopened; supersedes closed #146.

Local backend tests: no new failures vs main (the 8 failing on main are 7 Windows-only test_boss_sync WinError 193 and the change-capture FK test fixed by #166).

…R login

#134 removed routes/applications.py, but the boss_login operations and the Settings BossLoginCard stayed, so 扫码登录 returned 404. Add a small router that forwards GET /boss-login and POST /boss-login/{start|cancel|logout} to the existing operations.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant