Repository navigation
fix(tests): restore sticky model fixture typecheck - #130441
Merged
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
steipete
marked this pull request as ready for review
August 26, 2026 21:57
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 outersatisfies OpenClawConfigcheck validates compatibility without changing that inferred list type. Declare the agent list at its producer using the canonicalAgentConfig[]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
54db7d4f99e8286fa26367151db3f3a34fbe08b0before edits.node scripts/run-tsgo.mjs -b test/tsconfig/tsconfig.core.test.gateway-other.json --builders 1removes 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.node scripts/run-vitest.mjs src/gateway/server-methods/sessions-mutations.sticky-model.test.ts src/agents/sticky-model-selection.test.tspasses 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.tspasses. Targeted formatting andgit diff --checkpass.node scripts/check-changed.mjs -- src/gateway/server-methods/sessions-mutations.sticky-model.test.tsrun passes all 17 preceding guards, then stops at the same older-dependency core-test type errors; targeted typed lint was run separately and passes.8a9dbadd341a2f3ecf03c7a2ace09eb69bffd259, including the complete test-types job and requiredopenclaw/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.