Repository navigation
refactor: drop obsolete async resolution opt-ins - #113234
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 24, 2026 05:42
Contributor
Author
|
@clawsweeper re-review |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Contributor
Author
|
@clawsweeper status |
Contributor
|
🦞👀
|
steipete
force-pushed
the
codex/z-todo-triage
branch
from
July 24, 2026 07:39
88332c3 to
9ca42b9
Compare
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 25, 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.
What Problem This Solves
Agent and Gateway utility-model callers still passed
useAsyncModelResolution: trueeven though model resolution is lifecycle-backed and always asynchronous. Those obsolete opt-ins falsely suggested that synchronous resolution remained a supported choice and added redundant plumbing to each call site.Why This Change Was Made
This maintainer-commissioned LOC-reduction pass removes the redundant option from every caller inside the assigned
src/agents/**andsrc/gateway/**surface. The focused runtime test now states and proves the current invariant directly: asynchronous provider discovery is the default. The deprecated compatibility parameter remains because three callers outside this batch's ownership still use it.AI-assisted with Codex; the patch was manually scoped and verified against callers, plugin-SDK contracts, focused tests, changed gates, and autoreview.
User Impact
No user-visible behavior changes. Utility completions continue to resolve models asynchronously; the code now reflects that existing behavior without redundant opt-ins.
Evidence
node scripts/crabbox-wrapper.mjs run --provider blacksmith-testbox --timing-json --shell -- "corepack pnpm test src/agents/simple-completion-runtime.test.ts src/gateway/chat-tool-titles.test.ts src/gateway/session-observer.test.ts src/gateway/session-observer-ask.test.ts src/gateway/session-observer.terminal.test.ts src/gateway/worker-environments/inference-runtime.test.ts"— 124 tests passed across 6 files; Testbox run https://github.com/openclaw/openclaw/actions/runs/30069753931.node scripts/check-changed.mjs -- src/agents/simple-completion-runtime.test.ts src/gateway/chat-tool-titles.test.ts src/gateway/chat-tool-titles.ts src/gateway/session-observer-ask.ts src/gateway/session-observer.ts src/gateway/worker-environments/inference-runtime.ts— passed core/coreTests formatting, guards, API contract checks, typechecks, lint, and import cycles; Testbox run https://github.com/openclaw/openclaw/actions/runs/30069839334..agents/skills/autoreview/scripts/autoreview --mode uncommitted— clean; no accepted/actionable findings.git diff --check— passed.