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

stacklok / toolhive / 28114966800
67%

Build:
DEFAULT BRANCH: main
Ran 24 Jun 2026 04:57PM UTC
Jobs 1
Files 762
Run time 3min
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

24 Jun 2026 04:51PM UTC coverage: 67.056% (-0.07%) from 67.121%
28114966800

push

github

web-flow
Remove dead legacy session-registration path (#5622)

Now that #5445 (PR #5556) merged, Serve is the sole *Server constructor and always sets the
core, so the legacy `s.core == nil` session path is unreachable dead code. Stage 1 of the
dead-code removal tracked in #5621:

- handleSessionRegistrationImpl: drop the `if s.core != nil` conditional and the legacy
  GetAdaptedTools/GetAdaptedResources registration tail — registration is now unconditionally
  injectCoreSessionCapabilities.
- lazyInjectSessionTools: re-derive via serveSessionTools unconditionally (drop the
  GetAdaptedTools fallback).
- Delete backend_enrichment.go (+test): withBackendEnrichment was guarded to s.core == nil,
  a no-op on the Serve path.
- Delete the now-orphaned Manager.GetAdaptedTools/GetAdaptedResources/GetAdaptedPrompts and
  the two SessionManager interface methods. GetAdaptedPrompts was never wired (prompts
  unsupported), so it was already dead.

The discovery middleware + context seam, the session-factory aggregation mirrors, and the
server.New signature change are deferred to the follow-up stages in #5621.

Part of #5621.

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

13 of 13 new or added lines in 1 file covered. (100.0%)

36 existing lines in 4 files now uncovered.

69376 of 103460 relevant lines covered (67.06%)

66.43 hits per line

Coverage Regressions

Lines Coverage ∆ File
26
73.74
-13.13% pkg/vmcp/session/types/mocks/mock_session.go
6
71.7
-1.93% pkg/runner/config.go
2
93.94
-6.06% pkg/foreach/foreach.go
2
77.95
-4.51% pkg/vmcp/server/sessionmanager/session_manager.go
Jobs
ID Job ID Ran Files Coverage
1 28114966800.1 24 Jun 2026 04:57PM UTC 762
67.06
GitHub Action Run
Source Files on build 28114966800
  • Tree
  • List 762
  • Changed 9
  • Source Changed 2
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28114966800
  • 799b4222 on github
  • Prev Build on main (#28113988573)
  • Next Build on main (#28119447922)
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