8 Commits
Author SHA1 Message Date
5e8937981d Release — suppress Windows git console windows (#6534) (#7115)
* fix: suppress console windows for git subprocess calls on Windows

On Windows, every git.exe spawned by the WebUI (update checks,
version detection, workspace git info, rollback inspection,
worktree management) creates a visible console window. When
Windows Terminal is the default terminal, each short-lived git
process opens a new tab. Combined with the 60-second version-skew
monitor polling /api/settings and the boot-time update check, this
produces a flood of flashing terminal tabs.

Root cause: subprocess.run() calls in api/updates.py, api/rollback.py,
api/worktrees.py, and api/workspace.py did not pass
creationflags=CREATE_NO_WINDOW on Windows. api/workspace_git.py
already had the fix (#5692); these four files were missed.

Backend fix:
- Add _windows_hide_flags() helper to each affected module
  (mirrors the existing pattern in api/workspace_git.py)
- Pass creationflags=_windows_hide_flags() to all git
  subprocess.run() calls (10 call sites across 4 files)

Frontend fix (prevent timeout->retry cascades):
- Increase update-check timeout from 30s/60s to 300s (5 min)
- Increase /api/settings fetches from 30s to 60s
- Increase /api/git-info fetch from 30s to 60s

The backend git fetch to GitHub can take 15s per repo; with both
WebUI and Agent repos checked sequentially plus other git calls,
the total easily exceeds the old 30s default frontend timeout,
triggering the api() wrapper auto-retry (3 attempts) and
amplifying the git process flood.

* [verified] fix: address Windows git subprocess review

---------

Co-authored-by: ya1yi2fa3 <ya1yi2fa3@users.noreply.github.com>
Co-authored-by: n <a@n>
2026-08-18 04:25:26 +00:00
Rod Boev 2e39bb8418 fix(#5884): focus composer after URL prefill 2026-07-10 11:04:44 -04:00
Rod Boev 6b9686d5ae fix(#4961): preserve authenticated drafts without starting a session 2026-06-30 14:31:28 -04:00
Rod Boev faed296819 fix(#4961): keep URL boot prefill draft-only 2026-06-29 10:03:36 -04:00
Rod Boev 71cd69cfbf fix(#4961): honor send query prefill flag 2026-06-29 09:52:43 -04:00
Rod Boev 1bd9e52e5f test(#4961): lock the guard ordering to the rebased boot flow 2026-06-29 09:52:43 -04:00
Rod Boev 93d356c0d4 fix(#4961): preserve prefill on zero-message session restore 2026-06-29 09:52:43 -04:00
Rod Boev ac5a849301 feat(#4961): support URL query prefill for browser search 2026-06-29 09:52:43 -04:00