I understand the advantage to disable interactive terminal prompts to prevent CI hangs.
Even when there are multiple options to configure credentials, for setups in an ephemeral environment like a vm or docker container it would be nice to fallback to the terminal and the user can provide username and password/token when cloning from a private repository.
For "CI detection", uv has already implemented a couple of checks (https://github.com/astral-sh/uv/blob/2a86a4b6f718f60d6cd374a5ee60e2fd8651407c/crates/uv-static/src/env_vars.rs#L921).