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

stacklok / toolhive / 29504568541
68%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2026 02:05PM UTC
Jobs 1
Files 799
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

16 Jul 2026 01:59PM UTC coverage: 68.077% (-0.05%) from 68.128%
29504568541

push

github

web-flow
Add Bedrock compatibility flag to thv llm setup (#5832)

* Add Bedrock compatibility flag to thv llm setup

Configuring Claude Code against an LLM gateway that forwards to AWS
Bedrock previously required hand-editing settings.json: Bedrock rejects
Claude Code's experimental anthropic-beta headers, and Bedrock-style
model IDs must be pinned per tier. This adds a --bedrock-compat flag to
"thv llm setup" (and "thv llm config set") that writes
CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 and the three per-tier model IDs
into ~/.claude/settings.json.

The flag reuses the existing ClearWhenEmpty key-spec mechanism, so
teardown, revert, and idempotent re-runs work with no new writer. The
setting is persisted so a later plain "thv llm setup" keeps it. --models
overrides the default us.anthropic.* IDs (mapped to tiers by matching
haiku/opus/sonnet in the ID), and --enable-1m appends the [1m] suffix to
opus/sonnet to opt into the 1M context window on Bedrock.

Bedrock keys only attach to Claude Code; the flag is a no-op for other
clients and warns when Claude Code is not among the configured tools.

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

* Address Bedrock review: dedupe flags, fix stale warning

Resolves the panel review on #5832:

- Single source of truth for --models: promote it from BedrockConfig to
  top-level Config.Models so the credential-helper path (Claude Desktop
  inferenceModels) and the Bedrock tier mapping read one persisted value.
  A plain re-run no longer drops the Claude Desktop model list.
- Warn (not silently ignore) --enable-1m without --bedrock-compat.
- Report duplicate-tier --models overrides instead of silently dropping
  the clobbered entry (last still wins).
- Guard against a doubled [1m] suffix when an override already carries it.
- Extract addLLMConnectionFlags and applyChangedLLMFlags helpers shared by
  "config set" and "setup".

Also fix a warning that fired on every setup once bedrock-compat was
persis... (continued)

135 of 158 new or added lines in 4 files covered. (85.44%)

89 existing lines in 6 files now uncovered.

73797 of 108402 relevant lines covered (68.08%)

64.6 hits per line

Uncovered Changes

Lines Coverage ∆ File
16
69.93
1.04% cmd/thv/app/llm.go
5
94.25
-5.75% pkg/llm/manage.go
2
83.87
2.13% pkg/llm/setup.go

Coverage Regressions

Lines Coverage ∆ File
70
61.52
-6.04% pkg/workloads/manager.go
6
20.11
-3.45% pkg/client/manager.go
5
0.0
-100.0% pkg/workloads/sysproc_unix.go
3
73.79
-2.91% pkg/state/local.go
3
64.29
-4.29% pkg/state/runconfig.go
2
82.29
-0.21% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 29504568541.1 16 Jul 2026 02:05PM UTC 799
68.08
GitHub Action Run
Source Files on build 29504568541
  • Tree
  • List 799
  • Changed 16
  • Source Changed 7
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #29504568541
  • 30fb5d2c on github
  • Prev Build on main (#29492435561)
  • Next Build on main (#29512476220)
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