Skip to content

Gemini 3 Pro (Preview) chat formatting error #281831

@tepedersen

Description

@tepedersen
Image

Type: Bug

When using Copilot with the Gemini 3 Pro (Preview) in "Ask" mode when it outputs code the code is repeated 2-3 times, with part of the last bit of code outside of the code block in the chat. Reviewing the Chat log I could see that Gemini Pro 3 replied with the correct code (that is, not dupli/triplicated) within triple backticks, despite the initial instructions from vs code/copilot specifying that it should be wrapped in 4 backticks. After explicitly asking in the chat to use 4 backticks and retry sending the code, it did so correctly. However the code still appeared dupli/triplicated and partially outside the code block. This appears to be a bug with the chat view, rather than the Gemini 3 Pro (Preview) model. Asking it to apply the changes seem to work correctly.

To reproduce:

  1. Select Gemini 3 Pro (Preview) as model in github copilot in "Ask" mode.
  2. Open some code and request some kind of changes
  3. See the error in formatting in the code block.

(EDIT: Added screenshot, no worries the secrets/passwords are not actually in use :-) )

VS Code version: Code 1.106.3 (bf9252a, 2025-11-25T22:28:18.024Z)
OS version: Linux x64 6.14.0-36-generic
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2699)
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: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
Load (avg) 1, 1, 1
Memory (System) 15.47GB (9.87GB free)
Process Argv helsepsykologene.code-workspace --crash-reporter-id 424164c4-323f-423d-99d5-731afecc7457
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu-wayland
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu-wayland
XDG_SESSION_TYPE wayland
Extensions (32)
Extension Author (truncated) Version
rust-bundle 1Yi 1.0.0
better-comments aar 3.0.2
vscode-sqlite ale 0.14.1
vscode-fish bma 1.0.49
ruff cha 2025.32.0
rustowl-vscode cor 0.3.4
flask-snippets cst 0.1.3
rust-syntax dus 0.6.1
prettier-vscode esb 11.0.2
dependi fil 0.7.21
code-runner for 0.12.2
chatgpt-vscode gen 0.0.13
copilot-chat Git 0.33.4
rest-client hum 0.25.1
bash-ide-vscode mad 1.43.0
pyrefly met 0.44.2
python-essentials mik 1.0.1
vscode-containers ms- 2.3.0
black-formatter ms- 2025.2.0
debugpy ms- 2025.16.0
python ms- 2025.18.0
vscode-pylance ms- 2025.10.4
vscode-python-envs ms- 1.12.0
live-server ms- 0.4.16
autodocstring njp 0.6.1
rust-analyzer rus 0.3.2702
vscode-djaneiro the 1.4.2
native-preview Typ 0.20251207.1
todo-list Tza 1.6.0
copy-file-contents-to-clipboard und 0.0.1
explorer vit 1.36.0
pretty-ts-errors Yoa 0.6.1
A/B Experiments
vsliv368:30146709
binariesv615:30325510
vscrp:30673768
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythonrdcb7:31342333
aj953862:31281341
b6b4d950:31327385
nes-set-on:31351930
6abeh943:31336334
envsdeactivate2:31353495
cloudbuttont:31379625
todos-1:31405332
qwen_all_req:31402696
3efgi100_wstrepl:31403338
trigger-command-fix:31379601
auto_model_enabled:31385282
use-responses-api:31390855
je187915:31401257
afag3459:31428711
ec5jj548:31422691
copilot-nes-oct-t:31418199
terminalsuggestenabled:31426255
cmp-ext-treat:31426748
cp_cls_c_966_ss:31426491
defaultvisibility:31426295
expandedtokens:31427242
c0683394:31419495
g0h3h215:31426582
478ah919:31426797
2bd77578_control:31426889
a5gib710:31426879
5j92g670_sonnet:31426787
cp_jb_t_lixleitest:31428973

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