Summary
Auth-related HTTP requests in the CLI use http.DefaultClient which has no timeout. If the server is unreachable and the connection hangs, auth login blocks indefinitely.
Location
cli/internal/auth/device_flow.go (line 183)
Suggested fix
Create an HTTP client with a timeout (e.g., 30 seconds) for all auth-related requests.
Summary
Auth-related HTTP requests in the CLI use
http.DefaultClientwhich has no timeout. If the server is unreachable and the connection hangs,auth loginblocks indefinitely.Location
cli/internal/auth/device_flow.go(line 183)Suggested fix
Create an HTTP client with a timeout (e.g., 30 seconds) for all auth-related requests.