Fix stdout freshness issue

**Problem**
When ForkOptions outputStrategy is None, Run code currently
tries to use LoggedOutput, which buffers the output when
connectInput is true, which effectively breaks the experience.

**Solution**
This stops falling back to LoggedOutput when connectInput is true.
This commit is contained in:
Eugene Yokota 2025-02-28 13:47:33 -08:00
parent 1d16ca9510
commit 7ce978a5f2
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class ForkRun(config: ForkOptions) extends ScalaRun {
}
private def configLogged(log: Logger): ForkOptions = {
if (config.outputStrategy.isDefined) config
if (config.outputStrategy.isDefined || config.connectInput) config
else config.withOutputStrategy(OutputStrategy.LoggedOutput(log))
}