Skip to content

GitHub Copilot in Agent mode consistently omits first character when using Git Bash in terminal. #274234

@garretwilson

Description

@garretwilson

I'm using Git Bash with Java 25 in the terminal on Windows 11.

When using "Agent" mode, the LLM will often want to run some tests to see if its work is correct. It will ask to run e.g. Maven:

mvn test -Dtest=FooBarTest

Unfortunately a large percentage of the time, the first letter of its command will be cut off, causing the command to fail:

$ vn test -Dtest=FooBarTest
bash: vn: command not found

Sometimes the LLM can recover, but often it thinks it was in the wrong directory and tries the command again but first changing to the directory (which it was already in).

I'm glad the LLM is resilient, but I'm worried that this issue of missing the first letter of a command in the terminal is a larger systemic issue.

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugconfirmation-pendingterminal-processProblems launching processes, managing ptys, exiting, process leaks, etc.terminal-shell-git-bashAn issue in the terminal specific to git bash on Windows, including shell integration

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions