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

stacklok / toolhive-studio / 24345950005 / 1
70%
main: 70%

Build:
DEFAULT BRANCH: main
Ran 13 Apr 2026 01:30PM UTC
Files 445
Run time 27s
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

13 Apr 2026 01:27PM UTC coverage: 63.492% (+0.07%) from 63.419%
24345950005.1

push

github

web-flow
feat: show dedicated error modal when another ToolHive server is already running (#1979)

* feat: show dedicated error modal when another ToolHive server is already running

Detect the "already running" error from thv stderr and display a specific
error screen instead of the generic "Oops, something went wrong" modal.

Closes #1977

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix: re-fetch toolhive status in health check to fix race condition

The status was fetched once before the health check and passed as a
parameter. By the time the health check failed, the process had already
exited and set processError, but the stale snapshot missed it.

Now checkHealth re-fetches the status in its catch block, correctly
picking up errors like ALREADY_RUNNING. Also updates the error modal
text to mention "ToolHive HTTP server (thv serve)".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor: reorder guards to check health before registry auth

Health check is more fundamental — if the server is down, registry
auth redirect is wasted work. Moving checkHealth before
handleRegistryAuthRedirect ensures we short-circuit early with
the appropriate error modal.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* test: add tests and HealthCheckErrorCause type for already-running error

Address Copilot review comments:
- Add HealthCheckErrorCause type for type-safe error cause handling
- Add RootErrorComponent test for ALREADY_RUNNING branch
- Add toolhive-manager tests for stderr-driven processError detection
- Simplify cause checks in RootErrorComponent using typed cause

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

3493 of 5801 branches covered (60.21%)

5601 of 8522 relevant lines covered (65.72%)

121.39 hits per line

Source Files on job 24345950005.1
  • Tree
  • List 445
  • Changed 7
  • Source Changed 5
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 24345950005
  • be6e4133 on github
  • Prev Job for on main (#24341875104.1)
  • Next Job for on main (#24357802143.1)
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