Skip to content

Gemini 3.1 Pro (Preview) loops, trying getting out of thinking mode #305067

@yizeyi18

Description

@yizeyi18

We have written the needed data into your clipboard because it was too large to send. Please paste.

Type: Performance Issue

Dont know about how to reproduce it, even restoring chkpoint and re-try the very same prompt.
Gemini exited thinking mode by mistake and got in strange loop, alternating meaningless pass and words to try to get out of the loop, for about 80k tokens. the full output(except for initial thinking) exceeds allowed characters so shown in replies below.

Extension version: 0.40.1
VS Code version: Code 1.112.0 (07ff9d6, 2026-03-17T18:09:23Z)
OS version: Windows_NT x64 10.0.26200
Modes:
Remote OS version: Linux x64 6.12.48-1-MANJARO

System Info
Item Value
CPUs 12th Gen Intel(R) Core(TM) i5-12500 (12 x 2995)
GPU Status 2d_canvas: enabled
GPU0: VENDOR= 0x8086, DEVICE=0x4690 [Intel(R) UHD Graphics 770], DRIVER_VENDOR=Intel, DRIVER_VERSION=32.0.101.7077 ACTIVE
GPU1: VENDOR= 0x8086, DEVICE=0x4690 [Intel(R) UHD Graphics 770], DRIVER_VERSION=32.0.101.7077
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.49GB (13.24GB free)
Process Argv --crash-reporter-id 3560f246-7b4f-489f-8f0c-54bad8642fd2
Screen Reader no
VM 0%
Item Value
Remote SSH: xe
OS Linux x64 6.12.48-1-MANJARO
CPUs AMD Ryzen 9 7950X 16-Core Processor (32 x 4923)
Memory (System) 124.95GB (119.57GB free)
VM 0%
Process Info
CPU %	Mem MB	   PID	Process
    0	   149	 27460	code
    0	    52	  1312	   utility-network-service
    0	    34	  1760	   crashpad-handler
    0	   314	  9872	extension-host [2]
    0	    98	 14568	     "C:\Users\yizeyi18\AppData\Local\Programs\Microsoft VS Code\Code.exe" "c:\Users\yizeyi18\AppData\Local\Programs\Microsoft VS Code\07ff9d6178\resources\app\extensions\json-language-features\server\dist\node\jsonServerMain" --node-ipc --clientProcessId=9872
    0	    10	 17260	     c:\Users\yizeyi18\.vscode\extensions\ms-python.vscode-python-envs-1.22.0-win32-x64\python-env-tools\bin\pet.exe server
    0	     7	 16308	       C:\WINDOWS\system32\conhost.exe 0x4
    0	    11	 19800	     c:\Users\yizeyi18\.vscode\extensions\ms-python.python-2026.4.0-win32-x64\python-env-tools\bin\pet.exe server
    0	     7	 31440	       C:\WINDOWS\system32\conhost.exe 0x4
    0	   231	 24340	     electron-nodejs (bundle.js)
    0	    86	 12872	file-watcher [1]
    0	   102	 14572	file-watcher [2]
    0	   213	 14792	window [1] (Release Notes: 1.112.0 - AstrBot [SSH: xe] - Visual Studio Code)
    0	     9	 15556	   C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\CodeSetup-stable-cfbea10c5ffb233ea9177d34726e6056e89913dc.exe /verysilent /log /update="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\CodeSetup-stable-cfbea10c5ffb233ea9177d34726e6056e89913dc.flag" /progress="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\update-progress" /sessionend="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\session-ending.flag" /cancel="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\cancel.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
    0	    26	 29376	     "C:\Users\yizeyi18\AppData\Local\Temp\is-30HV0.tmp\CodeSetup-stable-cfbea10c5ffb233ea9177d34726e6056e89913dc.tmp" /SL5="$1781148,138116174,841216,C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\CodeSetup-stable-cfbea10c5ffb233ea9177d34726e6056e89913dc.exe" /verysilent /log /update="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\CodeSetup-stable-cfbea10c5ffb233ea9177d34726e6056e89913dc.flag" /progress="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\update-progress" /sessionend="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\session-ending.flag" /cancel="C:\Users\yizeyi18\AppData\Local\Temp\vscode-stable-user-x64\cancel.flag" /nocloseapplications /mergetasks=runcode,!desktopicon,!quicklaunchicon
    0	   201	 21412	   gpu-process
    0	   100	 22184	   window
    0	  1994	 27112	window [2] (Extension: GitHub Copilot Chat - Visual Studio Code)
    0	   126	 28736	shared-process
    0	   108	 30628	pty-host
    0	     5	  7668	     C:\WINDOWS\System32\cmd.exe /c (type "C:\Users\yizeyi18\AppData\Local\Temp\vscode-linux-multi-line-command-xe-632820890.sh" | "C:\WINDOWS\System32\OpenSSH\ssh.exe" -T -D 57699 xe sh) & exit /b 0
    0	    11	 33708	       "C:\WINDOWS\System32\OpenSSH\ssh.exe"  -T -D 57699 xe sh
    0	     9	 25992	     conpty-agent
    0	    87	 26232	     C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe -noexit -command "try { . \"c:\Users\yizeyi18\AppData\Local\Programs\Microsoft VS Code\07ff9d6178\resources\app\out\vs\workbench\contrib\terminal\common\scripts\shellIntegration.ps1\" } catch {}"
    0	     9	 30948	     conpty-agent
    0	   128	 33148	extension-host [1]
    0	    93	 36284	   window

Remote: SSH: xe
CPU %	Mem MB	   PID	Process
    0	   128	447165	remote-server
    0	     0	447207	   fileWatcher
    0	   512	447241	   extension-host
    0	     0	447301	     /home/yizeyi18/.vscode-server/cli/servers/Stable-07ff9d6178ede9a1bd12ad3399074d726ebe6e43/server/node /home/yizeyi18/.vscode-server/cli/servers/Stable-07ff9d6178ede9a1bd12ad3399074d726ebe6e43/server/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=447241
    0	     0	447247	   ptyHost
    0	     0	447652	     /bin/bash --init-file /home/yizeyi18/.vscode-server/cli/servers/Stable-07ff9d6178ede9a1bd12ad3399074d726ebe6e43/server/out/vs/workbench/contrib/terminal/common/scripts/shellIntegration-bash.sh
    0	     0	455688	   /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
Workspace Info

|  Remote: SSH: xe|    Folder (AstrBot): 2585 files|      File types: js(453) py(451) md(364) pyc(343) json(141) vue(138) ts(50)
|                  css(40) png(25) ttf(22)
|      Conf files: github-actions(11) settings.json(3) package.json(2)
|                  copilot-instructions.md(1) agents.md(1) dockerfile(1) makefile(1)
|                  tsconfig.json(1);
A/B Experiments
vsliv368:30146709
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
6518g693:31463988
aj953862:31281341
6abeh943:31336334
envsdeactivate2:31464701
cloudbuttont:31379625
aihoversummaries_f:31469309
3efgi100_wstrepl:31403338
use-responses-api:31390855
je187915:31454425
ec5jj548:31422691
cp_cls_t_966_ss:31454198
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31427726
38bie571_auto:31429954
cp_cls_t_1081:31454832
ia-use-proxy-models-svc:31452481
e9c30283:31461165
test_treatment2:31471001
control_6dc23131:31467998
idci7584:31464702
e3e4d672:31461204
showingstats:31481873
534a6447_copy:31478748
7ef87755:31458076
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
ah:31460422
8a2c4887_5_3_codex_prompt:31475326
bg_compact_c:31481651
c-off:31481340
cpptoolsoff-v2:31475362
noaffordance1:31474146
db0gd219:31481871
nes-cur-vs-rec-ctrl:31478717
ddid_t:31478206
nes-cj-ctx3k:31479277
getcmakediagnosticsoff:31481767
nes-perm-reb-1:31481660

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions