Skip to content

GitHub Copilot CLI PowerShell Tool Failure #177

@ChristopherWheatcroft

Description

@ChristopherWheatcroft

Describe the bug

The PowerShell tool in Copilot CLI fails to execute ANY commands, even basic ones. All commands timeout immediately, and session IDs are reported as invalid.

Environment:

  • OS: Windows_NT
  • Working Directory: C:\Dev\GitHub
  • I, as a user, can execute PowerShell commands directly in the terminal successfully

Affected version

0.0.331 Commit: eb0ae04

Steps to reproduce the behavior

  1. Use any PowerShell command via the Copilot CLI tool with async: false
  2. Even simple commands like Get-Location or pwd timeout after specified timeout period
  3. When using async: true, commands timeout with negative time (-0.001 seconds)
  4. Session IDs become invalid immediately and cannot be read via read_powershel

Expected behavior

  • PowerShell commands should execute normally
  • Sessions should be created and accessible
  • Commands like Get-Location should return instantly

Additional context

Examples Tested:

  • Get-Location (timeout: 45s) - Failed
  • pwd (timeout: 60s) - Failed
  • echo "# Test MD File" > test.md - Failed
  • Write-Host "Testing PowerShell" (async) - Failed immediately

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions