Skip to content

@Git Diff context provider fails in WSL (Remote) - "Git shows no current changes" #9136

Closed as not planned

Description

@erclx

Before submitting your bug report

Relevant environment info

OS: Windows 11 (Host) / Ubuntu 24.04 (WSL2)

Continue version: v1.2.12

IDE version: VS Code (Latest) - Remote WSL Extension

Model: Local Ollama (Qwen 3.0 Coder 30B)

Agent configuration: Local config.yaml using Ollama provider

Description

I am running VS Code in WSL (Windows Subsystem for Linux). The repository is located inside the WSL filesystem (e.g., ~/repos/templates/...).

The Problem: When I use the @git Diff context provider in the chat, it returns "Git shows no current changes", even though running git diff in the VS Code integrated terminal clearly shows modified files.

I suspect the extension is attempting to execute git diff from the incorrect Working Directory (possibly the Workspace root vs the Git root) or is failing to resolve the Linux path correctly (confusing the Windows \wsl$... path with the Linux /home/user/... path).

To reproduce

Open a repository located in WSL using "VS Code Remote - WSL".

Make a change to any file.

Verify git diff shows the change in the integrated terminal.

Type @git Diff in the Continue chat sidebar.

Result: The model receives context saying "Git shows no current changes."

Log output

[Expected error: "fatal: not a git repository" or similar path resolution failure indicating the command was run in the wrong directory.]

Activity

  1. continue commented on Dec 12, 2025

    @continue
    Contributor

    Related/duplicate issues:

  2. added
    area:context-providers
    ide:vscode
    kind:bug
    on Dec 12, 2025
  3. github-actions commented on Mar 13, 2026

    @github-actions
    Contributor

    This issue hasn't been updated in 90 days and will be closed after an additional 10 days without activity. If it's still important, please leave a comment and share any new information that would help us address the issue.

  4. github-actions commented on Mar 24, 2026

    @github-actions
    Contributor

    This issue was closed because it wasn't updated for 10 days after being marked stale. If it's still important, please reopen + comment and we'll gladly take another look!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:context-providerside:vscodekind:bugstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions