You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GitHub Copilot in Agent mode consistently omits first character when using Git Bash in terminal. #274234
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
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.
Reacted by X3STeNLiTE, jlhervy, Vitaliy Vorobyev, Luke Page and Bowen Wang
I’ve noticed that whenever Copilot drops the first character, VS Code simultaneously opens a new terminal, and I’m wondering if VS Code might be misinterpreting one of the characters sent by Copilot as a command to spawn an extra terminal.
I believe this is already fixed, can you see if you can reproduce in the Insiders build? Let us know if not.
This is still happening even on insiders. It it not the same thing as the problem in the issue, it is the first character of each command that is skipped in the terminal. (bash for me)
This is really, really starting to get irritating.
Note that it usually happens when the LLM creates its own separate terminal in order to run commands (even though I already have one open). The earlier comment about this being somehow related to open a terminal may have some validity.
When the command fails because there is no such command, the LLM tries to run a different command. Rather than approving the command, I tell it that there is a GitHub Copilot bug that cut off the first characters, and for it to rerun the previous command. It does so, and that time it will run with no problem.
To help you track this down, note that this often happens even for me, which I manually switch from the editor to the terminal using Ctrl+Backtick (on Windows). After switching to the terminal, it drops the first letter I type. Thus the root cause may not be directly related to GitHub Copilot, but something to do with switching to the terminal.
Yes, I believe this issue is caused by git bash integration with the vscode terminal, and not really related to Copilot (but I could be wrong). However, I started seeing this happen around the time I started using Copilot, so maybe a weird coincidence :)
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
Activity
LauraCSDev commentedon Oct 31, 2025
same here
Tyriar commentedon Nov 1, 2025
I believe this is already fixed, can you see if you can reproduce in the Insiders build? Let us know if not.
garretwilson commentedon Nov 14, 2025
This is still happening in the October 2025 release. 😢 Please reopen.
bearx3f commentedon Nov 14, 2025
I’ve noticed that whenever Copilot drops the first character, VS Code simultaneously opens a new terminal, and I’m wondering if VS Code might be misinterpreting one of the characters sent by Copilot as a command to spawn an extra terminal.
jlhervy commentedon Nov 15, 2025
This is still happening even on insiders. It it not the same thing as the problem in the issue, it is the first character of each command that is skipped in the terminal. (bash for me)
garretwilson commentedon Nov 15, 2025
Daniel Imms (@Tyriar) can you please reopen this? It was closed without verifying it was fixed, and it is not fixed.
garretwilson commentedon Nov 16, 2025
This is really, really starting to get irritating.
Note that it usually happens when the LLM creates its own separate terminal in order to run commands (even though I already have one open). The earlier comment about this being somehow related to open a terminal may have some validity.
When the command fails because there is no such command, the LLM tries to run a different command. Rather than approving the command, I tell it that there is a GitHub Copilot bug that cut off the first characters, and for it to rerun the previous command. It does so, and that time it will run with no problem.
Please raise the priority of this.
u84six commentedon Nov 17, 2025
This is not fixed in 1.106.0. I can confirm that it's still an issue
2 remaining items
u84six commentedon Dec 11, 2025
Yes, I believe this issue is caused by git bash integration with the vscode terminal, and not really related to Copilot (but I could be wrong). However, I started seeing this happen around the time I started using Copilot, so maybe a weird coincidence :)
lukpsaxo commentedon Jan 1, 2026
This happens to me and I lived with it, but decided to raise it and hope to get it fixed.
Also many upvotes on a user getting this issue on reddit: https://www.reddit.com/r/GithubCopilot/comments/1nns9x2/sick_and_tired_of_the_terminal_command_always/
I'm on the latest updates.
anthonykim1 commentedon Jan 5, 2026
I expected this to be fixed with #243584. Released October https://code.visualstudio.com/updates/v1_106#_notable-fixes
Which version of windows are you using Luke Page (@lukpsaxo)
garretwilson commentedon Jan 5, 2026
This is definitely still present in:
iwangbowen commentedon Jan 6, 2026
Please fix this. I switched to WSL because of this issue
anthonykim1 commentedon Jan 6, 2026
I think this is a dup of #275625