China / high-latency paths often need 3–5s just for TCP to
huggingface.co or hf-mirror.com; the previous 2s/3s probes
falsely reported Unreachable on port 443 and could hard-fail
older preflight builds.
Co-authored-by: Cursor <cursoragent@cursor.com>
Repair previously called apply_uv_env without UV_INDEX_URL, so China
region installs still hit pypi.org for hatchling and failed with
tls handshake eof while the UI showed 中国 (镜像). Fold index selection
into apply_uv_env so first-run, drift, repair, and pip repairs share it.
Co-authored-by: Cursor <cursoragent@cursor.com>