continue icon indicating copy to clipboard operation
continue copied to clipboard

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

Open erclx opened this issue 11 months ago • 3 comments

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.]

erclx avatar Dec 12 '25 06:12 erclx

Related/duplicate issues:

  • #2822 - Git Diff always returns no changes on WSL (duplicate)
  • #3454 - Git diff fails to execute for auto complete when using WSL (closed)
  • #4831 - vscode ssh, show no change with @git diff (closed)
  • #1450 - /commit and @diff do not work on remote repository accessed via Remote-SSH VSCode plugin (closed)
  • #1285 - sdk.ide.Diff() returns nothing even when git diff --cached does (closed)
  • #4130 - Autocomplete - Git diff is issued at each keystroke - no cache is implemented (closed)
  • #5335 - Continue causing regular git diff in IntelliJ on large project causing slowdown (closed)

continue avatar Dec 12 '25 06:12 continue

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.

github-actions[bot] avatar Mar 13 '26 02:03 github-actions[bot]

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!

github-actions[bot] avatar Mar 24 '26 02:03 github-actions[bot]