Skip to content

Copilot-edited files get out of sync with code editor #290304

@RoyceEColeman

Description

@RoyceEColeman

Type: Bug

In a dev container, run a lengthy Copilot agent mode task that requires creating new files. These files will show up under Copilot's "files changed" list view. VSCode will automatically open some of the new/edited files in the code editor. Occasionally, the version displayed in the editor will be out of sync with the version on the file system causing a "Cannot save file xyz. Compare/Overwrite" error notification that derails the agent's progress. The easy fix is to not automatically open new/edited files in the code editor. The user will review them at their leisure anyhow.

Extension version: 0.36.2
VS Code version: Code 1.108.1 (585eba7, 2026-01-14T14:55:44.241Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2
Connection to 'ssh-remote+192.168.0.11' could not be established

Logs
Trace: choice {"delta":{"content":" are"}}
Trace: choice {"delta":{"content":" found"}}
Trace: choice {"delta":{"content":","}}
Trace: choice {"delta":{"content":" you"}}
Trace: choice {"delta":{"content":" would"}}
Trace: choice {"delta":{"content":" return"}}
Trace: choice {"delta":{"content":" `"}}
Trace: choice {"delta":{"content":"undefined"}}
Trace: choice {"delta":{"content":"`.\n\n"}}
Trace: choice {"delta":{"content":"Since"}}
Trace: choice {"delta":{"content":" I"}}
Trace: choice {"delta":{"content":" don't"}}
Trace: choice {"delta":{"content":" have"}}
Trace: choice {"delta":{"content":" access"}}
Trace: choice {"delta":{"content":" to"}}
Trace: choice {"delta":{"content":" the"}}
Trace: choice {"delta":{"content":" actual"}}
Trace: choice {"delta":{"content":" output"}}
Trace: choice {"delta":{"content":","}}
Trace: choice {"delta":{"content":" please"}}
Trace: choice {"delta":{"content":" check"}}
Trace: choice {"delta":{"content":" the"}}
Trace: choice {"delta":{"content":" last"}}
Trace: choice {"delta":{"content":" "}}
Trace: choice {"delta":{"content":"40"}}
Trace: choice {"delta":{"content":" lines"}}
Trace: choice {"delta":{"content":" for"}}
Trace: choice {"delta":{"content":" any"}}
Trace: choice {"delta":{"content":" error"}}
Trace: choice {"delta":{"content":" messages"}}
Trace: choice {"delta":{"content":"."}}
Trace: choice {"delta":{"content":" If"}}
Trace: choice {"delta":{"content":" you"}}
Trace: choice {"delta":{"content":" find"}}
Trace: choice {"delta":{"content":" any"}}
Trace: choice {"delta":{"content":","}}
Trace: choice {"delta":{"content":" return"}}
Trace: choice {"delta":{"content":" those"}}
Trace: choice {"delta":{"content":";"}}
Trace: choice {"delta":{"content":" otherwise"}}
Trace: choice {"delta":{"content":","}}
Trace: choice {"delta":{"content":" return"}}
Trace: choice {"delta":{"content":" `"}}
Trace: choice {"delta":{"content":"undefined"}}
Trace: choice {"delta":{"content":"`."}}
Trace: choice {"finish_reason":"stop","delta":{"content":null}}
Info: message 0 returned. finish reason: [stop]
Debug: message 0 details: finishOffset: [undefined] completionId: [{chatcmpl-D24nzm0GmVh6UAiA2qS3K4sQbOHLk}] created: [{1769387499}]
Info: request done: requestId: [2c206863-f5ad-4a2c-9158-b6ae1cff7c02] model deployment ID: []
Info: ccreq:398cdcc5.copilotmd | success | gpt-4o-mini -> gpt-4o-mini-2024-07-18 | 1347ms | [copilotLanguageModelWrapper]
Request IDs
64be104d-3ed1-4abb-b2ca-795d265aa505
d9716ba1-fc69-42b3-9e30-0f4fe965fcca
59a0d827-0484-441f-becf-2454966f4bed
d3038859-45b1-493b-a8b4-fe4301b07952
47bce803-eb25-4375-a74e-2ded5722b6e8
e40d376d-a382-4de8-9c48-3ca1176259f4
5d159d4b-0624-4ae8-8448-454b84ce0406
0c634ca2-4f01-420d-b0fc-2df0970f329c
7e2a60f3-604b-44cd-82b2-6d2048fc9fe8
6b2dbc6e-da34-429d-82ab-2687b1cb77b2
4327ced5-6e45-4ca2-ad5a-fc2ae4124622
0e2d18cd-a4f3-4c81-a089-feb245a0216a
34c42ccd-369b-42d8-b087-d3ab64fc030a
dc9047dd-4a00-47f0-8a4d-df429871e525
d68c1534-4dd7-4282-8264-e8063eba6062
903350b5-a0e2-484b-9896-cf7dbe265966
b2d21aec-640b-494f-aa6a-a5e4531a8505
03bc206a-d149-4662-868a-a99d537eba6d
a135f9e9-52cf-47f2-a8e5-98be2eb9c6c7
f6420dfd-6521-4c27-997a-ce9d10fc8689
09289232-c9e6-4195-bed3-ace055a65af2
e22b0acb-f0a5-4809-9dca-0627d9c6cb90
2bb45bdc-9b76-4e31-96a3-0b4c6dab10c1
5b60989e-1a85-4796-8b2d-d0bd2ee90f23
93c8d1ea-7602-43ba-aa1e-617196f7cc5d
b116d0a8-55d3-4515-8ee5-f4fa1970ebad
c4a5fa1c-e884-4bcc-878c-b3bcc7c487bb
138071cb-9aeb-49aa-87d5-2fc72f862cda
04f0ca50-cd82-4ba4-9ccb-def145d88581
d24e5cc1-18ad-4259-8b13-b04c9bc4f1e7
fbf522bd-7e1e-4a2e-84b8-7e7ef9c08bfc
ae27088f-9230-4fed-9f12-5f6c2cefd16a
5fb4350e-fdee-44dc-b08b-f6eb24b92246
fe8342a3-5956-44bd-8ce2-6b3fd406b4ff
b9dc7ca0-4e8c-41b8-b7f6-0a5330cbeeee
3140ec1c-c3a6-4b9d-83a0-948a6900b8a2
9ab56f6d-e172-4bc0-b5e9-ab46e68b1440
03ace4dc-88b6-4524-8c87-4affb2aeefd3
47a248e9-fb3a-4998-bc05-99c0b031c709
4b9218c0-db3f-4ec6-a70a-d7db283759e9
26073a3e-a196-45f8-8dea-ded4f4c16249
3e8d81c5-dcfe-4dc2-8ad3-d7a4f054e1f4
ebb6b590-3475-4ca8-89d7-2fdc4f1eaf63
e0e846ff-337b-4370-b3a9-3a1817faac8e
3a1b0452-439d-4805-ad60-d7aefc1dc38c
68c79703-a3d4-473c-bcb4-cc30a78d81d3
b494dd3b-3b89-4a06-aacd-5c82e05a1d02
2580467d-19e0-4d8a-9f05-a08b139c120b
2c206863-f5ad-4a2c-9158-b6ae1cff7c02
System Info
Item Value
CPUs Intel(R) Core(TM) i9-14900HX (32 x 2419)
GPU Status 2d_canvas: enabled
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 31.71GB (8.85GB free)
Process Argv --folder-uri vscode-remote://dev-container%2B7b22686f737450617468223a22633a5c5c55736572735c5c726f7963655c5c446f63756d656e74735c5c4769744875625c5c72656469732d6464732d62656e63686d61726b73222c226c6f63616c446f636b6572223a66616c73652c2273657474696e6773223a7b22636f6e74657874223a226465736b746f702d6c696e7578227d2c22636f6e66696746696c65223a7b22246d6964223a312c22667350617468223a22633a5c5c55736572735c5c726f7963655c5c446f63756d656e74735c5c4769744875625c5c72656469732d6464732d62656e63686d61726b735c5c2e646576636f6e7461696e65725c5c646576636f6e7461696e65722e6a736f6e222c225f736570223a312c2265787465726e616c223a2266696c653a2f2f2f632533412f55736572732f726f7963652f446f63756d656e74732f4769744875622f72656469732d6464732d62656e63686d61726b732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c2270617468223a222f633a2f55736572732f726f7963652f446f63756d656e74732f4769744875622f72656469732d6464732d62656e63686d61726b732f2e646576636f6e7461696e65722f646576636f6e7461696e65722e6a736f6e222c22736368656d65223a2266696c65227d7d/workspace --crash-reporter-id 509d1af5-1fd1-4e21-ba27-62edc421cb0a
Screen Reader no
VM 0%
Item Value
Remote Dev Container: Kotlin Personal Server @ desktop-linux
OS Linux x64 6.6.87.2-microsoft-standard-WSL2
CPUs Intel(R) Core(TM) i9-14900HX (6 x 0)
Memory (System) 15.62GB (4.96GB free)
VM 0%

Connection to 'ssh-remote+192.168.0.11' could not be established

A/B Experiments
vsliv368cf:30146710
pythonvspyt551:31249599
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
9hi5e907:31436603
aj953862:31281341
4f60g487:31327383
6abeh943:31336334
cloudbuttont:31379625
42190218_ostrepl:31403339
use-responses-api:31390855
anonusage:31403420
je187915:31401257
ec5jj548:31422691
cmp-ext-treat:31426748
cp_cls_t_966_ss:31446430
c0683394:31419495
ge8j1254_inline_auto_hint_haiku:31431912
nes-autoexp-off:31446584
a5gib710:31434435
5j92g670_sonnet:31440727
word_off_nes_off_suggest_visible:31445375
rename_enabled:31436409
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_t:31432745
preserve_tokens:31444547
cp_cls_c_1081:31443829
copilot-nes-oct-trt:31432596
nes-jump-on-with-edit:31444032
nes-slash-models-on:31441832
nes-set-to-on:31441941
a43f0576c:31442824
ts_provider_enabled:31446104

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