copilot-cli icon indicating copy to clipboard operation
copilot-cli copied to clipboard

PowerShell invocations are added to user's PowerShell history

Open SteveSandersonMS opened this issue 3 months ago • 1 comments

Describe the bug

When Copilot CLI makes shell invocations on Windows using PowerShell, these become visible in command history in other PowerShell windows.

It sort of makes sense (as it is run by the current user) but it's unhelpful and undesirable.

Originally reported by Matt Mitchell from the .NET team.

Affected version

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

Additional context

No response

SteveSandersonMS avatar Sep 30 '25 21:09 SteveSandersonMS

The same happens in a linux shell.