Skip to content

Bug: VS Code Git UI and Git Graph Hang After Terminal-based Checkout #17

@danielaskdd

Description

@danielaskdd

Description

When using VS Code in conjunction with GitLens and Git Graph, Git-related UI components frequently hang or become unresponsive. Specifically, the Source Control sidebar and the Git Graph view stop updating after a sequence of branch operations performed in the integrated terminal. While the UI is frozen, Git commands in the terminal continue to function normally.

Steps to Reproduce

  1. Install GitLens and Git Graph extensions in VS Code.
  2. Open Git Graph and create a new branch, ensuring the "Check out" option is selected.
  3. Modify some code in the workspace.
  4. Commit and push the changes using the VS Code Source Control sidebar.
  5. Merge the Pull Request (PR) via the GitHub web interface.
  6. Return to the VS Code integrated terminal and execute the following:
    • git fetch upstream main:main
    • git checkout main
  7. Observe the issue: There is a high probability that the VS Code UI will hang. Git Graph fails to update its state, and the Source Control view becomes unresponsive.

Expected Behavior

The VS Code Source Control sidebar and the Git Graph view should automatically refresh and reflect the updated repository state (current branch and commit history) immediately after terminal commands are executed.

Actual Behavior

The Git-related UI elements hang. Closing and reopening the Git Graph tab temporarily restores functionality, but the underlying freeze persists until manual intervention. Terminal-based Git operations remain unaffected during this period.

Environment

  • Visual Studio Code Version: 1.108.1
  • Git Graph Extension Version: 1.35.0 (Issue has persisted for approximately 6 months)
  • Operating System: macOS Tahoe 26.2 (Intel)

Additional Context

  • The issue seems to be triggered specifically when switching back to a main branch via the terminal after the UI-based workflow (Git Graph/Source Control) was used for the initial branch creation and push.
  • Restarting the extension host or reopening the specific view tabs acts as a temporary workaround.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions