Commit Message Editor Fails when moved to different window
Type: Bug
Make a change to a file under source control Go to Source Control Ctrl+Shift+G Click Commit with an empty message so you get the commit message editor Move the commit message editor to another window Write and save a commit message Click Commit in the commit message editor windows You will get a notification that the commit was canceled due to an empty commit message
VS Code version: Code 1.132.0 (df53daabb18cd157bdb08c7f01c34df936cf12f4, 2026-08-04T15:30:20Z) OS version: Windows_NT x64 10.0.26200 Modes:
System Info
| Item | Value |
|---|---|
| CPUs | AMD Ryzen 9 9955HX 16-Core Processor (32 x 2495) |
| GPU Status | 2d_canvas: enabled GPU0: VENDOR= 0x1002, DEVICE=0x13c0 [AMD Radeon(TM) Graphics], DRIVER_VENDOR=AMD, DRIVER_VERSION=32.0.21036.8001 ACTIVE GPU1: VENDOR= 0x10de, DEVICE=0x2d59 [NVIDIA GeForce RTX 5060 Laptop GPU], DRIVER_VERSION=32.0.16.1062 GPU2: VENDOR= 0x1414, DEVICE=0x008c [Microsoft Basic Render Driver], DRIVER_VERSION=10.0.26100.8875 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 webgpu: enabled webnn: disabled_off |
| Load (avg) | undefined |
| Memory (System) | 31.18GB (9.79GB free) |
| Process Argv | --disable-extensions --crash-reporter-id a3240205-b593-4c4b-9a5e-d279d694c01f |
| Screen Reader | no |
| VM | 0% |
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
envsactivate1:31551504
478i5457:31544283
cloudbuttont:31379625
3efgi100_wstrepl:31403338
ec5jj548:31422691
lysithea-0014-2in1-kld2:31558770
cp_cls_t_966_ss:31526232
4je02754:31466945
8hhj4413:31478653
ge8j1254_inline_auto_hint_haiku:31490510
cp_cls_t_1081:31454832
conptydll_true:31498968
core-renderer-profiling-on:31440367
e9c30283:31461165
test_treatment2:31471001
46204921:31447328
control_6dc23131:31555649
idci7584:31464702
e3e4d672:31494082
ei9d7968:31496641
nes-extended-on:31455476
chat:31457767
8hig5102:31480529
89g7j272:31518289
7e187181:31503455
i2gc6536:31499202
52612955:31516516
ghj88844:31499326
ec1eg703:31520046
ddid_c:31478207
hmra_i5g22:31518061
7df3h592:31512476
cp_cls_t_1082:31535311
logging_enabled_new:31498466
j0d79568:31499440
jb_cp_cls_t_632:31543129
56dj4588:31512888
32d76977:31512328
ha629193:31508444
cdk-lw-on:31524445
f9bf7985:31543584
jh5f2457_c:31540921
g4a0e106:31529594
jbcp_cls_pctr_t:31531130
61138546:31518536
cp_intellij_t_nes:31548657
jf4hg949:31526829
nes-curr-leftover-1500:31538366
ahp-both-windows:31556933
h561g132:31533256
sessions_3:31532893
chatquotatrajectorynudge-enabled:31548767
ihg5j128:31534457
f412h606:31551416
7g2b5551:31542111
5fe6f778:31554331
allow-none:31555437
fd5dc207:31551400
c7c27ce7:31554789
nes-gb3-4k:31554347
8hc4g144:31558143
1532g621_copy:31554320
treatment-23-1:31555779
unuse_dynamic_mcp:31555281
switchtoauto:31559321
vrbsty_tr:31561058
session-archive:31558132
18bic794_t_pref:31563076
I can reproduce this in VS Code Insiders 1.148.0 on Linux, and moving the editor to another editor group is enough to trigger it:
- Stage a change and click Commit with an empty message box, so
COMMIT_EDITMSGopens in an editor. - Move the
COMMIT_EDITMSGeditor to another group (View: Move Editor into Right Group) or another window. - Right away the Commit button stops spinning and a notification says "Commit operation was cancelled due to empty commit message". The message you then type and save is never committed.
A move opens the editor in the target group and closes it in the source group. The git extension treats that close as "finished editing", so git continues with the still-empty message.
https://github.com/user-attachments/assets/62145b12-cb86-4eff-adf6-751c8112b378
🤖 Authored with GitHub Copilot on behalf of @lszomoru.