Repository navigation
refactor(agents): split embedded runner model setup - #107646
Merged
Merged
Conversation
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 15, 2026
zooqueen
pushed a commit
to zooqueen/openclaw
that referenced
this pull request
Sep 11, 2026
This was referenced Oct 9, 2026
Merged
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.
Related: #72072
What Problem This Solves
The embedded-agent runner still mixed model discovery, route-aware harness selection, and prepared auth-plan construction into its retry orchestration. That made high-risk provider and authentication changes harder to review in isolation and left
run.tsat 4,402 lines.Why This Change Was Made
Extract model setup, harness route policy, and canonical auth-plan preparation into three focused modules while keeping the retry, recovery, and terminal-state loop visible in
run.ts. The extraction preserves effective-model policy, prepared route/auth arguments, harness convergence, and profile-scoped materialization behavior.User Impact
No intended user-visible behavior change. Maintainers get smaller ownership seams for future model, harness, and authentication work;
run.tsdrops to 4,074 lines and every new module stays below 220 lines.AI-assisted. I reviewed the complete change and addressed all local Codex AutoReview findings.
Evidence
pnpm check:changed -- src/agents/embedded-agent-runner/run.ts src/agents/embedded-agent-runner/run/auth-plan.ts src/agents/embedded-agent-runner/run/model-harness.ts src/agents/embedded-agent-runner/run/model-setup.tspnpm build