A runCLI goroutine that outlives its test would make t.Logf panic; a done flag set in t.Cleanup turns logCommand into a no-op from then on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>