Skip to content

fix(stats): show public specs for stealth models - #53381

Merged
adamdotdevin merged 1 commit into
devfrom
stats-stealth-public-metadata
Oct 6, 2026
Merged

adamdotdevin merged 1 commit into
devfrom
stats-stealth-public-metadata

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

No issue; raised in the data channel.

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Stealth models (STEALTH_MODELS: space-bunny, omen-alpha, union-alpha) aren't in catalog.json, so the model page overview showed Unknown for every spec. Their OpenCode listings in api.json already publish the specs, and the stats app already fetches that file for pricing.

buildModelCatalog now reads release_date, knowledge, limit, and modalities for stealth models from the opencode provider listing, falling back to opencode-go. The model page uses those specs only when no catalog entry exists. For space-bunny that gives Context 1M, Output 524K, Release Sep 2026, and Inputs Text, Image, and Video. Knowledge stays Unknown because the listing doesn't include it.

Scope is limited to the overview row. Stealth models still don't get a catalog entry, so their name, lab, pricing, comparisons, canonical paths, and agent-readable formats are unchanged. Other providers' listings for the same model (e.g. stealth/space-bunny-alpha on resellers) are ignored.

How did you verify your code works?

  • Added packages/stats/app/test/model-catalog.test.ts covering the stealth-model specs, opencode taking precedence over opencode-go, and stealth models staying out of the lab catalog
  • bun test and bun run typecheck in packages/stats/app
  • Built the catalog from live catalog.json and api.json: stealthSpecs contains only space-bunny with the values above, and the catalog still has no entry for it

Screenshots / recordings

Not rendered locally because the page needs the stats database.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Requested by: @adamdotdevin (Adam via Slack)

Stealth models are absent from the lab catalog, so their model page showed Unknown for every spec. Fill context, output, knowledge, release, and inputs from their public OpenCode provider listing.
@adamdotdevin
adamdotdevin merged commit 3f393d7 into dev Oct 6, 2026
10 checks passed
@adamdotdevin
adamdotdevin deleted the stats-stealth-public-metadata branch October 6, 2026 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant