• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive-studio / 26939594552
71%
main: 71%

Build:
Build:
LAST BUILD BRANCH: fix/auto-2316
DEFAULT BRANCH: main
Ran 04 Jun 2026 08:18AM UTC
Jobs 1
Files 522
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

04 Jun 2026 08:13AM UTC coverage: 70.525% (+0.02%) from 70.508%
26939594552

Pull #2304

github

peppescg
fix(startup): eliminate cold-start window flash by awaiting socket readiness

Three coupled changes that together remove the dark-window flash users see
between launching the app and the renderer becoming interactive.

1. `startToolhive()` now actually awaits a real socket connection (via
   `net.connect()` polling, cross-platform for UNIX sockets and Windows
   named pipes) before resolving. Previously the function had a missing
   `return` on its `Sentry.withScope` wrapper and only awaited `spawn()`,
   which returns synchronously — so the renderer could fire its first
   `getHealth` request while thv was still binding the socket, producing
   an ENOENT in main logs and a retry-driven black flash on cold start.

2. `BrowserWindow` is now constructed with a `backgroundColor` that mirrors
   the Tailwind theme `--background` token (`#f9faf9` light / `#2e2e2e`
   dark, sampled via `nativeTheme.shouldUseDarkColors`). Without this the
   OS shows a default white/black window for the brief gap between window
   creation and the first paint of `index.html`.

3. `renderer/index.html` now contains a static splash painted from the
   first parse of the HTML, before the Vite bundle is fetched and React
   mounts. Colors mirror the Tailwind theme so the transition into the
   first React paint is seamless. `createRoot().render()` replaces the
   splash contents on first commit.
Pull Request #2304: fix(startup): eliminate cold-start window flash by awaiting socket readiness

5213 of 8012 branches covered (65.06%)

22 of 28 new or added lines in 2 files covered. (78.57%)

5 existing lines in 1 file now uncovered.

7731 of 10962 relevant lines covered (70.53%)

115.23 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
85.94
-1.49% main/src/toolhive-manager.ts

Coverage Regressions

Lines Coverage ∆ File
5
85.94
-1.49% main/src/toolhive-manager.ts
Jobs
ID Job ID Ran Files Coverage
1 26939594552.1 04 Jun 2026 08:18AM UTC 522
70.53
GitHub Action Run
Source Files on build 26939594552
  • Tree
  • List 522
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #26939594552
  • Pull Request #2304
  • PR Base - main (#26939312166)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc