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

stacklok / toolhive / 40766101900
73%

Build:
DEFAULT BRANCH: main
Ran 28 Oct 2026 08:52PM UTC
Jobs 1
Files 986
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

28 Oct 2026 08:45PM UTC coverage: 72.06% (+0.04%) from 72.022%
40766101900

push

github

web-flow
Add --scopes flag to thv llm setup and config set (#6964)

* Add --scopes flag to thv llm setup and config set

The gateway token is requested with only the default OIDC scopes
(openid, offline_access), and there was no way to ask for more. A gateway
or a companion API that requires a specific scope (for example a
requiredScope on the token issuer) rejected the token, and the only
workaround was editing config.yaml by hand.

--scopes adds scopes on top of the defaults, so the defaults cannot be
dropped by accident. Omitting the flag keeps the current scopes, and an
empty value resets to the defaults. Re-running with a different list
replaces the earlier extras rather than accumulating them.

A refresh-token grant returns only the scopes the token was first issued
with, so a changed list reaches a signed-in user only through a fresh
login. setup and config set therefore clear the cached tokens when the
scopes change, and leave them alone when they do not, so re-running the
same command stays browser-free.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Regenerate CLI docs for the --scopes flag

The generated CLI reference did not include the new flag, which fails the
generated-documentation check. The flag help now also states that a changed
scope list clears the cached tokens, rather than asking the user to sign in
again.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Wrap the --scopes help text to satisfy the line-length lint

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

* Request offline_access plus the given scopes and clear tokens after validation

--scopes no longer forces openid. It requests offline_access, which the
provider needs to return a refresh token, followed by the scopes given, so a
hand-edited scope list without openid keeps working. An empty value stores
nothing and the default scopes apply again.

Clearing the cached tokens for a changed scope list moves into pkg/llm so both
commands decide... (continued)

57 of 67 new or added lines in 3 files covered. (85.07%)

13 existing lines in 4 files now uncovered.

90636 of 125779 relevant lines covered (72.06%)

130.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
72.84
0.04% cmd/thv/app/llm.go
4
93.75
-0.82% pkg/llm/manage.go
2
90.32
-0.07% pkg/llm/setup.go

Coverage Regressions

Lines Coverage ∆ File
6
72.34
-6.38% pkg/secrets/keyring/keyctl_linux.go
4
63.89
4.27% pkg/workloads/manager.go
2
73.19
-0.27% pkg/transport/proxy/streamable/streamable_proxy.go
1
72.84
0.04% cmd/thv/app/llm.go
Jobs
ID Job ID Ran Files Coverage
1 40766101900.1 28 Oct 2026 08:52PM UTC 986
72.06
GitHub Action Run
Source Files on build 40766101900
  • Tree
  • List 986
  • Changed 7
  • Source Changed 3
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40766101900
  • 20bc1a1d on github
  • Prev Build on main (#40759288492)
  • Next Build on main (#40898763317)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc