GeezerVison is showing github.com — CI: models-snapshot workflow never runs on this fork — gated to upstream, targets nonexistent dev branch, bundled catalog already stale · Issue #109 · developing-today-forks/opencode
CI: models-snapshot workflow never runs on this fork — gated to upstream, targets nonexistent dev branch, bundled catalog already stale #109DescriptionSummary
The models-snapshot workflow — the only mechanism that refreshes the bundled models.dev catalog snapshot (packages/core/src/models-dev/snapshot.txt, the boot-time floor for the model catalog) — has never run on this fork. Every scheduled run is skipped, and even if it weren't, the workflow targets a branch that does not exist here. The bundled snapshot is already measurably stale.
Evidence (all on main 4e948420ce, checked 2026-10-19)
The workflow is gated to upstream and aimed at a nonexistent branch:
.github/workflows/models-snapshot.yml:22 — job condition: if: github.repository == 'anomalyco/opencode'. This repo is developing-today/opencode, so the job is skipped on every run.
.github/workflows/models-snapshot.yml:14 — it is scheduled twice daily (cron: "0 0,12 * * *"), so it produces a skipped run every 12 hours.
.github/workflows/models-snapshot.yml:31 — checkout uses ref: dev; .github/workflows/models-snapshot.yml:64-65 — the commit step runs git pull --rebase --autostash origin dev and git push origin HEAD:dev. There is no dev branch on this fork (GitHub API: GET /repos/developing-today/opencode/branches/dev → 404; the default branch is main), so removing the gate alone would fail at checkout.
Run history confirms it never executes:
gh run list --workflow models-snapshot.yml — every run is completed/skipped, including the most recent scheduled runs 39199148665 (2026-10-19T04:22Z), 39141892764 (2026-10-18), 39096346980 (2026-10-18), back through 2026-10-09.
The snapshot is the code's offline floor, and it is already behind:
packages/core/src/models-dev.ts (comment at the bundled snapshot, ~line 283) — the snapshot is "the boot-time floor for the catalog when no cache entry exists and fetching is disabled or unavailable", refreshed via packages/core/script/update-models-snapshot.ts (also packages/core/package.json:25).
- Repo-wide search:
.github/workflows/models-snapshot.yml is the only automated refresh path; nothing else runs the script.
- Measured today: the bundled snapshot parses to 230 providers / 5,679,551 bytes; live
https://models.opencode.ai/api.json parses to 232 providers / 5,810,832 bytes. Providers commandcode and reflection are live but missing from the bundled floor, so an offline/first-boot user on this fork never sees them.
One more blocker for the push step:
.github/workflows/models-snapshot.yml:40 uses ./.github/actions/setup-git-committer, which requires the OPENCODE_APP_ID / OPENCODE_APP_PRIVATE_KEY vars to mint an app token. gh variable list for this repo returns nothing — the same unconfigured fork app credentials already noted as blocking in CI: replace nix-eval and nix-hashes with a check that can actually complete #49. A fix must either configure those vars or push with a credential this fork actually has (the workflow already declares top-level permissions: contents: write, so the default GITHUB_TOKEN is a candidate — noting that commits pushed with it do not trigger further workflows).
Why it matters
The snapshot is not cosmetic: it is what the catalog falls back to when fetching is disabled or unavailable, and what a first boot decodes before any refresh. On this fork it can only drift further behind models.dev — new providers and models silently absent for offline users — while the twice-daily skipped runs make the workflow look alive in the Actions list.
Acceptance criteria
- The workflow actually executes on this fork on its schedule (a scheduled run completes with the refresh job run, not skipped), targeting the fork's real default branch (
main): checkout ref, rebase target, and push target all name a branch that exists.
- The push credential is one configured for this fork (app vars configured, or the workflow switched to a credential it already has, with the tradeoff recorded in the PR).
- After one successful run (or a manual
workflow_dispatch), packages/core/src/models-dev/snapshot.txt matches the live catalog's provider set (today: includes commandcode and reflection), and the refresh script's ≥100-provider guard still protects the commit.
- Deliberately-gated upstream workflows (deploy/publish/stats) are out of scope — this issue is only about the snapshot refresh, whose output is an artifact this fork's own code consumes.
Filed by the new-issue-creator job; left filed-only because the push-credential choice (configure the fork's GitHub App vars vs switch to GITHUB_TOKEN) is a maintainer decision. Activitydezren39 commented on Oct 21, 2026 Decision for the fix (following this fork's established precedents):
Run the refresh on this fork, with the #189 credential fallback.
dezren39 commented on Oct 21, 2026 Fixed by PR #252 (squash 9248c10) and verified end-to-end after merge:
- Dispatched
models-snapshot manually on the merged main: run 39693521579 completed success (not skipped — the upstream-only gate is gone).
- Step outcomes confirm the credential path taken on this fork:
Setup git committer (app token) skipped because vars.OPENCODE_APP_ID is unset; Setup git committer (fallback token) success; Refresh snapshot and Commit changes success.
- The run pushed commit 7287e50 (
chore(core): refresh bundled models.dev snapshot) to main itself.
- Snapshot on merged main now parses to 232 providers and includes both
commandcode and reflection (pre-fix: 230, both missing). The refresh script's >=100-provider guard is untouched.
All four acceptance criteria are now satisfied live, including criterion 3. The twice-daily schedule will exercise the same path from here on.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|