Does this issue occur when all extensions are disabled?: No - requires Copilot extension
- VS Code Version: 1.107.1
- OS Version: Windows 11
Steps to Reproduce:
- Have Copilot (agent mode) edit File A (e.g., utils.ts)
- Do NOT click "Keep" - instead, stage and commit File A via git directly
- Push the commit to remote (git push)
- Have Copilot edit File B (e.g., api.config.ts) - do NOT commit
- Have Copilot edit File C (e.g., use-mobile.tsx) - do NOT commit
- Click "Undo" on the Copilot edits
- Dialog shows all files including File A (which was committed+pushed)
- Click "Yes" to proceed with undo
- File A is reverted, removing the COMMITTED changes
Result: Git now shows File A as modified - the pushed commit's content was removed by Undo.
Expected: File A should not be in the undo list at all since it was committed to git. Committing should clear the file from Copilot's undo tracking.
Workaround: Run git checkout HEAD -- <filename> to restore from commit.
Note: This appears to be a regression of microsoft/vscode-copilot-release#3492 which was marked fixed in March 2025.
Does this issue occur when all extensions are disabled?: No - requires Copilot extension
Steps to Reproduce:
Result: Git now shows File A as modified - the pushed commit's content was removed by Undo.
Expected: File A should not be in the undo list at all since it was committed to git. Committing should clear the file from Copilot's undo tracking.
Workaround: Run
git checkout HEAD -- <filename>to restore from commit.Note: This appears to be a regression of microsoft/vscode-copilot-release#3492 which was marked fixed in March 2025.