[v13] Fix underlying reader not a terminal issues
#25241
Merged
underlying reader not a terminal issues
#25241