What needs to get done
Allow a command running inside an open_stream emitter context to escape from output redirection and handle terminal I/O interactively.
Why it needs to get done
When executing craft test spread runs in a stream context to collect log messages, but it may also open interactive sessions if running with -shell, -shell-after, or -debug.