Skip to content

fix(tests): restore sticky model fixture typecheck - #130441

Merged
steipete merged 1 commit into
mainfrom
codex/qa-sticky-model-fixtures-20260826
Aug 26, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa-sticky-model-fixtures-20260826

Conversation

@steipete

@steipete steipete commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Closes #130440.

What Problem This Solves

Resolves a problem where current-main core test-type CI fails on two sticky-model Gateway fixture assignments, blocking otherwise unrelated PRs. This is a maintainer-directed repair of the failure introduced by #127813.

Why This Change Was Made

The fixture's heterogeneous list inferred a narrower shape than the mutable AgentConfig[] used by real configuration. The outer satisfies OpenClawConfig check validates compatibility without changing that inferred list type. Declare the agent list at its producer using the canonical AgentConfig[] contract; cloned expected configurations can then receive the tested model updates.

All original test cases, value assertions, and clone isolation remain unchanged. No casts, checker waivers, dependency changes, or production changes. Production LOC: +0/-0. Tests: +7/-4.

Provenance: the failing expectations were introduced by #127813 (ce4a680544a3502f98d3c9dc49ab9b9e77e7c43b), authored by @Marvinthebored and merged by @steipete on 2026-08-26. This repair changes only the test fixture's type ownership, not that feature's runtime contract.

User Impact

Restores the test-type gate for maintainers and contributors. No application, model-selection, authorization, configuration, protocol, or storage behavior changes.

Evidence

  • Before: the hosted core test-types job failed with TS2540 at sticky-model test lines 216 and 245. The same owning shard reproduced both errors locally on main 54db7d4f99e8286fa26367151db3f3a34fbe08b0 before edits.
  • After: node scripts/run-tsgo.mjs -b test/tsconfig/tsconfig.core.test.gateway-other.json --builders 1 removes both changed-file errors. The older local dependency installation still reports 11 unrelated Google, MarkdownIt, and Pi TUI type errors, so this is not claimed as a fully green local shard; fresh-install exact-head CI remains required before landing.
  • Focused runtime proof: node scripts/run-vitest.mjs src/gateway/server-methods/sessions-mutations.sticky-model.test.ts src/agents/sticky-model-selection.test.ts passes all 26 tests with one worker. An independent verifier repeated all 26 successfully and confirmed the same typecheck diagnostic reduction.
  • node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json src/gateway/server-methods/sessions-mutations.sticky-model.test.ts passes. Targeted formatting and git diff --check pass.
  • The actual node scripts/check-changed.mjs -- src/gateway/server-methods/sessions-mutations.sticky-model.test.ts run passes all 17 preceding guards, then stops at the same older-dependency core-test type errors; targeted typed lint was run separately and passes.
  • Authenticated Codex review of the complete final patch and owning type/runtime context reports no actionable findings through P2.
  • Exact-head CI run 33017620794 passes for 8a9dbadd341a2f3ecf03c7a2ace09eb69bffd259, including the complete test-types job and required openclaw/ci-gate. This fresh-install hosted proof resolves the local dependency-validation gap; no CI gate is bypassed.

AI-assisted maintainer repair. No live-provider proof is applicable to this test-only type correction.

@clawsweeper

clawsweeper Bot commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: XS maintainer Maintainer-authored PR labels Aug 26, 2026
@steipete
steipete marked this pull request as ready for review August 26, 2026 21:57
@steipete
steipete merged commit ce138ad into main Aug 26, 2026
170 of 178 checks passed
@steipete
steipete deleted the codex/qa-sticky-model-fixtures-20260826 branch August 26, 2026 22:09
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 26, 2026
* origin/main: (275 commits)
  fix(ai): require explicit compatible-provider endpoints (#130453)
  test(control-ui): guard the hand-mirrored theme --bg copies (#130444)
  fix(onboard): preserve the saved skills package manager (#130438)
  improve(worker): diagnose admission-deadline failures and widen daemon revalidation budget (#130435)
  fix(plugins): align diffs external install metadata (#130362)
  refactor(models): consolidate config normalization (#130439)
  fix(browser): accept common keyboard aliases (#130401)
  fix(release): refresh IMAP plugin baselines (#130351)
  fix(tests): type sticky model agent fixtures (#130441)
  fix(qa): track current Slack progress cards (#130354)
  feat(ui): refine the mobile composer (#130308)
  fix(ui): clarify gateway disconnect status in tab title (#130364)
  test(qa): await gateway startup before network probes (#130353)
  fix(qa): run Buzz profile scenarios with pooled credentials (#130316)
  fix(crabbox): keep the setup failure reason and name its phase (#130425)
  fix: dashboard tools target the wrong Gateway after admission (#130112)
  fix(ui): distinguish inherited model defaults from session pins (#120805)
  feat(feishu): let agents resend received stickers (#130374)
  refactor(models): prepare selection policy once (#130413)
  fix(ui): make dashboard side panels enter split view (#130426)
  ...

# Conflicts:
#	test/scripts/docker-build-helper.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: sticky model fixtures fail core test typecheck

1 participant