Skip to content

Cannot update files with copilot  #282856

@sarthaktnetapp

Description

@sarthaktnetapp

Type: Bug

This is a bug in the VS Code Copilot extension that I cannot fix from my side. The replace_string_in_file tool is successfully making changes to VS Code's in-memory buffer, but VS Code is not saving those changes to disk.

Extension version: 0.31.5
VS Code version: Code 1.104.3 (Universal) (385651c, 2025-10-02T12:30:51.747Z)
OS version: Darwin arm64 25.1.0
Modes:

Logs
Trace: choice {"delta":{"content":"Work","role":"assistant"}}
Trace: choice {"delta":{"content":"sp","role":"assistant"}}
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] created
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] created
Trace: choice {"delta":{"content":"aces:","role":"assistant"}}
Trace: choice {"delta":{"content":" Manage","role":"assistant"}}
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] created
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] created
Trace: choice {"delta":{"content":" Workspace Trust\"","role":"assistant"}}
Trace: choice {"delta":{"content":"\n- Make","role":"assistant"}}
Trace: choice {"delta":{"content":" sure the","role":"assistant"}}
Trace: [NES][Triggerer][onDidChangeTextDocument] created
Trace: [NES][Triggerer][onDidChangeTextDocument] Return: ignored document
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] created
Trace: choice {"delta":{"content":" workspace is","role":"assistant"}}
Trace: choice {"delta":{"content":" trusted\n\n---","role":"assistant"}}
Trace: choice {"delta":{"content":"\n\n**Which","role":"assistant"}}
Trace: choice {"delta":{"content":" option would you like","role":"assistant"}}
Trace: choice {"delta":{"content":" to try?","role":"assistant"}}
Trace: choice {"delta":{"content":"**","role":"assistant"}}
Trace: choice {"delta":{"content":" After","role":"assistant"}}
Trace: choice {"delta":{"content":" trying","role":"assistant"}}
Trace: choice {"delta":{"content":" one","role":"assistant"}}
Trace: choice {"delta":{"content":",","role":"assistant"}}
Trace: choice {"delta":{"content":" let me know an","role":"assistant"}}
Trace: choice {"delta":{"content":"d we","role":"assistant"}}
Trace: choice {"delta":{"content":" can test","role":"assistant"}}
Trace: choice {"delta":{"content":" if","role":"assistant"}}
Trace: choice {"delta":{"content":" the edit","role":"assistant"}}
Trace: choice {"delta":{"content":" works","role":"assistant"}}
Trace: choice {"delta":{"content":".","role":"assistant"}}
Trace: choice {"finish_reason":"stop","delta":{"content":null}}
Info: message 0 returned. finish reason: [stop]
Debug: message 0 details: finishOffset: [undefined] completionId: [{msg_vrtx_01AxiX4dYERDghBn641jRVpk}] created: [{1765483125}]
Info: request done: requestId: [4ef9ea0c-191e-40b4-8f03-482f6abd46d7] model deployment ID: []
Info: ccreq:fe5bde6c.copilotmd | success | claude-opus-4.5 | 10346ms | [panel/editAgent]
Trace: Resolving chat model
Trace: Resolved chat model
Trace: CodeSearchRepoTracker.updateIndexedCommitForAllRepos
Trace: [NES][Triggerer][onDidChangeTextEditorSelection] created
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: false.
Debug: [context keys] Window state change. Needs offline check: false, active: true, focused: true.
Request IDs
51876f4e-33f7-45d0-959a-56fcb43918be
ec90ca75-ab37-4c66-825a-71bb4b00d1c3
4ef9ea0c-191e-40b4-8f03-482f6abd46d7
System Info
Item Value
CPUs Apple M3 Pro (11 x 2400)
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: enabled_on
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 4, 4, 4
Memory (System) 36.00GB (0.12GB free)
Process Argv --crash-reporter-id 001c4c0e-cb1f-4a42-bd44-c161ca8e621f
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
4f60g487:31327383
nes-set-on:31351930
6abeh943:31336334
cloudbuttont:31379625
todos-1:31405332
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
use-responses-api:31390855
je187915:31401257
ec5jj548:31422691
terminalsuggestenabled:31431119
cp_cls_c_966_ss:31426491
cp_cls_c_1081:31433293

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