Skip to content

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

Closed as duplicate

Description

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.

Activity

  1. LauraCSDev commented on Oct 31, 2025

    @LauraCSDev

    same here

  2. Tyriar commented on Nov 1, 2025

    @Tyriar
    Contributor

    I believe this is already fixed, can you see if you can reproduce in the Insiders build? Let us know if not.

  3. garretwilson commented on Nov 14, 2025

    @garretwilson
    Author

    This is still happening in the October 2025 release. 😢 Please reopen.

    Version: 1.106.0 (user setup)
    Commit: ac4cbdf48759c7d8c3eb91ffe6bb04316e263c57
    Date: 2025-11-11T16:02:25.943Z
    Electron: 37.7.0
    ElectronBuildId: 12597478
    Chromium: 138.0.7204.251
    Node.js: 22.20.0
    V8: 13.8.258.32-electron.0
    OS: Windows_NT x64 10.0.26100
    
  4. bearx3f commented on Nov 14, 2025

    @bearx3f

    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.

  5. jlhervy commented on Nov 15, 2025

    @jlhervy

    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)

  6. garretwilson commented on Nov 15, 2025

    @garretwilson
    Author

    Daniel Imms (@Tyriar) can you please reopen this? It was closed without verifying it was fixed, and it is not fixed.

  7. added
    bug
    terminal-shell-git-bash
    on Nov 15, 2025
  8. garretwilson commented on Nov 16, 2025

    @garretwilson
    Author

    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.

  9. u84six commented on Nov 17, 2025

    @u84six

    I believe this is already fixed, can you see if you can reproduce in the Insiders build? Let us know if not.

    This is not fixed in 1.106.0. I can confirm that it's still an issue

  10. 2 remaining items

  11. u84six commented on Dec 11, 2025

    @u84six

    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 :)

  12. added
    terminal-process
    on Dec 11, 2025
  13. lukpsaxo commented on Jan 1, 2026

    @lukpsaxo

    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.

  14. anthonykim1 commented on Jan 5, 2026

    @anthonykim1
    Contributor
  15. garretwilson commented on Jan 5, 2026

    @garretwilson
    Author

    This is definitely still present in:

    Version: 1.107.1 (user setup)
    Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
    Date: 2025-12-17T14:15:14.850Z
    Electron: 39.2.3
    ElectronBuildId: 12895514
    Chromium: 142.0.7444.175
    Node.js: 22.21.1
    V8: 14.2.231.21-electron.0
    OS: Windows_NT x64 10.0.26200
    
  16. iwangbowen commented on Jan 6, 2026

    @iwangbowen

    Please fix this. I switched to WSL because of this issue

  17. anthonykim1 commented on Jan 6, 2026

    @anthonykim1
    Contributor

    I think this is a dup of #275625

  18. removed this from the January 2026 milestone on Jan 29, 2026
  19. locked and limited conversation to collaborators on Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugconfirmation-pendingterminal-processterminal-shell-git-bash

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions