Hide binary output in by subprocesses in runner

This commit is contained in:
Christopher Hertel
2026-01-09 16:51:16 +01:00
parent 54b84c78e4
commit 212192217c

View File

@@ -91,6 +91,9 @@ $app = (new SingleCommandApplication('Symfony AI Example Runner'))
$output = str_replace(PHP_EOL, ' ', $process->getOutput());
$output = strlen($output) <= 100 ? $output : substr($output, 0, 100).'...';
if (str_contains($output, "\0")) {
$output = '<fg=gray>[binary output]</>';
}
$emptyOutput = 0 === strlen(trim($output));
$state = 'Running';