This commit is contained in:
nuno maduro
2026-05-03 10:31:47 -03:00
parent e1a4b98b71
commit d3ce498b8a
2 changed files with 13 additions and 5 deletions

View File

@ -143,6 +143,8 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
private ?string $driftDetails = null;
private ?string $freshGraphReason = null;
public function __construct(
private readonly OutputInterface $output,
private readonly Recorder $recorder,
@ -657,6 +659,10 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
}
if ($this->piggybackCoverage && ! $this->state->exists(self::KEY_COVERAGE_CACHE)) {
if ($graph instanceof Graph && $this->driftLabel === null) {
$this->freshGraphReason = 'recording coverage baseline';
}
return $this->enterRecordMode($arguments);
}
@ -1011,6 +1017,8 @@ final class Tia implements AddsOutput, HandlesArguments, Terminable
if ($this->driftLabel !== null) {
$headline .= sprintf(' (%s changed)', $this->driftLabel);
} elseif ($this->freshGraphReason !== null) {
$headline .= sprintf(' (%s)', $this->freshGraphReason);
} else {
$headline .= '.';
}