Type: Bug
When using reasoning models such as Claude Sonnet 4.6, the system repeatedly enters a “Compacting conversation” state multiple times during a single task. This significantly increases response time, even for small or simple tasks.
The issue results in unnecessary delays and disrupts workflow efficiency.
Steps to Reproduce
Open VS Code with AI agent enabled
Select Claude Sonnet 4.6 (or similar reasoning model)
Provide a small or medium-sized coding task
Observe the execution flow in the agent panel
Expected Behavior
Task should complete in a reasonable time
Minimal or no repeated “compacting conversation” steps
Smooth, continuous execution
Actual Behavior
Frequent repeated messages: “Compacting conversation”
Multiple unnecessary iterations before actual progress
Significant delay in completing even small tasks
Sometimes feels stuck in a loop before proceeding
Impact
Slows down development workflow
Makes reasoning models inefficient for quick tasks
Increases latency unnecessarily
Additional Context
Happens consistently with reasoning models (not observed as frequently with faster models)
Occurs even when the conversation context is not large
Seen during file reads, multi-step reasoning, and task execution
VS Code version: Code 1.115.0 (41dd792, 2026-04-07T22:04:57Z)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
| Item |
Value |
| CPUs |
AMD Ryzen 7 7800X3D 8-Core Processor (8 x 4192) |
| GPU Status |
2d_canvas: enabled GPU0: VENDOR= 0x10de, DEVICE=0x2f04 [NVIDIA GeForce RTX 5070], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9597 ACTIVE GPU1: VENDOR= 0x1002, DEVICE=0x164e [AMD Radeon(TM) Graphics], DRIVER_VERSION=32.0.21030.31 GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309 Machine model name: Machine model version: 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.11GB (12.09GB free) |
| Process Argv |
--crash-reporter-id 64caa978-b797-4ba6-ae91-adcfdc61ccf4 |
| Screen Reader |
no |
| VM |
0% |
Extensions (93)
| Extension |
Author (truncated) |
Version |
| 21st-extension |
21s |
0.0.11 |
| claude-code |
Ant |
2.1.101 |
| copilot-mcp |
Aut |
0.0.92 |
| shell |
bbe |
0.3.0 |
| github-markdown-preview |
bie |
0.3.0 |
| markdown-checkbox |
bie |
0.4.0 |
| markdown-emoji |
bie |
0.3.1 |
| markdown-footnotes |
bie |
0.1.1 |
| markdown-mermaid |
bie |
1.32.0 |
| markdown-preview-github-styles |
bie |
2.2.0 |
| markdown-yaml-preamble |
bie |
0.1.0 |
| npm-intellisense |
chr |
1.4.5 |
| coderabbit-vscode |
cod |
0.18.3 |
| markdown-table-prettify |
dar |
3.7.0 |
| vscode-markdownlint |
Dav |
0.61.2 |
| vscode-eslint |
dba |
3.0.24 |
| docs-yaml |
doc |
1.0.6 |
| githistory |
don |
0.6.20 |
| python-environment-manager |
don |
1.2.7 |
| python-extension-pack |
don |
1.7.0 |
| gitlens |
eam |
17.11.1 |
| vscode-html-css |
ecm |
2.0.14 |
| prettier-vscode |
esb |
12.4.0 |
| codespaces |
Git |
1.18.12 |
| copilot-chat |
Git |
0.43.0 |
| vscode-github-actions |
git |
0.31.3 |
| vscode-pull-request-github |
Git |
0.134.0 |
| pencildev |
hig |
0.6.41 |
| superdesign |
iga |
0.0.13 |
| batch-rename-extension |
Jan |
0.0.6 |
| katalium |
kat |
1.0.7 |
| vsc-python-indent |
Kev |
1.21.0 |
| rainbow-csv |
mec |
3.24.1 |
| simple-markdown-snippets |
Mis |
0.0.10 |
| prettify-json |
moh |
0.0.3 |
| vscode-azure-mcp-server |
ms- |
2.0.41 |
| vscode-azureresourcegroups |
ms- |
0.12.4 |
| vscode-containers |
ms- |
2.4.1 |
| csdevkit |
ms- |
3.10.14 |
| csharp |
ms- |
2.130.5 |
| vscode-dotnet-modernize |
ms- |
1.0.1026 |
| vscode-dotnet-runtime |
ms- |
3.0.0 |
| vscode-edge-devtools |
ms- |
2.1.10 |
| vscode-kubernetes-tools |
ms- |
1.3.29 |
| playwright |
ms- |
1.1.17 |
| debugpy |
ms- |
2025.18.0 |
| isort |
ms- |
2025.0.0 |
| python |
ms- |
2026.4.0 |
| vscode-pylance |
ms- |
2026.2.1 |
| vscode-python-envs |
ms- |
1.26.0 |
| jupyter |
ms- |
2025.9.1 |
| jupyter-keymap |
ms- |
1.1.2 |
| jupyter-renderers |
ms- |
1.3.0 |
| vscode-jupyter-cell-tags |
ms- |
0.1.9 |
| vscode-jupyter-powertoys |
ms- |
0.1.1 |
| vscode-jupyter-slideshow |
ms- |
0.1.6 |
| remote-containers |
ms- |
0.447.0 |
| remote-wsl |
ms- |
0.104.3 |
| cpptools |
ms- |
1.31.4 |
| live-server |
ms- |
0.4.18 |
| vsliveshare |
ms- |
1.1.122 |
| live-server-preview |
neg |
0.1.4 |
| playwright-snippets |
nit |
1.0.1 |
| pocketbase-snippets |
not |
1.1.0 |
| github-actions-vscode |
Oma |
2.7.0 |
| chatgpt |
ope |
26.409.20454 |
| csv-to-md-table |
pho |
0.3.1 |
| plotly-dash-snippets |
Plo |
0.0.6 |
| prettyxml |
Pra |
6.8.0 |
| qwen-code-vscode-ide-companion |
qwe |
0.14.3 |
| java |
red |
1.53.0 |
| vscode-yaml |
red |
1.21.0 |
| LiveServer |
rit |
5.7.10 |
| pytorch-snippets |
SBS |
1.0.2 |
| opencode |
sst |
0.0.13 |
| code-spell-checker |
str |
4.5.6 |
| vscode-csv-markdown |
tak |
0.0.3 |
| markdown-admonitions |
tom |
0.9.1 |
| pdf |
tom |
1.2.2 |
| vscode-spring-boot |
vmw |
2.1.1 |
| migrate-java-to-azure |
vsc |
1.15.3 |
| vscode-gradle |
vsc |
3.17.2 |
| vscode-java-debug |
vsc |
0.58.5 |
| vscode-java-dependency |
vsc |
0.27.1 |
| vscode-java-pack |
vsc |
0.30.5 |
| vscode-java-test |
vsc |
0.44.0 |
| vscode-java-upgrade |
vsc |
2.1.1 |
| vscode-maven |
vsc |
0.45.1 |
| vscode-spring-boot-dashboard |
vsc |
0.14.0 |
| vscode-stlite |
whi |
0.80.1 |
| markdown-pdf |
yza |
1.5.0 |
| markdown-all-in-one |
yzh |
3.6.3 |
| json |
Zai |
2.0.2 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
b6b4d950:31327385
6abeh943:31336334
envsactivate1:31464700
cloudbuttont:31379625
3efgi100_wstrepl:31403338
bj468946:31457056
use-responses-api:31390855
je187915:31401257
ec5jj548:31422691
cp_cls_c_966_ss:31454199
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
38bie571_auto:31478678
cp_cls_c_1081:31454833
conptydll_true:31489736
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
control_6dc23131:31492151
idci7584:31464702
nes-ftch-new:31485413
e3e4d672:31489863
534a6447_copy:31478748
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
sonnet46_4g7d3299:31489269
67jbj424:31492194
t-some:31486549
cpptoolsoff-v2:31475362
i2gc6536:31491077
ghj88844:31492074
ec1eg703:31491645
client_tst_t:31487658
po_split_t:31488386
ddid_t:31478206
getcmakediagnosticsoff:31489825
nes-perm-reb-0:31490411
pro_ctrl:31492542
cp_cls_c_1082:31491634
nes-async-ew-check-on:31491820
logging_enabled_new:31493367
Type: Bug
When using reasoning models such as Claude Sonnet 4.6, the system repeatedly enters a “Compacting conversation” state multiple times during a single task. This significantly increases response time, even for small or simple tasks.
The issue results in unnecessary delays and disrupts workflow efficiency.
Steps to Reproduce
Open VS Code with AI agent enabled
Select Claude Sonnet 4.6 (or similar reasoning model)
Provide a small or medium-sized coding task
Observe the execution flow in the agent panel
Expected Behavior
Task should complete in a reasonable time
Minimal or no repeated “compacting conversation” steps
Smooth, continuous execution
Actual Behavior
Frequent repeated messages: “Compacting conversation”
Multiple unnecessary iterations before actual progress
Significant delay in completing even small tasks
Sometimes feels stuck in a loop before proceeding
Impact
Slows down development workflow
Makes reasoning models inefficient for quick tasks
Increases latency unnecessarily
Additional Context
Happens consistently with reasoning models (not observed as frequently with faster models)
Occurs even when the conversation context is not large
Seen during file reads, multi-step reasoning, and task execution
VS Code version: Code 1.115.0 (41dd792, 2026-04-07T22:04:57Z)
OS version: Windows_NT x64 10.0.26200
Modes:
System Info
GPU0: VENDOR= 0x10de, DEVICE=0x2f04 [NVIDIA GeForce RTX 5070], DRIVER_VENDOR=NVIDIA, DRIVER_VERSION=32.0.15.9597 ACTIVE
GPU1: VENDOR= 0x1002, DEVICE=0x164e [AMD Radeon(TM) Graphics], DRIVER_VERSION=32.0.21030.31
GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.7309
Machine model name:
Machine model version:
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
Extensions (93)
(1 theme extensions excluded)
A/B Experiments