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

stacklok / toolhive / 39439729051
73%

Build:
DEFAULT BRANCH: main
Ran 20 Oct 2026 02:37PM UTC
Jobs 1
Files 964
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

20 Oct 2026 02:29PM UTC coverage: 71.439% (+0.03%) from 71.414%
39439729051

push

github

web-flow
Enable Claude Code gateway model discovery (#6862)

* Enable Claude Code gateway model discovery

Claude Code's /model picker went stale against an LLM gateway: setup
pinned the three Bedrock tiers to model IDs hardcoded in pkg/llm, so a
gateway that added or retired a model forced users to re-run setup.
Customers reported this as a recurring annoyance.

Claude Code can discover a gateway's models itself (GET /v1/models on
each startup), and the gateway now serves the Anthropic models list, so:

- Set CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY=1 for Claude Code so new
  models the gateway advertises appear in the picker without re-running
  setup.
- Replace the hardcoded Bedrock tier defaults with per-family selection
  from the gateway's model list: for haiku/opus/sonnet/fable, pin the
  newest Bedrock-form ID, ranked by the version parsed from the ID (the
  gateway's created_at is identical across models and unusable). A
  --models entry still overrides its tier; an unpinned tier is left for
  Claude Code to resolve.
- Add a fourth tier (fable) and its ANTHROPIC_DEFAULT_FABLE_MODEL key.
- Warn, and leave tiers unpinned, when discovery fails or setup ran in
  lazy mode.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

* Harden Bedrock tier discovery for Claude Code

Address review feedback on the gateway-derived Bedrock pins:

- Accept version-first legacy Bedrock IDs. The old regex only matched
  the family-first layout (claude-haiku-4-5), so Claude 3.x IDs such as
  us.anthropic.claude-3-5-haiku-20241022-v1:0 and the major-only
  claude-sonnet-4-20250514-v1:0 were silently dropped, leaving a tier
  unpinned on gateways that serve only those. Replace the regex with a
  tokenizing parser that handles both layouts and ranks on
  [major, minor, releaseDate].

- Refuse --lazy --bedrock-compat for Claude Code unless --models is
  passed. Lazy mode never logs in, so it cannot discover the tiers;
  rather than write an empty, broken config it now ... (continued)

138 of 151 new or added lines in 3 files covered. (91.39%)

8 existing lines in 4 files now uncovered.

88133 of 123368 relevant lines covered (71.44%)

127.21 hits per line

Uncovered Changes

Lines Coverage ∆ File
13
89.55
0.47% pkg/llm/setup.go

Coverage Regressions

Lines Coverage ∆ File
3
76.19
-2.38% pkg/state/local.go
2
67.14
-2.86% pkg/state/runconfig.go
2
55.58
-0.52% pkg/transport/stdio.go
1
81.07
-0.12% pkg/vmcp/composer/workflow_engine.go
Jobs
ID Job ID Ran Files Coverage
1 39439729051.1 20 Oct 2026 02:37PM UTC 964
71.44
GitHub Action Run
Source Files on build 39439729051
  • Tree
  • List 964
  • Changed 14
  • Source Changed 5
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39439729051
  • 56fd4dfb on github
  • Prev Build on main (#39427607957)
  • Next Build on main (#39510645130)
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