Type: Feature Request
Problem:
When using Copilot Chat in agent mode to write and edit code (vibe-coding — the user never manually edits code), the "Keep/Discard" buttons on file edits create an unsafe workflow:
Files left in dirty (unsaved) state. If the user doesn't click "Keep", the file remains modified but unsaved. When closing the editor tab, VS Code warns about unsaved changes — confusing for a user who never writes code themselves.
Risk with parallel chat sessions. When running multiple Copilot Chat sessions (not simultaneously, but interleaved) that touch the same files, the Keep/Discard mechanism creates a hazard: Session A edits a file → user forgets to click Keep → Session B edits the same file → user later clicks Discard on Session A's edit → Session B's changes are silently lost. The undo history spans across sessions, making accidental rollbacks likely.
Misaligned with the vibe-coding paradigm. In vibe-coding, the AI is the sole code author. The user trusts the AI to make correct edits and relies on git commits as checkpoints — not per-edit review. The Keep/Discard UI adds friction and risk without providing value to this workflow. The user doesn't read or review code diffs.
Suggested improvements:
Auto-accept edits option: A setting like chat.edits.autoAccept: true that automatically keeps all edits without requiring user interaction.
Auto-save after edit: When Copilot edits a file, save it to disk immediately (respecting files.autoSave settings).
Warn on cross-session conflicts: If a file has pending (un-kept) edits from Session A and Session B tries to edit the same file, warn or auto-resolve.
Workaround: Setting files.autoSave: afterDelay mitigates the unsaved-file issue but doesn't address the Keep/Discard undo-history risk.
Environment: VS Code Insiders, Copilot Chat agent mode, multiple parallel chat sessions, single developer (no team collaboration).
VS Code version: Code 1.112.0 (07ff9d6, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Type: Feature Request
Problem:
When using Copilot Chat in agent mode to write and edit code (vibe-coding — the user never manually edits code), the "Keep/Discard" buttons on file edits create an unsafe workflow:
Files left in dirty (unsaved) state. If the user doesn't click "Keep", the file remains modified but unsaved. When closing the editor tab, VS Code warns about unsaved changes — confusing for a user who never writes code themselves.
Risk with parallel chat sessions. When running multiple Copilot Chat sessions (not simultaneously, but interleaved) that touch the same files, the Keep/Discard mechanism creates a hazard: Session A edits a file → user forgets to click Keep → Session B edits the same file → user later clicks Discard on Session A's edit → Session B's changes are silently lost. The undo history spans across sessions, making accidental rollbacks likely.
Misaligned with the vibe-coding paradigm. In vibe-coding, the AI is the sole code author. The user trusts the AI to make correct edits and relies on git commits as checkpoints — not per-edit review. The Keep/Discard UI adds friction and risk without providing value to this workflow. The user doesn't read or review code diffs.
Suggested improvements:
Auto-accept edits option: A setting like chat.edits.autoAccept: true that automatically keeps all edits without requiring user interaction.
Auto-save after edit: When Copilot edits a file, save it to disk immediately (respecting files.autoSave settings).
Warn on cross-session conflicts: If a file has pending (un-kept) edits from Session A and Session B tries to edit the same file, warn or auto-resolve.
Workaround: Setting files.autoSave: afterDelay mitigates the unsaved-file issue but doesn't address the Keep/Discard undo-history risk.
Environment: VS Code Insiders, Copilot Chat agent mode, multiple parallel chat sessions, single developer (no team collaboration).
VS Code version: Code 1.112.0 (07ff9d6, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.26200
Modes: