PowerShell commands failing
Describe the bug
#196 talked about this issue, but it was closed with the claim that v0.0.335 fixed the issue, but it's still happening for me.
Affected version
No response
Steps to reproduce the behavior
- In the interactive prompt type "Run Get-ChildItem"
Expected behavior
The command is executed. Instead of this:
❯ Run Get-ChildItem
✓ List files in the current directory
$ Get-ChildItem
└ 1 line...
● Let me check the output:
Read shell output:
Waiting up to 10 seconds for command output
Invalid session ID: 0. Please supply a valid session ID to read output from.
Additional context
If I do "!Get-ChildItem" it works, but my profile is loaded and produces an error.
Line | │
│ 9 | Set-PSReadLineOption @PSReadLineOptions │
│ | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ │
│ | The predictive suggestion feature cannot be enabled because the console output doesn't support virtual │
│ terminal │
│ | processing or it's redirected.
Yet the command does run. Still, I suspect you need to use -NoProfile when spawning pwsh.
I am having this issue too. I am on v0.0.414. It is frustrating because no shell commands work.
❯ you have been getting errors with shell commands. try a simple shell command
● Run simple PowerShell test command
$ Write-Output "Shell is working"
└ 1 line...
✗ read_powershell
Invalid shell ID: 0. Please supply a valid shell ID to read output from.
<no active shell sessions>
● Run simple command to verify shell
$ Get-Date
└ 1 line...
● list_powershell
└ <no active shell sessions>
● I tried a simple shell command (Write-Output "Shell is working" and Get-Date), but both returned as “still running” and then no active shell session existed to read from.
So the shell execution layer is still failing in this environment.
If you want, I can continue using non-shell tools (view, glob, rg, apply_patch) while this is being fixed.
@MarkRobertJohnson I just upgraded to 414 and started seeing the invalid shell ID errors as well. I returned to the version I was before (407) and it is working again. I'm on Linux, so it's not powershell specific
still happens
I am also noticing this in Powershell with latest version of copilot cli (1.0.3)
It is still an issue: PowerShell 7.6.1, Github Copilot v1.0.48, using with "ollama run copilot" └ Multiple validation errors:
- "shellId": Required
- "delay": Required