Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
using Microsoft.DotNet.Cli.CommandLine;
using Microsoft.DotNet.Cli.Commands.Test.Terminal;
using Microsoft.DotNet.Cli.Extensions;
using Microsoft.DotNet.Cli.Telemetry;

namespace Microsoft.DotNet.Cli.Commands.Test;

Expand Down Expand Up @@ -106,7 +107,9 @@ private void InitializeOutput(int degreeOfParallelism, ParseResult parseResult,
bool inCI = string.Equals(Environment.GetEnvironmentVariable("TF_BUILD"), "true", StringComparison.OrdinalIgnoreCase) || string.Equals(Environment.GetEnvironmentVariable("GITHUB_ACTIONS"), "true", StringComparison.OrdinalIgnoreCase);

AnsiMode ansiMode = AnsiMode.AnsiIfPossible;
if (noAnsi)
// In LLM environments, prefer simple text output so that LLM can parse it easily.
// Note that NoAnsi also implies also no progress.
Comment thread
Youssef1313 marked this conversation as resolved.
Outdated
if (noAnsi || new LLMEnvironmentDetectorForTelemetry().IsLLMEnvironment())
{
// User explicitly specified --no-ansi.
// We should respect that.
Expand Down
Loading