Skip to content

refactor: drop obsolete async resolution opt-ins - #113234

Merged
steipete merged 1 commit into
mainfrom
codex/z-todo-triage
Jul 24, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/z-todo-triage

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Agent and Gateway utility-model callers still passed useAsyncModelResolution: true even 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/** and src/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

  • LOC: +2/-9 across 6 files (production +0/-4; tests +2/-5; net -7).
  • 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.

@steipete
steipete marked this pull request as ready for review July 24, 2026 05:42
@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime agents Agent runtime and tooling size: XS maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper status

@clawsweeper

clawsweeper Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper status:

  • Current PR: 113234
  • Branch: codex/z-todo-triage
  • ClawSweeper PR: no
  • Automerge: not-enabled
  • Automerge job: jobs/openclaw/inbox/automerge-openclaw-openclaw-113234.md
  • Merge state: BEHIND
  • Checks: SUCCESS:79 SKIPPED:44 FAILURE:1 NEUTRAL:1
  • Check blockers: actionlint:FAILURE

@steipete
steipete force-pushed the codex/z-todo-triage branch from 88332c3 to 9ca42b9 Compare July 24, 2026 07:39
@steipete
steipete merged commit d79537d into main Jul 24, 2026
117 checks passed
@steipete
steipete deleted the codex/z-todo-triage branch July 24, 2026 07:51
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling gateway Gateway runtime maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant