Git no longer flashes terminal windows on Windows

An Obeya started without a terminal of its own opened a window for every git call it made, and each one took the keyboard focus. Now every program Obeya starts runs hidden.

Measured: the same git calls, before and after

Before
29

windows shown for 9 git calls from a process without a console, as Obeya runs when started detached

After
0

windows for the same 9 git calls with the fix

On the real desktop this afternoon

ObeyaWhat it didTerminal windows
Scratch Obeya of another card (port 4484, code before the fix)5 minutes of normal work36 (22 traced straight to its git calls)
Scratch Obeya with the fix (port 4482)40 requests that each run git, in 30 s0
The owner's Obeya (started from its cmd window)57 git calls in the same 5 minutes0

Counted with a Windows event hook that logs every window that becomes visible, with the process behind it. Windows Terminal is the default terminal here, so each git call opened a whole Terminal window, which grabbed the focus.

Why it happened

What changed

Good to know