@Git Diff context provider fails in WSL (Remote) - "Git shows no current changes"
Before submitting your bug report
- [x] I've tried using the "Ask AI" feature on the Continue docs site to see if the docs have an answer
- [x] I'm not able to find a related conversation on GitHub discussions that reports the same bug
- [x] I'm not able to find an open issue that reports the same bug
- [x] I've seen the troubleshooting guide on the Continue Docs
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.]
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 whengit diff --cacheddoes (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)
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.
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!