Repository navigation
Closed
Labels
app/clientPackage: client (pkgs/ or apps/ in this repo)Package: client (pkgs/ or apps/ in this repo)area/ciCI, workflows, and build infrastructureCI, workflows, and build infrastructureeffort/xsTrivial: expected under 30 minutes of workTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationpriority/highImportant and time-sensitiveImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Description
Problem
The generated client types have drifted from the schema: cache_format was declared on model-route targets and routes in the schema, but the generated client was never regenerated. The CI step "Check generated client" therefore fails on main and on every PR's linux unit job, even when all tests pass.
Evidence (verified 2026-10-28 on main 3cea2d2eb3 by reading the code)
packages/schema/src/config/model-routes.ts:34— the routeTargetstruct declarescache_format: CacheFormat.pipe(optional).packages/schema/src/config/model-routes.ts:226— theRouteclass also declarescache_format: CacheFormat.pipe(optional).- Both were added by commit
bb756af281— "feat(core): declare cache_format on routes and targets, propagate to compatibility.cacheFormat" (2026-10-28, for feat(routing): prompt cache optimization across model pools via compatibility.cacheFormat #9). packages/client/src/promise/generated/types.ts:373-382— the generatedConfigModelRouteTargetunion has nocache_formaton any member.packages/client/src/promise/generated/types.ts:1027+— the generated route object insideConfigModelRouteslikewise has nocache_format.packages/client/package.json:31—check:generatedisbun run generate && git diff --exit-code -- src/promise/generated src/effect/generated src/effect/api, so any drift is a hard failure..github/workflows/test.yml:213-216— the "Check generated client" step runs in the linux unit job.- Observed live 2026-10-29 by queue lane A on PR test(tui): provide Route context in permission input-scope tests #789 (run 40794972979, job 123189118124): regenerating produces a diff in
packages/client/src/promise/generated/types.ts—ConfigModelRouteTargetgainscache_format?: ModelCacheFormatplus type reordering — while the PR's tests pass. Same drift class as closed fix(client): generated client is stale — check:generated fails on main (ConfigEntry aliases missing) #450 / fix(client): generated client stale after PR #468 — check:generated red on main #483 / fix(client): generated client stale on main — check:generated red (ConfigModelRoutes limit missing from committed types) #676; no open issue tracks this instance.
Why it matters
- Every PR's linux unit job is red for a reason unrelated to the PR, which trains everyone to ignore the job and hides real failures in the noise.
- Client consumers cannot see or set
cache_formaton route targets/routes through the typed client even though the schema and server accept it (feat(routing): prompt cache optimization across model pools via compatibility.cacheFormat #9's prompt-cache routing depends on this field).
Acceptance criteria
- Run the client generator (
bun run generateinpackages/client) and commit exactly what it emits — no hand-edits inside generated files. -
bun run check:generatedinpackages/clientpasses clean on the resulting tree. - Generated
ConfigModelRouteTarget(object form) and theConfigModelRoutesroute object both exposecache_format?: ModelCacheFormat. - CI "Check generated client" step is green on the fixing PR and on
mainafterwards.
Metadata
Metadata
Assignees
Labels
app/clientPackage: client (pkgs/ or apps/ in this repo)Package: client (pkgs/ or apps/ in this repo)area/ciCI, workflows, and build infrastructureCI, workflows, and build infrastructureeffort/xsTrivial: expected under 30 minutes of workTrivial: expected under 30 minutes of workkind/ciCI/CD pipelines, workflows, and build automationCI/CD pipelines, workflows, and build automationpriority/highImportant and time-sensitiveImportant and time-sensitivesource/creatorFiled by the new-issue-creator jobFiled by the new-issue-creator jobstatus:donetask/small-fixQueue packet kind: bounded fix with reproduction and targeted testsQueue packet kind: bounded fix with reproduction and targeted tests
Activity
developing-today commentedon Oct 29, 2026
OPENCODE-178
dezren39 commentedon Oct 29, 2026
🤖 Agent note · filed
dezren39 commentedon Oct 29, 2026
🤖 Dispatcher binding · openchamber-dispatcher run 2026-10-28 21:45 CDT
small_fix) ↔ issue fix(client): generated client types drifted from schema — cache_format missing on route targets and routes, check:generated red on main #813 (fix(client): generated client types drifted from schema — cache_format missing on route targets and routes, check:generated red on main)ses_e5e7a6d6875ffeDxWg412Z5vBH(laptop OpenChamber, agent build) — the launch POST returned this id withpromptDispatched: true, and the session activity registry independently shows it busy in the worktree below.opencode-go/gpt-6-luna— OPEN; mechanical, well-specified regen, effort/xs, timebox 20m). Fresh quota read this run ~21:47 CDT: opencode-go 5h 3.02% (reset Thu Oct 29 1:53 AM) / weekly 30.80% / monthly 77.88% — plan quota only, never PAYG.~/git/fleet/2997-813-generated-client-regenon the laptop, branchqueue/2997-813-generated-client-regen(from freshly fetched origin/main a8f2806)node_modules/ Bun cacheeffect/Deferred, and the session is installing from the committed lockfile and rerunning the generator, explicitly scoping itself to the client outputs in this task and to issue fix(client): generated client types drifted from schema — cache_format missing on route targets and routes, check:generated red on main #813. The queue task itself remainsqueuedin the fleet queue (no targeted claim/binding verb exists yet — fix(script): stats.ts fetches have no deadline and buffer unbounded .json() bodies — PostHog, npm downloads, and the GitHub releases pager #1337/fix(changelog): read upstream changelog through a 1 MiB capped reader #1272); the owning lane reconciles/harvests from here, and the babysitter shepherds the session.dezren39 commentedon Oct 29, 2026
Checkpoint: regenerated the client outputs from the schema and committed the generated additions of
cache_format?: ModelCacheFormaton bothConfigModelRouteTargetand theConfigModelRoutesroute object. No generated files were hand-edited.Verification:
bun run generatecompleted twice with stable output;git diff --checkpassed. I did not runbun run check:generatedlocally per the task's test-location constraint, so CI verification is pending.PR: #815
dezren39 commentedon Oct 29, 2026
Blocker update for PR #815: GitHub Actions has not started its jobs. The check wait timed out after 1,806 seconds; the PR currently shows 1/12 checks passed, 11 pending, and an overall FAILURE state, but
github.runreports the test, typecheck, Nix, and standards jobs as all still queued with no failed steps or annotations. One duplicatepr-standardsrun was cancelled while a replacement remains queued. No review findings are open.I cannot verify
check:generatedwithout CI starting, and the task says not to run tests in the sandbox, so I’m parking here rather than running it locally or changing code. Please check the repository’s Actions runner/queue availability, then rerun or allow the existing workflows to proceed. PR: #815dezren39 commentedon Oct 29, 2026
🤖 Agent note · bound
dezren39 commentedon Oct 29, 2026
Completed by Lane A (task 2997): PR #815 merged (merge commit 13bbbac). Gating evidence: Linux unit job 'Check generated client' step SUCCESS and unit tests SUCCESS; typecheck/build PASS; diff is only the 2 generated client files, both gaining cache_format?: ModelCacheFormat. Remaining red on that PR was unrelated/pre-existing: 'Check generated documentation' is #829 (services/www OpenAPI, separate fix in flight), Windows unit had 1 unrelated browser/MCP test failure, and the e2e base jobs failed their browser-results aggregation while the app shards passed.
agent-note:v1 lane=repo-queue-worker-shift-opencode task=2997 state=complete pr=815