191 build - поправлены старые падения, проверены 3 матча и 6 агентов одновременных

This commit is contained in:
2026-10-21 13:41:47 +03:00
parent 787f880c0e
commit bf5e0d3101
52 changed files with 4024 additions and 730 deletions

View File

@@ -5777,6 +5777,10 @@ def create_hockey_agent_router(
request: Request,
user: HockeyUser = Depends(auth_dependency),
) -> dict[str, Any]:
if "device_id" in payload.model_fields_set and not payload.device_id.strip():
# Explicitly clearing this browser's selection must not silently
# reuse a previous session binding. Omission keeps legacy clients.
raise HTTPException(status_code=409, detail="Выберите Agent в этом браузере")
game_id = await run_db(match_access.game_for_session, payload.session_token, user)
await run_db(match_access.require_controller, request, user, game_id)
await run_db(match_access.protect_session, request, user, payload.session_token)