Skip to content
Merged
Changes from all commits
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
8 changes: 5 additions & 3 deletions src/Cli/Microsoft.Maui.Cli/DevFlow/Broker/BrokerClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,9 @@ private static void CleanupStaleBroker()
string arguments;

// If running via `dotnet run` or `dotnet <dll>`, exePath is the dotnet host.
// In that case, use `dotnet <entryDll> broker start --foreground` instead.
// In that case, use `dotnet <entryDll> devflow broker start --foreground` instead.
// Note: the `devflow` token is required because broker is a subcommand of devflow,
// not a top-level CLI command.
if (exePath.EndsWith("dotnet", StringComparison.OrdinalIgnoreCase)
|| exePath.EndsWith("dotnet.exe", StringComparison.OrdinalIgnoreCase))
{
Expand All @@ -243,12 +245,12 @@ private static void CleanupStaleBroker()
return null;
}
fileName = exePath;
arguments = $"\"{dllPath}\" broker start --foreground";
arguments = $"\"{dllPath}\" devflow broker start --foreground";

Copilot AI Apr 28, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comment immediately above this branch still says the daemon is started with dotnet <entryDll> broker start --foreground, but the actual spawn args now include devflow broker .... Please update that comment to match the new argv so future changes don’t reintroduce this bug.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

}
else
{
fileName = exePath;
arguments = "broker start --foreground";
arguments = "devflow broker start --foreground";
}

var startInfo = new ProcessStartInfo
Expand Down
Loading