Skip to content

refactor(agents): split embedded runner model setup - #107646

Merged
steipete merged 1 commit into
mainfrom
codex/refactor-embedded-agent-runner
Jul 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/refactor-embedded-agent-runner

Conversation

@steipete

Copy link
Copy Markdown
Contributor

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.ts at 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.ts drops 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

@steipete
steipete requested a review from a team as a code owner July 14, 2026 16:11
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Jul 14, 2026
@steipete
steipete merged commit 4ea573e into main Jul 14, 2026
180 of 185 checks passed
@steipete
steipete deleted the codex/refactor-embedded-agent-runner branch July 14, 2026 16:32
@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 maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant