Skip to content

LLM repeated code snippet endlessly in answer #288658

@ascripter

Description

@ascripter

Type: Bug

Using Grok Code Fast 1 to debug pytest issue. It suggested 10 lines of code, but repeated them until the output exceeded the limit.

Extension version: 0.36.1
VS Code version: Code 1.108.1 (585eba7, 2026-01-14T14:55:44.241Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz (8 x 2904)
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) 15.82GB (2.33GB free)
Process Argv --crash-reporter-id caeccff9-1240-4e0c-8b4e-001368fec28d
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
6518g693:31436602
aj953862:31281341
6abeh943:31336334
cloudbuttont:31379625
3efgi100_wstrepl:31403338
use-responses-api:31390855
je187915:31407605
ec5jj548:31422691
cmp-ext-treat:31426748
cp_cls_t_966_ss:31446430
c0683394:31419495
ge8j1254_inline_auto_hint_haiku:31427726
nes-autoexp-10:31446583
a5gib710:31434435
38bie571_auto:31426784
rename_enabled:31436409
7a04d226_do_not_restore_last_panel_session:31438103
anthropic_thinking_t:31432745
h_21abi904:31446851
406hc587_ask_agent:31428393
cp_cls_c_1081:31443829
copilot-nes-callisto-trt:31434412
nowdiget:31442216
ia-no-proxy-models-svc:31448282
nes-slash-models-on:31441832
nes-set-to-on:31441941
a43f0574a:31442826
ts_provider_enabled:31446104
nes-conv-1-3:31447850

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions