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

stacklok / toolhive / 31730302063
70%

Build:
DEFAULT BRANCH: main
Ran 13 Aug 2026 06:29PM UTC
Jobs 1
Files 876
Run time 2min
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 Aug 2026 06:21PM UTC coverage: 70.274% (+0.002%) from 70.272%
31730302063

push

github

web-flow
Reset the LLM config when the last tool is torn down (#6295)

* Clear Bedrock compat when tearing down Claude Code

Bedrock compat is persisted so a later plain "thv llm setup" keeps it,
but it applies to no client other than Claude Code. Tearing Claude Code
down therefore left the setting with no consumer, and only an explicit
--bedrock-compat=false could clear it. A subsequent setup — possibly
against a gateway that no longer forwards to Bedrock — silently re-pinned
the Bedrock model IDs and CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS the user
had just removed, which reads as setup forcing Bedrock unconditionally.

Clear the persisted Bedrock config when Claude Code is among the reverted
tools. Stickiness across ordinary re-runs is unchanged.

* Clear client-scoped LLM settings stranded by teardown

Bedrock compat was not the only persisted setting that could outlive the
client it configures. Models has the same shape: it is read only by Claude
Desktop and, under Bedrock compat, Claude Code, yet it survived a full
teardown and was silently re-applied by the next setup.

Replace the Bedrock-specific check with a registry of client-scoped
settings, each naming the clients that consume it. Teardown clears any
entry left with no consumer among the still-configured tools and reports
what it removed, so a later setup no longer re-applies settings the user
tore down. A setting is preserved while any of its consumers remains, so
Models outlives a Claude Code teardown when Claude Desktop is still set up.

Settings that apply to every client, such as TLSSkipVerify, are not
registered and are unaffected.

* Reset the LLM config when the last tool is torn down

Replace the per-setting stranded-value pruning with a single rule:
teardown resets the whole LLM config once no configured tool remains.

Settings like Bedrock compat and the model list are deliberately sticky so
an ordinary "thv llm setup" re-run keeps them. Nothing ended that
stickiness, so a value could ou... (continued)

17 of 20 new or added lines in 1 file covered. (85.0%)

11 existing lines in 4 files now uncovered.

84684 of 120505 relevant lines covered (70.27%)

98.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
83.73
-0.14% pkg/llm/setup.go

Coverage Regressions

Lines Coverage ∆ File
4
87.79
-2.33% pkg/transport/proxy/transparent/sse_response_processor.go
3
71.85
-1.11% pkg/ignore/processor.go
2
93.94
-6.06% pkg/foreach/foreach.go
2
94.77
-1.31% pkg/vmcp/composer/dag_executor.go
Jobs
ID Job ID Ran Files Coverage
1 31730302063.1 13 Aug 2026 06:29PM UTC 876
70.27
GitHub Action Run
Source Files on build 31730302063
  • Tree
  • List 876
  • Changed 11
  • Source Changed 2
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31730302063
  • 374c3068 on github
  • Prev Build on main (#31719683018)
  • Next Build on main (#31767103358)
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