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-03-02 00:31:34 -05:00
parent 1d16ca9510
commit 7ce978a5f2
+1 -1
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))
}