Skip to content

Unexpected loss of files and source code without a clear cause #257177

@Toquetzin

Description

@Toquetzin

Type: Bug

I’ve been editing code with the help of the Copilot agent, and I worked for two days using its assistance. Once I finished, I saved the files and closed the editor. Now, at the start of the week, I opened the project to continue working and discovered that everything I worked on last week is gone — the code has been deleted, files are blank, and previously deleted files have reappeared empty.
What is going on here? This is not a functional tool; it’s harmful. Please provide an explanation. This appears to be a very serious issue. I didn’t do anything unusual: I simply opened the editor, edited code, requested help from Copilot Agent, saved my work, and closed the application.

Extension version: 0.29.1
VS Code version: Code 1.102.1 (7adae6a, 2025-07-15T16:41:17.147Z)
OS version: Windows_NT x64 10.0.22631
Modes:

Logs
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"K\\\" "},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"// Especi"},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"ficar "},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"que es t"},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"eléfono"},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":" de tr"},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"abaj"},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"o\\n    "},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"   "},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"    "},"index":0}]}}
Trace: choice {"delta":{"content":null,"tool_calls":[{"function":{"arguments":"     }\"}"},"index":0}]}}
Trace: choice {"finish_reason":"tool_calls","delta":{"content":null}}
Info: message 0 returned. finish reason: [tool_calls]
Debug: message 0 details: finishOffset: [undefined] completionId: [{msg_01VxCLFazJLbXynHUb8oVidw}] created: [{1753142770}]
Info: request done: requestId: [90e98db3-d7a3-4b29-97b7-4b81eb83e594] model deployment ID: []
Info: ccreq:a4189f58.copilotmd | success | claude-sonnet-4 | 3699ms | [panel/editAgent]
Trace: Resolving chat model
Trace: Resolved chat model
Trace: Resolving chat model
Trace: Resolved chat model
Debug: AgentIntent: rendering with budget=90639 (baseBudget: 112000, toolTokens: 5365), summarizationEnabled=true
Trace: Resolving chat model
Trace: Resolving chat model
Trace: Resolved chat model
Trace: Resolved chat model
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Debug: Related Information: Index not loaded yet triggering background calculation, returning 0ms
Trace: Resolving chat model
Trace: Resolved chat model
Trace: Resolving chat model
Trace: Resolved chat model
Trace: Resolving chat model
Trace: Resolved chat model
Trace: Resolving chat model
Trace: Resolved chat model
Trace: Built prompt
Trace: Sending prompt to model
Debug: modelMaxPromptTokens 112000
Debug: modelMaxResponseTokens 16000
Debug: chat model claude-sonnet-4
Trace: g0.initialize#24 started
Trace: g0.initialize#24 success. Elapsed 0.052300000097602606
Debug: Embeddings for commandEmbeddings calculated in 2571ms
Request IDs
aa52bc61-52c0-4e0e-8761-03155e6f1ea0
8e393811-84de-4da7-b9f4-04bdff5e2daa
aed0d663-e509-4af6-aa3d-853ce11cba98
3ade87a3-dc4e-4fa8-9caa-7d307d0a463a
424092d9-1f95-47c9-be25-dc18013e203d
aad272a3-eb98-4a68-ace3-609b52c152f0
42bc29b1-42fd-4002-84eb-4e466c3e505b
90e98db3-d7a3-4b29-97b7-4b81eb83e594
System Info
Item Value
CPUs AMD Ryzen 9 5950X 16-Core Processor (16 x 3400)
GPU Status 2d_canvas: unavailable_software
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
webnn: unavailable_software
Load (avg) undefined
Memory (System) 12.48GB (4.54GB free)
Process Argv --crash-reporter-id 5118dad2-ed8d-4f50-b82c-85317d8d17af
Screen Reader no
VM 0%

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions