Skip to content

confuses adding lines with removing lines #256997

@lpolish

Description

@lpolish

Type: Bug

It starts acting totally incorrect in the means of confusing 'adding' with 'removing' in matters of it calling its own tool for writing code, resulting in empty files due to that. I noticed that because suddenly the diffs were so weird before accepting, and when it created code from scratch, it showed all-red diffs and then empty files after accepted. Confirmed the bug when I confronted gpt4.1 about it and then it corrected itself. Struggle a lot talking to gpt4.1 due to behaving like a complete imbecil to be honest.

Extension version: 0.30.2025071801
VS Code version: Code - Insiders 1.103.0-insider (3b2551c, 2025-07-18T05:03:37.281Z)
OS version: Linux x64 6.8.0-64-generic
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 4100)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.42GB (6.47GB free)
Process Argv --crash-reporter-id 938572bf-669b-4045-9b32-f7084ba1dfcd
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE wayland
A/B Experiments
vsliv368cf:30146710
pythonvspyt551cf:31249598
h48ei257:31000450
nativeloc1:31118317
dwcopilot:31158714
5b1c1929:31184661
6074i472:31201624
dwoutputs:31242946
9064b325:31222308
copilot_t_ci:31333650
g012b348:31231168
pythoneinst12:31251391
c7cif404:31309980
pythonpulldiag:31287486
6gi0g917:31259950
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
jdghv92:31317040
747dc170:31275146
pythonpcpt1:31345880
6518g693:31302842
generatesymbolt:31280541
convertfstringf:31280702
9d2cg352:31346308
j97ad248:31349650
usemarketplace:31343026
0g1h6703:31329154
nes-emitfast-1:31333560
replacestringexc:31350595
6abeh943:31336334
envsactivate1:31349248
0927b901:31340060
9ca6-promptcache:31345956
editstats-enabled:31346256

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions