Copilot Chat “Keep / Undo pending edits” causes irreversible loss of code across Codespaces sessions #183864
Replies: 1 comment
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Bug
Body
I experienced destructive behavior using GitHub Copilot Chat in VS Code Codespaces.
Copilot Chat maintains a long-lived edit session across days and machines. When prompted to “Keep & Continue” or “Undo & Continue” pending edits, both options resulted in overwriting or deleting valid code changes already present in the workspace.
This caused irreversible loss of work done across multiple sessions.
Exact Reproduction Steps
Observed Result
Selecting Keep re-applies stale Copilot diffs and overwrites newer changes
Selecting Undo reverts all Copilot-associated changes, deleting valid work already present on disk
No warning that this action is destructive
No recovery prompt or diff preview
Work is lost even though files existed and were visible before the prompt
Expected Result
Copilot Chat should never overwrite or revert workspace files without explicit, file-level confirmation
“Undo” should only discard Copilot’s internal session, not mutate the filesystem
Copilot edit sessions should not persist across machines/days without explicit user intent
Impact
High severity – data loss.
This makes Copilot Chat unsafe for professional use in Codespaces across multiple devices.
Environment
VS Code (latest)
GitHub Codespaces
GitHub Copilot Chat enabled
Same Codespace accessed from multiple machines
Beta Was this translation helpful? Give feedback.
All reactions