Skip to content

Agent is suggests && in non-supporting versions of pwsh, awk in pwsh on Windows, etc. #6073

@amogorkon

Description

@amogorkon

I asked the agent to generate a README, then asked to commit.
The agent then tried to execute git add README.md && git commit -m "Add README file" in its own powershell terminal, which errors into

PS E:\Dropbox\code\pypeduct> git add README.md && git commit -m "Add README file"
In Zeile:1 Zeichen:19

  • git add README.md && git commit -m "Add README file"
  •               ~~
    

Das Token "&&" ist in dieser Version kein gültiges Anweisungstrennzeichen.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : InvalidEndOfLine

Copilot Chat Extension Version: 0.25.2025030404
Version: 1.98.0-insider (user setup)
Commit: 21d13f4350b0651abfae76b98651d7c72551dff1
Date: 2025-03-04T06:32:40.978Z
Electron: 34.2.0
ElectronBuildId: 11044223
Chromium: 132.0.6834.196
Node.js: 20.18.2
V8: 13.2.152.36-electron.0
OS: Windows_NT x64 10.0.19045

Image

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugchat-agent-terminalimportantIssue identified as high-priorityverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions