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

stacklok / toolhive / 26898478851
66%

Build:
DEFAULT BRANCH: main
Ran 03 Jun 2026 04:35PM UTC
Jobs 1
Files 747
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

03 Jun 2026 04:29PM UTC coverage: 65.866% (+0.009%) from 65.857%
26898478851

push

github

web-flow
Add lazy mode to thv llm setup (#5427)

* Add lazy mode to llm Setup that skips OIDC login

The inline OIDC browser login in "thv llm setup" cannot complete in
unattended provisioning contexts (e.g. an MDM profile configuring a
fleet of laptops at first login), where no human is present to finish
the callback.

Add a lazy parameter to llm.Setup that skips only the interactive login.
Tool detection, config-file patching, and config persistence still run,
so the on-disk result is identical to a normal setup except that no OIDC
token is obtained yet — login is deferred to first gateway access. The
sole call site passes false for now; the --lazy CLI flag is wired in a
later change.

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

* Add --lazy flag and make llm token interactive

Wire the lazy parameter added to llm.Setup to a new --lazy flag on
"thv llm setup", so unattended provisioning can configure tools without
the interactive OIDC browser login.

For deferred login to be transparent, "thv llm token" now builds an
interactive token source: on a genuine cache miss it launches the same
OIDC browser flow setup would have run, while a cached or refreshable
token is still printed without prompting. This is what signs the user in
on first use after a lazy setup, with no extra command to run.

Regenerate CLI docs for the new flag and updated token help.

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

* Widen LLM proxy per-request token-fetch timeout

The proxy's per-request token fetch used a 10-second timeout. After a
lazy setup, the first request through the proxy drives the interactive
OIDC browser login via the token source, and 10 seconds is far too short
for a human to complete it — the request would be cut off mid-login.

Introduce a tokenFetchTimeout constant set to 3 minutes. Once a token is
cached, subsequent requests are served from cache and return well within
the bound, so only the initial login ever ... (continued)

14 of 25 new or added lines in 3 files covered. (56.0%)

7 existing lines in 2 files now uncovered.

66414 of 100832 relevant lines covered (65.87%)

61.47 hits per line

Uncovered Changes

Lines Coverage ∆ File
11
17.52
-0.39% cmd/thv/app/llm.go

Coverage Regressions

Lines Coverage ∆ File
5
71.85
-1.85% pkg/ignore/processor.go
2
56.68
-0.18% pkg/workloads/manager.go
Jobs
ID Job ID Ran Files Coverage
1 26898478851.1 03 Jun 2026 04:35PM UTC 747
65.87
GitHub Action Run
Source Files on build 26898478851
  • Tree
  • List 747
  • Changed 9
  • Source Changed 3
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26898478851
  • 6ebadafc on github
  • Prev Build on main (#26884272430)
  • Next Build on main (#26901868382)
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