I'm not sure how to make a repro because I've only encountered this issue with SSH. If I ssh bash piping in a script with input: '<bash script>' and I have stdio: 'inherit', the command never exits after running the script. But if I change to stdio: ['pipe', 'inherit', 'inherit'] it does exit normally.
In retrospect it makes sense that mixing input with stdio: 'inherit' might not work, but this was fairly confusing, and I don't see any documentation of what's supposed to happen in this case. Would it be better to error out, or automatically force stdin to be 'pipe' when input is given? Or is there some kind of legitimate use case for mixing input with stdio: 'inherit'?